MCPcopy
hub / github.com/authlib/authlib / validate_claims

Function validate_claims

tests/flask/test_oauth2/test_openid_implict_grant.py:51–57  ·  view source on GitHub ↗
(id_token, params, alg="HS256")

Source from the content-addressed store, hash-verified

49
50
51def validate_claims(id_token, params, alg="HS256"):
52 jwt = JsonWebToken([alg])
53 claims = jwt.decode(
54 id_token, "secret", claims_cls=ImplicitIDToken, claims_params=params
55 )
56 claims.validate()
57 return claims
58
59
60def test_consent_view(test_client):

Callers 4

test_authorize_id_tokenFunction · 0.70
test_response_mode_queryFunction · 0.70

Calls 3

decodeMethod · 0.95
JsonWebTokenClass · 0.90
validateMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…