Skip to content

Commit 28cdadc

Browse files
committed
Fixes suggestions from pr: aws#159
issue: aws#154
1 parent 7f74a83 commit 28cdadc

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

events/apigw.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ type APIGatewayWebsocketProxyRequestContext struct {
8383
RequestID string `json:"requestId"`
8484
Identity APIGatewayRequestIdentity `json:"identity"`
8585
ResourcePath string `json:"resourcePath"`
86-
Authorizer string `json:"authorizer"`
86+
Authorizer map[string]interface{} `json:"authorizer"`
8787
HTTPMethod string `json:"httpMethod"`
8888
APIID string `json:"apiId"` // The API Gateway rest API Id
8989
ConnectedAt int64 `json:"connectedAt"`

events/testdata/apigw-websocket-request.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,11 @@
8181
"user": "theUser"
8282
},
8383
"resourcePath": "/{proxy+}",
84-
"authorizer": "*",
84+
"authorizer": {
85+
"principalId": "admin",
86+
"clientId": 1,
87+
"clientName": "Exata"
88+
},
8589
"httpMethod": "POST",
8690
"apiId": "gy415nuibc",
8791
"connectedAt": 1547230720092,

0 commit comments

Comments
 (0)