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

Adding authorizer field to collect context properties from authorizer #77

Merged
merged 5 commits into from Feb 21, 2019

Conversation

avanathan
Copy link
Contributor

@avanathan avanathan commented Feb 18, 2019

Issue #, if available:
Reopening: #39

Description of changes:
Adding a map to hold context properties from authorizer. cc: @bmoffatt @oharaandrew314 @miere . This PR was originally submitted by @oharaandrew314 and got closed based on a review comment for using String key/values. All other collection fields in this class use Map<String, String>. Not sure why we need to worry about other types (non String) just for this. We could keep this in the short term until we find a long term solution. Libraries for rest of the programming languages like golang & .Net already support this. Thanks for your support.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@avanathan
Copy link
Contributor Author

Let me know if we need to keep non-String types specifically for Authorizer context. I'll change it to Map<String, Object>

@JustDerb
Copy link

+1 to trying to get this added. For people trying to use this library for Cognito User Pool integration (or other types of authorization), it's a non-starter.

@avanathan
Copy link
Contributor Author

@bmoffatt could you please take a look & share your thoughts? Thanks

@bmoffatt
Copy link
Contributor

@avanathan Map<String, Object> will match what we've got for dotnet and go

@avanathan
Copy link
Contributor Author

@bmoffatt I've switched it to Map<String, Object>

@bmoffatt bmoffatt merged commit 9e27814 into aws:master Feb 21, 2019
@bmoffatt
Copy link
Contributor

Thanks!

@avanathan
Copy link
Contributor Author

@bmoffatt When do we usually cut a release? 2.2.6 ? Is there a way I could do this/help?

raupachz pushed a commit to raupachz/aws-lambda-java-libs that referenced this pull request Dec 1, 2020
…aws#77)

* Adding authorizer field to collect context properites from authorizer

* Updating toString() method

* Adding authorizer to equals() & hashCode()

* Moving authorizer under ProxyRequestContext

* Switching to Map<String, Object> for authorizer
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.

None yet

4 participants