MCPcopy Index your code
hub / github.com/authlib/authlib / ImplicitIDToken

Class ImplicitIDToken

authlib/oidc/core/claims.py:148–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146
147
148class ImplicitIDToken(IDToken):
149 RESPONSE_TYPES = ("id_token", "id_token token")
150 ESSENTIAL_CLAIMS = ["iss", "sub", "aud", "exp", "iat", "nonce"]
151 REGISTERED_CLAIMS = _REGISTERED_CLAIMS
152
153 def validate_at_hash(self):
154 """If the ID Token is issued from the Authorization Endpoint with an
155 access_token value, which is the case for the response_type value
156 id_token token, this is REQUIRED; it MAY NOT be used when no Access
157 Token is issued, which is the case for the response_type value
158 id_token.
159 """
160 access_token = self.params.get("access_token")
161 if access_token and "at_hash" not in self:
162 raise MissingClaimError("at_hash")
163 super().validate_at_hash()
164
165
166class HybridIDToken(ImplicitIDToken):

Callers 1

test_implicit_id_tokenFunction · 0.90

Calls

no outgoing calls

Tested by 1

test_implicit_id_tokenFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…