Public Instance methods
jwt_claims(*)
[show source]
# File lib/rodauth/features/oauth_resource_indicators.rb 142 def jwt_claims(*) 143 return super unless resource_indicators 144 145 super.merge(aud: resource_indicators) 146 end
jwt_decode(token, verify_aud: true, **args)
[show source]
# File lib/rodauth/features/oauth_resource_indicators.rb 148 def jwt_decode(token, verify_aud: true, **args) 149 claims = super(token, verify_aud: false, **args) 150 151 return claims unless verify_aud 152 153 return unless claims["aud"] && claims["aud"].one? { |aud| request.url.starts_with?(aud) } 154 155 claims 156 end