We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
https://blog.angular-university.io/angular-jwt/ https://auth0.com/docs/tokens/concepts/jwks https://auth0.com/docs/tokens/guides/locate-jwks
The text was updated successfully, but these errors were encountered:
https://github.com/auth0/node-jwks-rsa/tree/master/examples/express-demo
Sorry, something went wrong.
If Krypton is set directly in express like below:
app.use(kryptonAuth());
The JSON Web Key Set endpoints are available at http://the-adress-of-krypton/.well-known/jwks.json.
http://the-adress-of-krypton/.well-known/jwks.json
If Krypton is set after a subroute in express like below:
app.use('auth', kryptonAuth());
The JSON Web Key Set endpoints are available at http://the-adress-of-krypton/auth/.well-known/jwks.json.
http://the-adress-of-krypton/auth/.well-known/jwks.json
With that, you can easily verify the JWTs emitted by Krypton and set the decoded user data inside req.user using with jwks-rsa :
req.user
jwks-rsa
app.use(jwt({ secret: jwksRsa.expressJwtSecret({ cache: true, rateLimit: true, jwksRequestsPerMinute: 150, jwksUri: 'http://localhost:' + PORT + '/.well-known/jwks.json' }), algorithms: ['RS256'] }));
This example suppose that your client has included inside the HTTP authorization header the JWT as a bearer token.
No branches or pull requests
https://blog.angular-university.io/angular-jwt/
https://auth0.com/docs/tokens/concepts/jwks
https://auth0.com/docs/tokens/guides/locate-jwks
The text was updated successfully, but these errors were encountered: