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

Support JSON Web Key Set URLs #17

Open
jfallows opened this issue May 25, 2019 · 0 comments
Open

Support JSON Web Key Set URLs #17

jfallows opened this issue May 25, 2019 · 0 comments

Comments

@jfallows
Copy link
Contributor

OAuth2 JWT Bearer tokens may contain a jku claim, indicating the URL where the jwks can be downloaded, then the corresponding kid within that jwks is used to verify the JWT signature.

This requires a whitelist for jku to prevent abuse, perhaps as web origins.

{
    "jku": "https://evil.com/.well-known/jwks.json"
}

In this example, https://evil.com would not be on the whitelist so this token would not be validated.

Automatically downloaded jku URLs can be cached as an optimization and to limit external interference with runtime performance.

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

No branches or pull requests

1 participant