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

Check and respect token.payload.iss #2

Merged
merged 4 commits into from
Jun 27, 2018
Merged

Check and respect token.payload.iss #2

merged 4 commits into from
Jun 27, 2018

Conversation

flintinatux
Copy link
Collaborator

dilbert respect

We'd like to respect the payload.iss in JWT's so that authentic can validate tokens supplied by any issuer, not just one. But letting folks supply their own iss without verification is problematic, so a safer approach is to whitelist the iss values we want to respect. This PR replaces the previous oidcUri option with an issWhitelist option, which is an array of uri's, rather than a single uri.

Note: This is a breaking change, so an appropriate semver bump is required before publishing.

to test:

  • Inspect the code.
  • View the readme changes.
  • Wait for the green.
  • Find a respectable squirrel.

@@ -81,21 +81,21 @@
"code_challenge_methods_supported": [
"S256"
],
"introspection_endpoint": "https://authentic.articulate.com/v1/introspect",
"introspection_endpoint": "https://dev-939480.oktapreview.com/oauth2/default/v1/introspect",
Copy link
Member

Choose a reason for hiding this comment

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

Do we want real URLs in here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I had to match the url in the jwt, which is signed. But I was able to sign a different jwt with a bad iss, so if you'd like I can make a fake url for the "real" jwt, too.

@flintinatux
Copy link
Collaborator Author

respectable squirrel

@flintinatux flintinatux merged commit a52e2a4 into master Jun 27, 2018
@flintinatux flintinatux deleted the iss branch June 27, 2018 20:23
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.

None yet

2 participants