Skip to content

Commit 2ff845e

Browse files
committed
Use JWK thumbprint as the kid
The kid is used to identify individual keys returned by the JWKS endpoint. As per the documentation for the gem (https://github.com/jwt/ruby-jwt) we can use the standardised JWK thumbprint as the kid for the JWK rather than the legacy custom approach the gem uses by default.
1 parent 97ee6e5 commit 2ff845e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

config/application.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,5 +89,7 @@ class Application < Rails::Application
8989

9090
I18n.available_locales = %i[en cy]
9191
I18n.default_locale = :en
92+
93+
JWT.configuration.jwk.kid_generator_type = :rfc7638_thumbprint
9294
end
9395
end

0 commit comments

Comments
 (0)