lib/rodauth/features/oauth_token_introspection.rb in rodauth-oauth-1.4.0 vs lib/rodauth/features/oauth_token_introspection.rb in rodauth-oauth-1.5.0

- old
+ new

@@ -64,11 +64,11 @@ { active: true, scope: grant_or_claims["scope"], client_id: grant_or_claims["client_id"], username: resource_owner_identifier(grant_or_claims), - token_type: "access_token", + token_type: oauth_token_type.capitalize, exp: grant_or_claims["exp"], iat: grant_or_claims["iat"], nbf: grant_or_claims["nbf"], sub: grant_or_claims["sub"], aud: grant_or_claims["aud"], @@ -97,10 +97,10 @@ end private def require_oauth_application_for_introspect - (token = ((v = request.env["HTTP_AUTHORIZATION"]) && v[/\A *Bearer (.*)\Z/, 1])) + (token = (v = request.env["HTTP_AUTHORIZATION"]) && v[/\A *Bearer (.*)\Z/, 1]) return require_oauth_application unless token oauth_application = current_oauth_application