Skip to main content
ctrlrun.jwt_identity.JWTIdentityProvider — class, defined at src/ctrlrun/jwt_identity.py:87
Verify a bearer JWT and map its verified claims onto a Principal (SPEC-v0.3 §3.4). Absent header → None, a decline (§3.2): in-process there are no headers at all, and a provider with nothing to say must not break code that already uses context(). Present and invalid → IdentityError, a refusal, which Control never backfills from. Every configuration mistake that can be caught before a token is seen is caught at construction, because that is the end that can be refused: the token end is already covered by the algorithms allow-list, and a check that only existed there would be a negative test against behaviour the library refuses anyway.

Next