Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

replace ruby-jwt with json-jwt for jwks caching #101

Merged
merged 6 commits into from
Jan 17, 2023

Conversation

nov
Copy link
Collaborator

@nov nov commented Dec 27, 2022

No description provided.

@nov nov requested a review from nhosoya December 27, 2022 06:27
nhosoya
nhosoya previously approved these changes Jan 17, 2023
Copy link
Owner

@nhosoya nhosoya left a comment

Choose a reason for hiding this comment

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

looks great

require 'net/https'
require 'json/jwt'
Copy link
Owner

Choose a reason for hiding this comment

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

[note]
json_jwt gem includes Faraday gem.

Comment on lines +104 to +108
verify_iss!(id_token)
verify_aud!(id_token)
verify_iat!(id_token)
verify_exp!(id_token)
verify_nonce!(id_token) if id_token[:nonce_supported]
Copy link
Owner

Choose a reason for hiding this comment

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

👍

@nov nov merged commit 72e8b1f into nhosoya:master Jan 17, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants