Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add authorizer context to APIGatewayProxyRequestEvent #39

Closed
wants to merge 1 commit into from
Closed

add authorizer context to APIGatewayProxyRequestEvent #39

wants to merge 1 commit into from

Conversation

oharaandrew314
Copy link

@oharaandrew314 oharaandrew314 commented Jan 16, 2018

The fields in the authorizer object can change depending on what is returned by the authorizer function context. While principalId will always be there, the rest of the fields can vary. Thus a Map must be used.

return authorizer;
}

public void setAuthorizer(Map<String, String> authorizer) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From aws/aws-lambda-dotnet#98, "authorizer" may contain more than just strings. To be truly generic, it might be that a APIGatewayAuthorizedProxyEvent<T> needs to be added.

@miere
Copy link
Contributor

miere commented May 14, 2018

@oharaandrew314
Do you mind to share the reason of you've closed this PR?

@avanathan
Copy link
Contributor

I have re-opened this PR as #77. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants