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

AWS Lambda Auth0 Authentication Example using Webpack #32

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

patoncrispy
Copy link

@marktani, this is my example, that we discussed. I haven't added any client application for it, but as it's just the Lambda function that differs, the client in the original example should work perfectly fine.

I've added as much relevant information as I can think of in the README and the code is pretty thoroughly documented.

Let me know what you think! Let me know if you spot any issues or would like something amended/added.

Updated README, added cert.pem, improved webpack config.
@patoncrispy patoncrispy changed the title Auth0 Authentication Example using Webpack AWS Lambda Auth0 Authentication Example using Webpack Jul 22, 2017
* @memberof GraphcoolService
*/
async getUser(userId) {
const query = `
Copy link
Contributor

@marktani marktani Jul 24, 2017

Choose a reason for hiding this comment

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

GH and tabs are weird. Please replace all tabs with spaces 🙂

@marktani
Copy link
Contributor

This looks fantastic, I like the certificate approach. One minor adjustment that you could make is to replace tabs with spaces (I know, I know).

Also I'm thinking of a different folder structure for all examples. I'll do that once this PR is merged 🙂

@patoncrispy
Copy link
Author

Cool! Will make those changes later. :)

@kbrandwijk
Copy link
Contributor

I would consider using the Auth0 JWKS endpoint (https://{auth0domain}/.well-known/jwks.json) instead of manually downloading the signing certificate in order to validate the token.

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

Successfully merging this pull request may close these issues.

3 participants