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 config option for JWT issuer and require iat/exp claims in token #16

Merged
merged 1 commit into from
Feb 14, 2024

Conversation

jnschaeffer
Copy link
Contributor

Runtime users should be validating the JWT issuer in addition to the JWKS. This PR adds logic to configure the expected issuer for a JWT and updates the token parser to require the "iat" and "exp" claims be present for a given token. Additionally, this PR fixes an error where command line flags were not being bound to Viper configs properly.

Runtime users should be validating the JWT issuer in addition to the
JWKS. This commit adds logic to configure the expected issuer for a
JWT and updates the token parser to require the "iat" and "exp" claims
be present for a given token. Additionally, this commit fixes an error
where command line flags were not being bound to Viper configs
properly.

Signed-off-by: John Schaeffer <jschaeffer@equinix.com>
@jnschaeffer jnschaeffer requested review from a team as code owners February 14, 2024 19:33
@jnschaeffer jnschaeffer merged commit 45c52c4 into infratographer:main Feb 14, 2024
3 checks passed
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