unstale

pypi / authlib

authlib

What changed in authlib 1, from its official release notes, upgrade guides and advisories. Sources checked 2026-12-05.

29 breaking20 security8 new APIs and options8 behavior and defaults23 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.3.1 on npm

authlib 188 changes

Breaking changes 29

  • Confidential clients can no longer authenticate with only client_id on revocation, introspection, and device authorization endpoints; add their authentication method to CLIENT_AUTH_METHODS or they receive invalid_client.

    1.9.9release notes

  • Rejects on decryption a JWE in ECDH-1PU key wrapping mode when enc is not AES_CBC_HMAC_SHA2, matching its existing encryption behavior.

    1.9.8release notes

  • Rejects HMAC-SHA1 and PLAINTEXT signatures from clients without a client secret, preventing impersonation of clients registered with an RSA key only.

    1.9.8release notes

  • Rejects JWE JSON Serialization with more than 16 recipients, limiting the private-key operations a message can trigger.

    1.9.7release notes

  • Rejects an ID-JAG with a cnf claim because Authlib does not support DPoP or mTLS key bindings and previously accepted bound ID-JAGs without proof of possession.

    1.9.6release notes

  • Refuses OpenSSH public keys and certificates it can load as RSA, EC, or OKP keys as HMAC secrets, preventing public-key holders from forging HS256 tokens.

    1.9.5release notes

  • The OpenID Connect implicit and hybrid grants reject form_post when the redirect URI does not use http or https, returning invalid_request without redirecting.

    1.9.3release notes

  • Limits access-token scopes to the ID-JAG scope claim; without a scope request parameter, the token now receives the claim’s scopes instead of no scope.

    1.9.2release notes

  • Rejects empty HMAC keys with a ValueError, preventing anyone from forging HS256, HS384 and HS512 signatures.

    1.9.1release notessecurity advisory

  • Tokens used for the RFC 7592 client configuration endpoint must implement TokenMixin.check_client.

    1.9.1release notes

  • Requires client authentication for ID-JAG grants.

    1.9.0release notes

  • Enforces key, scope, and audience validation.

    1.9.0release notes

  • Enforces nonce and JAR request validation.

    1.9.0release notes

  • Boolean values are rejected for NumericDate claims.

    1.9.0release notes

  • The client uses httpx2 instead of httpx.

    1.8.0release notes

  • The default authlib.jose.jwt algorithms no longer include none.

    1.7.0release notes

  • Stops nesting the InvalidTokenError extra attribute.

    1.7.0release notes

  • Authlib migrates to joserfc.

    1.7.0release notes

  • A deprecated algorithm was removed from the default registry.

    1.6.9release notes

  • The JOSE module no longer uses the header's jwk automatically.

    1.6.9release notessecurity advisory

  • The default jwt instance now has supported algorithms set, affecting which algorithms it supports by default.

    1.6.7release notes

  • JWE has been renamed to JsonWebEncryption.

    1.0.0release notes

  • JWK has been renamed to JsonWebKey.

    1.0.0release notes

  • JWS has been renamed to JsonWebSignature.

    1.0.0release notes

  • JWT has been renamed to JsonWebToken.

    1.0.0release notes

  • The Key model has been redesigned.

    1.0.0release notes

  • The deprecated Flask OAuth 2.0 provider configuration has been removed.

    1.0.0release notes

  • Support for Python 2 has been dropped.

    1.0.0release notes

  • Built-in SQLAlchemy integrations have been removed; developers should define the database themselves.

    1.0.0release notes

