[v1.x] Add subject and claims to AccessToken (#2690)

This commit is contained in:
Max 2026-05-26 15:49:44 +01:00 • committed by GitHub
commit 1abcca2408
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -75,6 +75,8 @@ class IntrospectionTokenVerifier(TokenVerifier):
scopes=data.get("scope", "").split() if data.get("scope") else [],
expires_at=data.get("exp"),
resource=data.get("aud"), # Include resource in token
subject=data.get("sub"), # RFC 7662 subject (resource owner)
claims=data,
)
except Exception as e:
logger.warning(f"Token introspection failed: {e}")