Closed
Description
The APIGatewayProxyRequestEvent
requestContext
object does not have the authorizer
object. With the new addition of the authorizer context, I am unsure how to structure a new Authorizer
object.
It is entirely possible to have an authorizer json blob like:
{
"principalId": "123", // Required by authorizer
"roles": "role1,role2", // Additional arbitrary parameter from authorizer context
"likes_pie": true // Additional arbitrary parameter from authorizer context
}
The principalId
is always part of the authorizer
blob, and thus should be a String field on a new Authorizer
object. However, the additional arbitrary parameters provided by the authorizer context should be a map. This won't (de)serialize 1:1 between JSON and Java however.
Metadata
Metadata
Assignees
Labels
No labels