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

Add support for checking 'iss' claim against issuer #403

Open
paulmillar opened this issue Feb 11, 2022 · 0 comments
Open

Add support for checking 'iss' claim against issuer #403

paulmillar opened this issue Feb 11, 2022 · 0 comments

Comments

@paulmillar
Copy link
Contributor

Many OPs issue a JWT as the AT. I imagine it would be relatively trivial for oidc-token to inspect the token and, if it is a JWT, extract the iss claim value. This value could then be compared with what oidc-agent believes is the issuer URL.

A discrepancy can occur if (for example) the URL given to oidc-gen was malformed (e.g., containing unexpected trailing slashes). However, this incorrect value might go undetected, as the oidc document discovery would still work.

oidc-token could then issue a warning if the issuer doesn't match the expected value. This would give the user the opportunity to update the issuer URL.

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

No branches or pull requests

1 participant