You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After user authentication and consent, Fence's callback to my client application contains both ID and access tokens (among other information). The decoded payload of the ID token contains the following info:
Accordingly, the ID token does not contain at_hash claim. Few points to consider:
The at_hash claim is optional when access token is not issued; however, since fence issues both ID and access tokens, accordingly to OIDC specifications (see the following quote), this claim is "REQUIRED":
at_hash ... If the ID Token is issued from the Authorization Endpoint with an access_token value ... this is REQUIRED; it MAY NOT be used when no Access Token is issued
(REF)
By default at_hash is a required claim by Javascript Object Signing and Encryption (JOSE, e.g., see python-jose implementation) to decode/validate a JWT token:
After user authentication and consent, Fence's callback to my client application contains both ID and access tokens (among other information). The decoded payload of the ID token contains the following info:
Accordingly, the ID token does not contain
at_hash
claim. Few points to consider:The
at_hash
claim is optional when access token is not issued; however, since fence issues both ID and access tokens, accordingly to OIDC specifications (see the following quote), this claim is "REQUIRED":By default
at_hash
is a required claim by Javascript Object Signing and Encryption (JOSE, e.g., see python-jose implementation) to decode/validate a JWT token:'verify_at_hash': True,
Accordingly, by default, it is a required claim in python social auth to validate tokens (that are encoded as JWTs).
Defaults can be modified, however, for better compliance with OIDC specifications, I would recommend including
at_hash
in Fence-generated ID tokens.The text was updated successfully, but these errors were encountered: