Skip to content

Commit f76ce0d

Browse files
Merge branch 'master' into update#186
2 parents 466dad2 + 319e4b3 commit f76ce0d

File tree

6 files changed

+11
-7
lines changed

6 files changed

+11
-7
lines changed

.travis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ before_script:
2727
- LINT_PKGS=$(go list ./... | grep -Ev 'aws-lambda-go/lambda')
2828

2929
script:
30-
- diff -u <(echo -n) <(gofmt -d ./) # Fail if a .go file hasn't been formatted with gofmt
31-
- goverage -v -covermode=atomic -coverprofile=coverage.txt $PKGS # Run all tests with coverage
32-
- go vet -v ./... # static analyisis
33-
- golint $LINT_PKGS # lint - ignore failures for now
30+
- diff -u <(echo -n) <(gofmt -d ./) # Fail if a .go file hasn't been formatted with gofmt
31+
- goverage -v -race -covermode=atomic -coverprofile=coverage.txt $PKGS # Run all tests with coverage
32+
- go vet -v ./... # static analyisis
33+
- golint $LINT_PKGS # lint - ignore failures for now
3434

3535
after_success:
3636
- bash <(curl -s https://codecov.io/bash)

events/README_Cognito_UserPools_PreTokenGen.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616

1717
func handler(event events.CognitoEventUserPoolsPreTokenGen) (events.CognitoEventUserPoolsPreTokenGen, error) {
1818
fmt.Printf("PreTokenGen of user: %s\n", event.UserName)
19-
event.Response.ClaimOverrideDetails.ClaimsToSupress = []string{"family_name"}
19+
event.Response.ClaimsOverrideDetails.ClaimsToSuppress = []string{"family_name"}
2020
return event, nil
2121
}
2222

events/apigw.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ type APIGatewayRequestIdentity struct {
4949
CognitoIdentityID string `json:"cognitoIdentityId"`
5050
Caller string `json:"caller"`
5151
APIKey string `json:"apiKey"`
52+
APIKeyID string `json:"apiKeyId"`
5253
AccessKey string `json:"accessKey"`
5354
SourceIP string `json:"sourceIp"`
5455
CognitoAuthenticationType string `json:"cognitoAuthenticationType"`

events/testdata/apigw-request.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{
1+
{
22
"resource": "/{proxy+}",
33
"path": "/hello/world",
44
"httpMethod": "POST",
@@ -67,6 +67,7 @@
6767
"cognitoIdentityId": "theCognitoIdentityId",
6868
"caller": "theCaller",
6969
"apiKey": "theApiKey",
70+
"apiKeyId": "theApiKeyId",
7071
"accessKey": "ANEXAMPLEOFACCESSKEY",
7172
"sourceIp": "192.168.196.186",
7273
"cognitoAuthenticationType": "theCognitoAuthenticationType",
@@ -79,7 +80,7 @@
7980
"principalId": "admin",
8081
"clientId": 1,
8182
"clientName": "Exata"
82-
},
83+
},
8384
"resourcePath": "/{proxy+}",
8485
"httpMethod": "POST",
8586
"apiId": "gy415nuibc"

events/testdata/apigw-restapi-openapi-request.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@
6868
"cognitoIdentityId": "theCognitoIdentityId",
6969
"caller": "theCaller",
7070
"apiKey": "theApiKey",
71+
"apiKeyId": "theApiKeyId",
7172
"accessKey": "ANEXAMPLEOFACCESSKEY",
7273
"sourceIp": "192.168.196.186",
7374
"cognitoAuthenticationType": "theCognitoAuthenticationType",

events/testdata/apigw-websocket-request.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272
"cognitoIdentityId": "theCognitoIdentityId",
7373
"caller": "theCaller",
7474
"apiKey": "theApiKey",
75+
"apiKeyId": "theApiKeyId",
7576
"accessKey": "ANEXAMPLEOFACCESSKEY",
7677
"sourceIp": "192.168.196.186",
7778
"cognitoAuthenticationType": "theCognitoAuthenticationType",

0 commit comments

Comments
 (0)