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

Pass event and lambdaContext to onConnect function #70

Merged
merged 8 commits into from
Feb 14, 2020

Conversation

nenti
Copy link

@nenti nenti commented Feb 13, 2020

For a proper authorization flow the context variable passed into the lambda functions are important because they contain the response of the authorization function. The easiest way to solve this with this library is attaching auth context to the connection database entry through the onConnect function. Apparently in the current version this is not possible because the lambda context is not passed into the onConnect function. This pull request fixes this by adding the lambda context as additional variables to the onConnect function.

Copy link
Owner

@michalkvasnicak michalkvasnicak left a comment

Choose a reason for hiding this comment

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

Could you please add a mention about this to Unreleased in CHANGELOG.md ?

@nenti
Copy link
Author

nenti commented Feb 14, 2020

Could you please add a mention about this to Unreleased in CHANGELOG.md ?

Done.

@michalkvasnicak michalkvasnicak merged commit 84b6b1a into michalkvasnicak:master Feb 14, 2020
@michalkvasnicak
Copy link
Owner

@nenti thank you, released as 1.0.0-alpha.4

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.

2 participants