Repository navigation
Releases
py-v5.0.0-a.1
v5.0.0-a.1 (2026-11-26)
Bug Fixes
-
discovery: Reject a document whose issuer is not the requested issuer (
b11f2f2) -
fapi: Check the DPoP key against the advertised algorithms; refuse host-less endpoints (
7d7029d) -
fapi: Check the profile's own auth and binding against discovery (
6fd820b) -
fapi: Document that the FAPI validators are wider than the profile (
aa8a0b9) -
fapi: FAPI 2.0 discovery validator treats absent metadata as non-compliant (
751af29) -
fapi: The PAR endpoint discovery check requires a URL string (
487c649) -
py: Accept a provider's several issuer values in discovery mode (
7ddc426) -
py: Accept a replay cache method with no introspectable signature (
bacef5d) -
py: Accept refresh-issued ID Tokens with nonce=RefreshNonce(original) (
272bfdd) -
py: Address private_key_jwt assertions to the issuer when known (
85fc5f7) -
py: Address review of the protocol-flow MUSTs (
fe3d2a1) -
py: Address review on JAR and FAPI key checks (
c0e71cc) -
py: AsyncDPoPReplayCache is not runtime_checkable; build options once in docs (
c2824cd) -
py: Cache a JWKS without max-age for 1 hour, not 24 (
cc42462) -
py: Check introspected cnf against the presentation (
148e7a1) -
py: Check signed PAR client_id and iss, re-check a reassigned request (
fc298a6) -
py: Check the sender constraint on access tokens only (
443db74) -
py: Classify a not-yet-valid token as the iat kind (
3d3d1d2) -
py: Close replay and certificate-binding gaps in resource-server DPoP checks (
bfda1b9) -
py: Copies of an in-memory replay cache are the same cache (
f462333) -
py: Declare the discovery issuer match as a breaking change (
61ec032) -
py: Default algorithm allowlist and verification key-strength floor (
c4307d5) -
py: Document awaited aio binding checks and harden replay-cache answers (
d01bc40) -
py: Document that a malformed introspected cnf is treated as unbound (
2fe8c8a) -
py: DPoP client options — opt-in needs a key, keep refused tokens, load keys (
04371a8) -
py: Drop equivalent mutants in the access-token binding path (
839b83e) -
py: Drop the duplicate key-alg check and pin key selection with tests (
9de6254) -
py: Drop the equivalent PEM-encoding mutant and pin loader messages (
7528fd0) -
py: Empty client_id, kid and use mean absent (
f9fa93f) -
py: Empty HMAC keys fail the floor; logout tokens need a client_id (
a6b5cf8) -
py: Enforce a manual key's alg and type-check advertised JARM algs (
f37d1bf) -
py: Enforce ID/logout token claim rules and verification-key policy (
6750aa2) -
py: Enforce JAR and signing-key spec MUSTs (
b15935a) -
py: Enforce token-response, request-parameter, DPoP nonce and UserInfo sub MUSTs (
5f0108f) -
py: Expect typed key/alg error in issuer-pinning default test (
4784ace) -
py: Fail closed on inactive or failed introspection (
4b47464) -
py: Keep advertised_jarm_algorithms a function (
53cf6fe) -
py: Keep cached documents per transport trust scope (
7684288) -
py: Keep credentials out of request model repr (
5764136) -
py: Keep require_dpop_token_type opt-in, as RFC 9449 §5 requires (
ffefae1) -
py: Keep the binding check out of the shared JWT helper (
e5d6c17) -
py: Keep the cached-key verdict when a JWKS refresh fails (
53ba0f9) -
py: Key DPoP nonces by a (role, scheme, host, port) tuple (
dce43f2) -
py: Kill the surviving check_compact_jws mutants (
904b310) -
py: Leave keys cryptography can't load to signing in load_signing_key (
09a56f4) -
py: List every exception class in py_identity_model.exceptions.all (
66a9e8f) -
py: Make client_auth_method keyword-only (
4c1e3ae) -
py: Make device token polling a single attempt (
b08a511) -
py: Measure bytes JWK members against the key-strength floor (
e7135f6) -
py: Measure JWK members with PyJWT's base64url decoder (
6e2d109) -
py: Move accepted_algorithms logic out of the property body (
61b3955) -
py: Name malformed and mismatched keys neutrally and document the typed error (
d01b6f1) -
py: Never retry authorization_code and refresh_token requests (
560e7a0) -
py: Never verify signatures with use=enc keys (
ab4e75f) -
py: One algorithm allowlist policy per purpose ([
2b880ac](2b880acbdf767910f245ba84...
fastapi-identity-model-v0.4.0-a.1
v0.4.0-a.1 (2026-11-26)
Bug Fixes
-
fastapi: A ConfigurationException during validation is a server error (
f0b3dbb) -
fastapi: Accept expires_in sent as a string of digits (
03d3f53) -
fastapi: Classify token-validation failures by exception type (
653a1d5) -
fastapi: Drop default ports from expected_origin and validate the certificate header name (
854d75a) -
fastapi: Expose the failure kind via opt-in diagnostics header (
f999ba9) -
fastapi: Fail the login closed on a signed UserInfo response (
a64f426) -
fastapi: Fail the login when UserInfo has no sub (
287adf2) -
fastapi: Keep a rotated refresh token and map fetch outages to 502 (
5197f90) -
fastapi: Keep a rotated refresh token from a rejected refresh response (
a44d8ea) -
fastapi: Keep client_secret out of OIDCSettings repr (
c1baf06) -
fastapi: Keep the rotated refresh token on a missing access token (
455c6bb) -
fastapi: Log a ConfigurationException rejection at warning level (
d2d31a4) -
fastapi: Look up the default replay cache on every check (
62f2971) -
fastapi: One default DPoP replay cache per process (
91251e3) -
fastapi: Only an unusable replay cache is a 500 (
583f525) -
fastapi: Pass the core refresh error through verbatim (
fa284f0) -
fastapi: Redact refresh failure diagnostics (
7a3302e) -
fastapi: Refuse a negative expires_in and compute the expiry once (
d374fe1) -
fastapi: Refuse a refresh response whose expires_in is not a number of seconds (
08fb978) -
fastapi: Refuse an expires_in no expiry date can be computed from (
ea491eb) -
fastapi: Refuse folded certificate headers and non-ASCII origin hosts (
26cbea8) -
fastapi: Rename OIDCSettings.audience to audience_override (
8e82c33) -
fastapi: Report an unexplained rejected refresh response as REFRESH_FAILED (
56bb974) -
fastapi: Resolve the default audience on read (
7448002) -
fastapi: RFC 6750 challenges, RFC 9207 iss check, token_type checks (
1b8185a) -
fastapi: Share one replay cache per OIDCSettings (
c0eabc0) -
fastapi: Treat an empty OIDC_AUDIENCE as unset (
34d0bee) -
fastapi: Type-check validate_azp and recommend it with trusted_audiences (
3944495) -
fastapi: Validate client_certificate_header against the RFC 9110 token grammar (
83004e6)
Build System
- fastapi: Require py-identity-model 5 (
754adf8)
Documentation
-
fastapi: Document oidc_settings_from_env and http_client (
c71a34f) -
fastapi: Read expected_audience in the README and example app (
0fde963) -
fastapi: The callback 502 covers fetch transport failures (
1fa60e7) -
fastapi: The certificate header must carry the leaf certificate only (
c357a19)
Features
-
fastapi: Accept the DPoP scheme and enforce sender-constrained tokens (
f486c02) -
fastapi: Answer an ID Token nonce rejection with "Nonce mismatch" (
f36f4da) -
fastapi: OIDCSettings takes the issuer (
de7aa3c) -
fastapi: Pass an app-supplied http_client through to the library (
1f0fc33) -
fastapi: Take a validation cache on the middleware and WS authenticator (
fd403bb) -
fastapi: Trusted_audiences and validate_azp for the login callback (
f17ed24) -
fastapi: Wire OIDCSettings.required_binding and share one AuthOptions (
a85c8a7)
Refactoring
-
fastapi: Freeze OIDCSettings and make AuthOptions keyword-only (
f909052) -
fastapi: Move OIDCSettings.from_env to an optional helper (
87c59c4)
Testing
-
fastapi: Cover an absent and a non-ASCII nonce at the login callback (
72b10e9) -
fastapi: Cover OIDCSettings required_binding coercion directly (
c7b5019) -
fastapi: Give the fake UserInfo response an error_kind (
865ec87) -
fastapi: Request the token endpoint fixture by name (
372f727)
Breaking Changes
-
fastapi: Fastapi-identity-model now requires py-identity-model>=5.0.0,<6.
-
fastapi: OIDCSettings is frozen and both OIDCSettings and AuthOptions take keyword arguments only. Build a changed copy with dataclasses.replace, which re-runs validation.
-
fastapi: OIDCSettings.discovery_url, the DISCOVERY_URL env var and the discovery_url= arguments are replaced by the issuer.
Detailed Changes: fastapi-identity-model-v0.3.0...fastapi-identity-model-v0.4.0-a.1
5.0.0-rc.915.4e7b292
Pre-release 5.0.0-rc.915.4e7b292
This is an automated pre-release from PR #915: feat(py)!: release py-identity-model 5.0.0
PR: #915
Installation for Testing
Option 1: Install from GitHub Release (Recommended)
# Using pip
pip install https://github.com/jamescrowley321/identity-model/releases/download/5.0.0-rc.915.4e7b292/py_identity_model-5.0.0rc915-py3-none-any.whl
# Using uv
uv pip install https://github.com/jamescrowley321/identity-model/releases/download/5.0.0-rc.915.4e7b292/py_identity_model-5.0.0rc915-py3-none-any.whlOption 2: Install from PR branch
# Using pip
pip install git+https://github.com/jamescrowley321/identity-model.git@release/v5
# Using uv
uv pip install "git+https://github.com/jamescrowley321/identity-model.git@release/v5#subdirectory=py"For production use, install the stable version from PyPI:
pip install py-identity-model4.1.2-rc.1217.486fe81
Pre-release 4.1.2-rc.1217.486fe81
This is an automated pre-release from PR #1217: ci(deps)(deps): bump anthropics/claude-code-action from 1.0.286 to 1.0.289 in the github-actions group
PR: #1217
Installation for Testing
Option 1: Install from GitHub Release (Recommended)
# Using pip
pip install https://github.com/jamescrowley321/identity-model/releases/download/4.1.2-rc.1217.486fe81/py_identity_model-4.1.1-py3-none-any.whl
# Using uv
uv pip install https://github.com/jamescrowley321/identity-model/releases/download/4.1.2-rc.1217.486fe81/py_identity_model-4.1.1-py3-none-any.whlOption 2: Install from PR branch
# Using pip
pip install git+https://github.com/jamescrowley321/identity-model.git@dependabot/github_actions/github-actions-10ec664915
# Using uv
uv pip install "git+https://github.com/jamescrowley321/identity-model.git@dependabot/github_actions/github-actions-10ec664915#subdirectory=py"For production use, install the stable version from PyPI:
pip install py-identity-model4.1.2-rc.1190.1c66f32
Pre-release 4.1.2-rc.1190.1c66f32
This is an automated pre-release from PR #1190: ci(deps)(deps): bump the github-actions group across 1 directory with 9 updates
PR: #1190
Installation for Testing
Option 1: Install from GitHub Release (Recommended)
# Using pip
pip install https://github.com/jamescrowley321/identity-model/releases/download/4.1.2-rc.1190.1c66f32/py_identity_model-4.1.1-py3-none-any.whl
# Using uv
uv pip install https://github.com/jamescrowley321/identity-model/releases/download/4.1.2-rc.1190.1c66f32/py_identity_model-4.1.1-py3-none-any.whlOption 2: Install from PR branch
# Using pip
pip install git+https://github.com/jamescrowley321/identity-model.git@dependabot/github_actions/github-actions-37fe1bfefe
# Using uv
uv pip install "git+https://github.com/jamescrowley321/identity-model.git@dependabot/github_actions/github-actions-37fe1bfefe#subdirectory=py"For production use, install the stable version from PyPI:
pip install py-identity-modelRust rust-v0.8.2
Rust crate release rust-v0.8.2 — published to crates.io as rs-identity-model.
[dependencies]
rs-identity-model = "0.8.2"What's Changed
- fix(rust): bump url to 2.5.9 for RUSTSEC-2026-0592 by @jamescrowley321 in #1191
Full Changelog: 4.1.2-rc.1186.837f1ee...rust-v0.8.2
4.1.2-rc.1191.447db51
Pre-release 4.1.2-rc.1191.447db51
This is an automated pre-release from PR #1191: fix(rust): bump url to 2.5.9 for RUSTSEC-2026-0592
PR: #1191
Installation for Testing
Option 1: Install from GitHub Release (Recommended)
# Using pip
pip install https://github.com/jamescrowley321/identity-model/releases/download/4.1.2-rc.1191.447db51/py_identity_model-4.1.1-py3-none-any.whl
# Using uv
uv pip install https://github.com/jamescrowley321/identity-model/releases/download/4.1.2-rc.1191.447db51/py_identity_model-4.1.1-py3-none-any.whlOption 2: Install from PR branch
# Using pip
pip install git+https://github.com/jamescrowley321/identity-model.git@fix/rustsec-2026-0592-url
# Using uv
uv pip install "git+https://github.com/jamescrowley321/identity-model.git@fix/rustsec-2026-0592-url#subdirectory=py"For production use, install the stable version from PyPI:
pip install py-identity-model4.1.2-rc.1186.837f1ee
Pre-release 4.1.2-rc.1186.837f1ee
This is an automated pre-release from PR #1186: ci(deps)(deps): bump the github-actions group with 3 updates
PR: #1186
Installation for Testing
Option 1: Install from GitHub Release (Recommended)
# Using pip
pip install https://github.com/jamescrowley321/identity-model/releases/download/4.1.2-rc.1186.837f1ee/py_identity_model-4.1.1-py3-none-any.whl
# Using uv
uv pip install https://github.com/jamescrowley321/identity-model/releases/download/4.1.2-rc.1186.837f1ee/py_identity_model-4.1.1-py3-none-any.whlOption 2: Install from PR branch
# Using pip
pip install git+https://github.com/jamescrowley321/identity-model.git@dependabot/github_actions/github-actions-d02ed9e71e
# Using uv
uv pip install "git+https://github.com/jamescrowley321/identity-model.git@dependabot/github_actions/github-actions-d02ed9e71e#subdirectory=py"For production use, install the stable version from PyPI:
pip install py-identity-model4.1.2-rc.1185.fc3e3b9
Pre-release 4.1.2-rc.1185.fc3e3b9
This is an automated pre-release from PR #1185: ci(deps)(deps): bump anthropics/claude-code-action from 1.0.275 to 1.0.276 in the github-actions group
PR: #1185
Installation for Testing
Option 1: Install from GitHub Release (Recommended)
# Using pip
pip install https://github.com/jamescrowley321/identity-model/releases/download/4.1.2-rc.1185.fc3e3b9/py_identity_model-4.1.1-py3-none-any.whl
# Using uv
uv pip install https://github.com/jamescrowley321/identity-model/releases/download/4.1.2-rc.1185.fc3e3b9/py_identity_model-4.1.1-py3-none-any.whlOption 2: Install from PR branch
# Using pip
pip install git+https://github.com/jamescrowley321/identity-model.git@dependabot/github_actions/github-actions-ae4eb9bd8c
# Using uv
uv pip install "git+https://github.com/jamescrowley321/identity-model.git@dependabot/github_actions/github-actions-ae4eb9bd8c#subdirectory=py"For production use, install the stable version from PyPI:
pip install py-identity-model4.1.2-rc.1172.e8025b9
Pre-release 4.1.2-rc.1172.e8025b9
This is an automated pre-release from PR #1172: ci(deps)(deps): bump the github-actions group with 3 updates
PR: #1172
Installation for Testing
Option 1: Install from GitHub Release (Recommended)
# Using pip
pip install https://github.com/jamescrowley321/identity-model/releases/download/4.1.2-rc.1172.e8025b9/py_identity_model-4.1.1-py3-none-any.whl
# Using uv
uv pip install https://github.com/jamescrowley321/identity-model/releases/download/4.1.2-rc.1172.e8025b9/py_identity_model-4.1.1-py3-none-any.whlOption 2: Install from PR branch
# Using pip
pip install git+https://github.com/jamescrowley321/identity-model.git@dependabot/github_actions/github-actions-0e965377d6
# Using uv
uv pip install "git+https://github.com/jamescrowley321/identity-model.git@dependabot/github_actions/github-actions-0e965377d6#subdirectory=py"For production use, install the stable version from PyPI:
pip install py-identity-model