MCPcopy
hub / github.com/authlib/authlib / test_missint_claims

Function test_missint_claims

tests/core/test_oauth2/test_rfc7523_validator.py:24–28  ·  view source on GitHub ↗
(oct_key)

Source from the content-addressed store, hash-verified

22
23
24def test_missint_claims(oct_key):
25 validator = JWTBearerTokenValidator(oct_key)
26 token_string = jwt.encode({"alg": "HS256"}, {}, oct_key)
27 token = validator.authenticate_token(token_string)
28 assert token is None
29
30
31def test_authenticate_token(oct_key):

Callers

nothing calls this directly

Calls 3

authenticate_tokenMethod · 0.95
encodeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…