lib/rodauth/features/oauth_jwt.rb in rodauth-oauth-1.1.0 vs lib/rodauth/features/oauth_jwt.rb in rodauth-oauth-1.2.0
- old
+ new
@@ -7,9 +7,11 @@
Feature.define(:oauth_jwt, :OauthJwt) do
depends :oauth_jwt_base, :oauth_jwt_jwks
auth_value_method :oauth_jwt_access_tokens, true
+ auth_value_methods(:jwt_claims)
+
def require_oauth_authorization(*scopes)
return super unless oauth_jwt_access_tokens
authorization_required unless authorization_token