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

Map cognito user pool claims as part of context #165

Closed
jamesls opened this issue Nov 11, 2016 · 0 comments
Closed

Map cognito user pool claims as part of context #165

jamesls opened this issue Nov 11, 2016 · 0 comments

Comments

@jamesls
Copy link
Member

jamesls commented Nov 11, 2016

The docs show how to integrate cognito user pools with API gateway, and include an example of how to map through the various claims:

{
	"context" : {
		"sub" : "$context.authorizer.claims.sub",
		"email" : "$context.authorizer.claims.email"
	}
}
...

This isn't included as part of the "method request passthrough" template that chalice uses, and probably should be.

jamesls added a commit to jamesls/chalice that referenced this issue Nov 11, 2016
This makes it possible to get the sub/email data from a logged in
user from cognito user pools.

Closes aws#165.
jamesls added a commit to jamesls/chalice that referenced this issue Nov 11, 2016
This makes it possible to get the sub/email data from a logged in
user from cognito user pools.

Closes aws#165.
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

No branches or pull requests

1 participant