MCPcopy Create free account
hub / github.com/authlib/authlib / test_without_alg

Function test_without_alg

tests/clients/test_requests/test_assertion_session.py:64–74  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

62
63
64def test_without_alg():
65 sess = AssertionSession(
66 "https://provider.test/token",
67 grant_type=AssertionSession.JWT_BEARER_GRANT_TYPE,
68 issuer="foo",
69 subject="foo",
70 audience="foo",
71 key="secret",
72 )
73 with pytest.raises(ValueError):
74 sess.get("https://provider.test")
75
76
77def test_assertion_includes_default_jti(token):

Callers

nothing calls this directly

Calls 2

AssertionSessionClass · 0.90
getMethod · 0.45

Tested by

no test coverage detected