Skip to content

Optional issuer and audience verification #1

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

Merged
merged 1 commit into from
Apr 2, 2019

Conversation

felixb
Copy link
Contributor

@felixb felixb commented Apr 2, 2019

This change allows letting issuer and/or audience unset effectively omitting the checks.

This change allows letting issuer and/or audience unset effectively omitting the checks.
@NickMRamirez
Copy link
Contributor

The check for the issuer ensures that the token is from a trusted source and the audience check ensures it's meant for your website. Making them optional, is that for development environment testing purposes?

@NickMRamirez
Copy link
Contributor

Hmm...according to the spec, "iss" and "aud" are optional. So this makes sense. https://tools.ietf.org/html/rfc7519#section-4.1.1

@NickMRamirez NickMRamirez merged commit 6da8a63 into haproxytech:master Apr 2, 2019
@felixb
Copy link
Contributor Author

felixb commented Apr 3, 2019

Thanks for merging.

In my setup there is only one issuer/audience and it's basically verified by its public key.

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.

2 participants