diff --git a/events/apigw.go b/events/apigw.go index 6ed7fe2e..32da810f 100644 --- a/events/apigw.go +++ b/events/apigw.go @@ -49,6 +49,7 @@ type APIGatewayRequestIdentity struct { CognitoIdentityID string `json:"cognitoIdentityId"` Caller string `json:"caller"` APIKey string `json:"apiKey"` + APIKeyID string `json:"apiKeyId"` AccessKey string `json:"accessKey"` SourceIP string `json:"sourceIp"` CognitoAuthenticationType string `json:"cognitoAuthenticationType"` diff --git a/events/testdata/apigw-request.json b/events/testdata/apigw-request.json index 3c5a5c6e..8eac098b 100644 --- a/events/testdata/apigw-request.json +++ b/events/testdata/apigw-request.json @@ -1,4 +1,4 @@ -{ +{ "resource": "/{proxy+}", "path": "/hello/world", "httpMethod": "POST", @@ -67,6 +67,7 @@ "cognitoIdentityId": "theCognitoIdentityId", "caller": "theCaller", "apiKey": "theApiKey", + "apiKeyId": "theApiKeyId", "accessKey": "ANEXAMPLEOFACCESSKEY", "sourceIp": "192.168.196.186", "cognitoAuthenticationType": "theCognitoAuthenticationType", @@ -79,7 +80,7 @@ "principalId": "admin", "clientId": 1, "clientName": "Exata" - }, + }, "resourcePath": "/{proxy+}", "httpMethod": "POST", "apiId": "gy415nuibc" diff --git a/events/testdata/apigw-restapi-openapi-request.json b/events/testdata/apigw-restapi-openapi-request.json index c7a8990c..ee4fad00 100644 --- a/events/testdata/apigw-restapi-openapi-request.json +++ b/events/testdata/apigw-restapi-openapi-request.json @@ -68,6 +68,7 @@ "cognitoIdentityId": "theCognitoIdentityId", "caller": "theCaller", "apiKey": "theApiKey", + "apiKeyId": "theApiKeyId", "accessKey": "ANEXAMPLEOFACCESSKEY", "sourceIp": "192.168.196.186", "cognitoAuthenticationType": "theCognitoAuthenticationType", diff --git a/events/testdata/apigw-websocket-request.json b/events/testdata/apigw-websocket-request.json index 821ffc66..21217a57 100644 --- a/events/testdata/apigw-websocket-request.json +++ b/events/testdata/apigw-websocket-request.json @@ -72,6 +72,7 @@ "cognitoIdentityId": "theCognitoIdentityId", "caller": "theCaller", "apiKey": "theApiKey", + "apiKeyId": "theApiKeyId", "accessKey": "ANEXAMPLEOFACCESSKEY", "sourceIp": "192.168.196.186", "cognitoAuthenticationType": "theCognitoAuthenticationType",