The Token class currently lacks support for setting and verifying the aud (audience) and iss (issuer) claims, which are part of the JWT standard as defined in RFC 7519. These claims are essential for validating tokens in multi-service/tenant environments where tokens are issued by one service and consumed by another.
Proposed Solution
The Token class currently lacks support for setting and verifying the
aud(audience) andiss(issuer) claims, which are part of the JWT standard as defined in RFC 7519. These claims are essential for validating tokens in multi-service/tenant environments where tokens are issued by one service and consumed by another.Proposed Solution
Add Methods to Set and Verify Claims:
set_audandset_issto populate theaudandissclaims when creating tokens.verify_audandverify_issmethod to validate these claims during token verification.Configuration Options:
audandissclaims.Backward Compatibility:
audandissclaims.