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

Use /.well-known/openid-configuration issuer attribute for id_token validation #861

Closed
wants to merge 3 commits into from

Conversation

JamesParkinSonos
Copy link

This change is based on a previous pull request made by @scottirvinsonos (#555), however, his implementation seems to have been lost when the code was refactored.


Other Okta SDK's use the issuer URL found in the /.well-known/openid-configuration response body when validating the id_token. This SDK currently uses the URL specified in the config object passed to the constructor at the time the OAuth client object is instantiated. This is not desirable as it makes it impossible to use a proxy with Okta.

The change made uses the issuer attribute found in the /.well-known/openid-configuration response body and compares it to the issuer claim in the id_token to validate the token.

JamesParkinSonos and others added 3 commits July 8, 2021 13:43
This allows a proxy to be used with Okta.
This comment no longer applies to this implementation.
@shuowu
Copy link
Contributor

shuowu commented Jul 13, 2021

@JamesParkinSonos Thanks for the PR! While our team is reviewing the PR, can you please sign and submit a CLA for us? https://developer.okta.com/cla/

@JamesParkinSonos
Copy link
Author

Thanks @shuowu. I've signed and emailed the CLA.

@shuowu
Copy link
Contributor

shuowu commented Jul 14, 2021

Internal Ref: OKTA-412050

@shuowu
Copy link
Contributor

shuowu commented Jul 14, 2021

@JamesParkinSonos I just figured out the issue is actually handled by one of our internal PR (#858). Thanks again for your contribution!

Close the PR.

@shuowu shuowu closed this Jul 14, 2021
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