Security 20

  • Sets the recipient limit for JWE JSON Serialization; the default limit is 16.

    1.9.7release notes

  • IDJAGGrant stores verified ID-JAG claims here so authenticate_user can resolve users using iss and sub, and tenant for a multi-tenant IdP, preventing cross-IdP user access.

    1.9.4release notes

  • Rejects registration access tokens issued to another client with an access_denied error, preventing access to another client's registration.

    1.9.1release notessecurity advisory

  • Authlib: Default JWT bearer grant accepts assertions for the wrong audience

    1.9.0security advisory

  • Authlib: ID token can disable its own nonce validation via the nonce_supported claim

    1.9.0security advisory

  • Authlib incomplete algorithm-confusion fix permits HMAC forgery with prefixed public keys

    1.9.0security advisory

  • Authlib: OpenID implicit grant checks raw scope instead of allowed scope before issuing ID tokens

    1.9.0security advisory

  • Authlib: Unvalidated request_uri fetch in JWT-secured authorization request (JAR) leading to SSRF

    1.9.0security advisory

  • Fixes validation of empty signatures during JWS JSON deserialization.

    1.9.0release notessecurity advisory

  • Authlib: is_secure_transport() loopback exemption can be bypassed with a userinfo component, allowing cleartext-HTTP URLs to non-loopback hosts

    1.8.0security advisory

  • Authlib OAuth 2.0 has Open Redirect in Authorization API that allows attacker-controlled redirect_uri through unsupported response_type

    1.6.10, 1.7.1security advisoryrelease notes

  • Authlib OIDC Implicit/Hybrid Authorization Vulnerable to Open Redirect

    1.6.12, 1.7.1security advisoryrelease notesrelease notes

  • Implements the RFC 9700 PKCE downgrade countermeasure.

    1.7.0release notes

  • Authlib: Cross-site request forging when using cache

    1.6.11security advisory

  • Fixes a CSRF issue with the Starlette client.

    1.6.11release notes

  • Authlib: Fail-Open Cryptographic Verification in OIDC Hash Binding

    1.6.9security advisory

  • Authlib Vulnerable to JWE RSA1_5 Bleichenbacher Padding Oracle

    1.6.9security advisory

  • Authlib: Setting alg: none and a blank signature appears to bypass signature verification

    1.6.7security advisory

  • Authlib has 1-click Account Takeover vulnerability

    1.6.6security advisory

  • Fixes an incorrect signature when the Content-Type is x-www-form-urlencoded.

    1.6.6release notes

New APIs and options 8

  • Adds support for the Identity Assertion JWT Authorization Grant.

    1.9.0release notes

  • Adds a client_id parameter.

    1.8.0release notes

  • Leeway is configurable for JWT bearer token validation.

    1.8.0release notes

  • AuthorizationServerMetadata can now be composed.

    1.7.0release notes

  • Adds support for RP-initiated logout.

    1.7.0release notes

  • Takes a client parameter.

    1.6.6release notes

  • The ES256K algorithm has been added for JWS and JWT.

    1.0.0release notes

  • OpenID extensions and grant types should define get_jwt_config instead of using the deprecated OAUTH2_JWT_XXX configuration.

    1.0.0release notes

Behavior and default changes 8

  • Client metadata is preferred when guessing algorithms.

    1.8.0release notes

  • Adds a default jti claim when signing a JWT bearer assertion.

    1.8.0release notes

  • Allows non-recommended algorithms in ClientSecretJWT.

    1.7.2release notes

  • Allows non-recommended algorithms in PrivateKey.

    1.7.2release notes

  • Parentheses are optional when using require_oauth.

    1.7.0release notes

  • Sets the client session User-Agent when fetching server metadata and JWKs.

    1.7.0release notes

  • ES256K is now included in the default JWT algorithms.

    1.6.9release notes

  • The default jwt instance now includes EdDSA, so developers can use it without adding it themselves.

    1.6.8release notes

Fixes and other changes 23

  • Returns None when id_token is absent, matching the sync client.

    1.9.0release notes

  • Avoids duplicated OAuth 1.0 parameters in signed requests.

    1.9.0release notes

  • Rate-limit responses no longer cause an uncaught JSONDecodeError; they produce a catchable error instead.

    1.9.0release notes

  • Saves the device credential with the authenticated client id.

    1.8.0release notes

  • Fixes handling of binary form data with httpx OAuth1.

    1.8.0release notes

  • Corrects the protocol name in the OAuth1 error description.

    1.8.0release notes

  • The client can be flexible with JWT headers.

    1.8.0release notes

  • Casts the sub claim to a string.

    1.8.0release notes

  • Catches InvalidKeyIdError in the RFC 9068 validator.

    1.8.0release notes

  • Omits claims whose value is None.

    1.8.0release notes

  • Fixes handling of malformed RFC7523 claims.

    1.8.0release notes

  • Validates BCP47 language tags with a regex.

    1.7.2release notes

  • Fixes RFC7523 signing with non-RSA keys.

    1.7.2release notes

  • Fixes a deprecation warning originating from _joserfc_helpers.

    1.7.1release notes

  • Accepts the issuer URL as a valid audience.

    1.7.0release notes

  • Fixes behavior when expires_at is 0.

    1.7.0release notes

  • Uses the real application object for Flask.

    1.7.0release notes

  • Fixes get_jwt_config.

    1.7.0release notes

  • Support extends from Python 3.10 to 3.14.

    1.7.0release notes

  • Normalizes the resolve_client_public_key method.

    1.7.0release notes

  • Authorization and token endpoints request empty scope parameter management.

    1.7.0release notes

  • A random cek is generated when the provided cek length does not match.

    1.6.9release notes

  • Uses expires_in when expires_at is unparsable.

    1.6.6release notes