Up to [cvs.NetBSD.org] / pkgsrc / security / py-authlib
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
py-authlib: updated to 1.9.8 1.9.8 — 2026-11-16 Security The OAuth 1.0 server rejects HMAC-SHA1 and PLAINTEXT signatures from a client without a client secret. Anyone could compute these signatures, and impersonate a client registered with an RSA key only. GHSA-4gjv-v7fq-ghfp JsonWebEncryption rejects a JWE in ECDH-1PU key wrapping mode whose enc is not AES_CBC_HMAC_SHA2 on decryption, as it already did on encryption. A recipient could forge messages that other recipients accepted as sent by the original sender. GHSA-5mqf-4prf-9r2m
py-authlib: updated to 1.9.5 1.9.5 Security authlib.jose refuses as an HMAC secret every OpenSSH public key or certificate that it can load as an RSA, EC or OKP key. It used to accept a key with a tab after the key type, and certificates. These keys verify RS256 and EdDSA tokens, so anyone who knew the public key could forge an HS256 token for an application that did not restrict the algorithms. This completes the fix for CVE-2026-114615. GHSA-f7j6-p4qx-gq99
py-authlib: updated to 1.9.4 1.9.4 — 2026-11-04 Security IDJAGGrant stores the verified claims of the ID-JAG in request.id_jag_claims. authenticate_user can use them to resolve the user with the iss and sub claims, and tenant for a multi-tenant IdP. The documentation used to resolve the user with sub alone. An IdP, or a tenant of an IdP, could then get access tokens for the users of another one. Update authenticate_user if your server trusts several IdPs or a multi-tenant IdP. GHSA-9qr6-8289-9j56
py-authlib: updated to 1.9.3 Version 1.9.3 — 2026-11-03 Security The OpenID Connect implicit and hybrid grants refuse response_mode=form_post when the redirect URI does not use the http or https scheme. They return an invalid_request error and do not redirect. A client with a javascript: redirect URI could run a script in the origin of the authorization server, even when the user denied the authorization. GHSA-gp2m-377p-m4j3 Version 1.9.2 — 2026-11-01 Security IDJAGGrant limits the access token to the scopes in the scope claim of the ID-JAG. A client used to get any scope allowed by its registration, even when the IdP granted fewer scopes. Without a scope request parameter, the access token now gets the scopes of the claim instead of no scope. GHSA-f3fg-34g9-v7jx
py-authlib: updated to 1.9.1 1.9.1 Use scriv to handle the changelog 1.9.0 eat: add Identity Assertion JWT Authorization Grant (ID-JAG) Fix empty signatures validation in JWS JSON deserialization fix(jose): reject boolean values for NumericDate claims fix(client): avoid duplicated OAuth 1.0 parameters in signed requests OAuth2 token fetch crashes with JSONDecodeError instead of a catchable error on rate-limit responses docs: add i18n wrappers in conf.py and templates fix(oauth): enforce JOSE key, scope, and audience validation AsyncOpenIDMixin.parse_id_token: return None when id_token is absent, matching the sync client fix(oauth): enforce nonce and JAR request validation fix(oauth): require client authentication for ID-JAG grants
py-authlib: updated to 1.8.0 1.8.0 Prefer id_token_signed_response_alg client metadata to guess algs fix: Catch InvalidKeyIdError in RFC 9068 JWTBearerTokenValidator fix: make leeway configurable in JWTBearerTokenValidator feat: add default jti claim to sign_jwt_bearer_assertion fix(oauth): cast sub claim to string in JWTBearerTokenGenerator Declare lower bounds for dependencies feat(client): use httpx2 instead of httpx Fix RFC7523 malformed claims handling Fix httpx oauth1 binary form data fix(starlette_client): remove default= keyword from config.get calls Added client_id parameter to AssertionClient fix(oauth): save device credential with authenticated client id fix(oauth1): correct protocol name in InsecureTransportError description fix(client): client can be flexible with jwt's header fix(oidc): omit claims when the value is None
py-authlib: updated to 1.7.2 1.7.2 Fix the readme links Allow non-recommended algorithms in ClientSecretJWT and PrivateKey Validate BCP47 language tags with a regex Fix RFC7523 signing with non RSA keys
py-authlib: updated to 1.7.0 1.7.0 Authorization and token endpoints request empty scope parameter management Support from Python 3.10 to 3.14 Allow composition of AuthorizationServerMetadata Make require_oauth parenthesis optional Fix expires_at behavior when its value is 0 Migration to joserfc RP-initiated logout Fix get_jwt_config chore(ci): Update PyPy version from 3.10 to 3.11 fix: remove "none" from default authlib.jose.jwt algorithms fix: normalize resolve_client_public_key method Implement rfc9700 PKCE downgrade countermeasure Use correct syntax for tox.requires in tox.ini Set client session User-Agent when fetching server metadata and JWKs fix: use the real application object for Flask Accept the issuer URL as a valid audience Don't nest InvalidTokenError extra attribute Documentation overhaul Update README.md docs.authlib.org/en/latest => docs.authlib.org/en/stable Merge release/1.6 branch
py-joserfc: added version 1.6.4 joserfc is a Python library that provides a comprehensive implementation of several essential JSON Object Signing and Encryption (JOSE) standards.
py-authlib: updated to 1.6.11 1.6.11 Fix CSRF issue with starlette client
py-authlib: updated to 1.6.10 1.6.10 Fix redirecting to unvalidated redirect_uri on UnsupportedResponseTypeError.
py-authlib: updated to 1.6.9 1.6.9 Changes in jose module Not using header's jwk automatically Add ES256K into default jwt algorithms Remove deprecated algorithm from default registry Generate random cek when cek length doesn't match
py-authlib: updated to 1.6.8 1.6.8 Bug fixes
py-authlib: updated to 1.6.7 1.6.7 Set supported algorithms for the default jwt instance.
py-authlib: updated to 1.6.6 1.6.6 get_jwt_config takes a client parameter. Fix incorrect signature when Content-Type is x-www-form-urlencoded for OAuth 1.0 Client. Use expires_in in OAuth2Token when expires_at is unparsable. Always track state in session for OAuth client integrations.
py-authlib: updated to 1.6.5 1.6.5 Unknown changes
py-authlib: updated to 1.6.4 1.6.4 fix(jose): prevent public/unprotected header overwriting protected header Fix InsecureTransportError raising Add conventional-commits pre-commit hook Fix response_mode=form_post with Starlette client Specify README.md as project long description Migrate tests to pytest paradigm jose/jws: Reject unprotected ‘crit’ and enforce type; add tests Use explicit *.test urls in unit tests
py-authlib: updated to 1.6.3 1.6.3 Add diff-cover check in GHA Run GHA unit tests with uv Move from pre-commit to prek Sign OIDC id_token according to id_token_signed_response_alg client metadata
py-authlib: updated to 1.6.2 1.6.2 Allow insecure transport for 127.0.0.1 for debugging Raise a MissingCodeError when code parameter is missing Temporarily restore OAuth2Request body parameter Raise MissingCodeException when code parameter is missing Fix id_token generation with EdDSA alg
py-authlib: updated to 1.6.1 1.6.1 Filter key set with additional "alg" and "use" parameters.
py-authlib: updated to 1.6.0 1.6.0 Fix issue when RFC9207 is enabled and the authorization endpoint response is not a redirection. Fix missing state parameter in authorization error responses. Support for acr and amr claims in id_token. Support for the none JWS algorithm. Fix response_types strict order during dynamic client registration. Implement RFC9101 The OAuth 2.0 Authorization Framework: JWT-Secured Authorization Request (JAR). OIDC UserInfo endpoint support.
py-authlib: updated to 1.5.2 1.5.2 Forbid fragments in redirect_uris. Fix invalid characters in error_description. Add claims_cls parameter for client's parse_id_token method.
py-authlib: updated to 1.5.1 1.5.1 Fix RFC9207 iss parameter.
py-authlib: updated to 1.5.0 1.5.0 - Fix token introspection auth method for clients. - Optional ``typ`` claim in JWT tokens. - JWT validation leeway. - Implement server-side :rfc:`RFC9207 <9207>`. - ``generate_id_token`` can take a ``kid`` parameter. - More detailed ``InvalidClientError``. - OpenID Connect Dynamic Client Registration implementation.
py-authlib: updated to 1.4.1 1.4.1 Improve garbage collection on OAuth clients. Fix client parameters for httpx.
py-authlib: updated to 1.4.0 1.4.0 Fix id_token decoding when kid is null. Support for Python 3.13. Force login if the prompt parameter value is login. Support for httpx 0.28, Breaking changes: Stop support for Python 3.8
py-authlib: updated to 1.3.2 Version 1.3.2 Prevent ever-growing session size for OAuth clients. Revert quote client id and secret. unquote basic auth header for authorization server.
py-authlib: updated to 1.3.1 1.3.1 Prevent OctKey to import ssh and PEM strings.
py-authlib: updated to 1.3.0 Version 1.3.0 Bug fixes Restore AuthorizationServer.create_authorization_response behavior Include leeway in validate_iat() for JWT Fix encode_client_secret_basic Use single key in JWK if JWS does not specify kid Fix error when RFC9068 JWS has no scope field Get werkzeug version using importlib Breaking changes RFC9068 implementation
py-authlib: updated to 1.2.1 Version 1.2.1 Released on Jun 25, 2023 Apply headers in ClientSecretJWT.sign method Allow falsy but non-None grant uri params Fixed authorize_redirect for Starlette v0.26.0 Removed has_client_secret method and documentation Removed request_invalid and token_revoked remaining occurences and documentation Fixed RFC7591 grant_types and response_types default values
py-authlib: updated to 1.2.0 Version 1.2.0 Not passing request.body to ResourceProtector Use flask.g instead of _app_ctx_stack Add headers parameter back to ClientSecretJWT Always passing realm parameter in OAuth 1 clients Implemented RFC7592 Dynamic Client Registration Management Protocol Add default_timeout for requests OAuth2Session and AssertionSession. Deprecate jwk.loads and jwk.dumps
py-authlib: updated to 1.1.0 Version 1.1.0 This release contains breaking changes and security fixes. Allow to pass claims_options to Framework OpenID Connect clients. Fix .stream with context for HTTPX OAuth clients. Fix Starlette OAuth client for cache store. Breaking changes: Raise InvalidGrantError for invalid code, redirect_uri and no user errors in OAuth 2.0 server. The default authlib.jose.jwt would only work with JSON Web Signature algorithms, if you would like to use JWT with JWE algorithms, please pass the algorithms parameter: jwt = JsonWebToken(['A128KW', 'A128GCM', 'DEF']) Security fixes: CVE-2022-39175 and CVE-2022-39174, both related to JOSE. Version 1.0.1 Fix authenticate_none method. Allow to pass in alternative signing algorithm to RFC7523 authentication methods. Fix missing_token for Flask OAuth client. Allow openid in any place of the scope. Security fix for validating essential value on blank value in JWT. Version 1.0.0 We have dropped support for Python 2 in this release. We have removed built-in SQLAlchemy integration. OAuth Client Changes: The whole framework client integrations have been restructured, if you are using the client properly, e.g. oauth.register(...), it would work as before. OAuth Provider Changes: In Flask OAuth 2.0 provider, we have removed the deprecated OAUTH2_JWT_XXX configuration, instead, developers should define .get_jwt_config on OpenID extensions and grant types. SQLAlchemy integrations has been removed from Authlib. Developers should define the database by themselves. JOSE Changes JWS has been renamed to JsonWebSignature JWE has been renamed to JsonWebEncryption JWK has been renamed to JsonWebKey JWT has been renamed to JsonWebToken The "Key" model has been re-designed, checkout the :ref:`jwk_guide` for updates. Added ES256K algorithm for JWS and JWT.
py-authlib: updated to 0.15.5 Version 0.15.5 Make Authlib compatible with latest httpx Make Authlib compatible with latest werkzeug Allow customize RFC7523 alg value
security: Replace RMD160 checksums with BLAKE2s checksums All checksums have been double-checked against existing RMD160 and SHA512 hashes Unfetchable distfiles (fetched conditionally?): ./security/cyrus-sasl/distinfo cyrus-sasl-dedad73e5e7a75d01a5f3d5a6702ab8ccd2ff40d.patch.v2
security: Remove SHA1 hashes for distfiles
py-authlib: updated to 0.15.4 0.15.4: Unknown changes
py-authlib: updated to 0.15.3 Version 0.15.3 Fixed .authorize_access_token for OAuth 1.0 services
py-authlib: updated to 0.15.2 Version 0.15.2 Fixed httpx authentication bug
py-authlib: updated to 0.15.1 Version 0.15.1 Backward compitable fix for using JWKs in JWT
py-authlib: updated to 0.15 Version 0.15 This is the last release before v1.0. In this release, we added more RFCs implementations and did some refactors for JOSE: RFC8037: CFRG Elliptic Curve Diffie-Hellman (ECDH) and Signatures in JSON Object Signing and Encryption (JOSE) RFC7638: JSON Web Key (JWK) Thumbprint We also fixed bugs for integrations: Fixed support for HTTPX>=0.14.3 Added OAuth clients of HTTPX back Fixed parallel token refreshes for HTTPX async OAuth 2 client Raise OAuthError when callback contains errors Breaking Change: The parameter algorithms in JsonWebSignature and JsonWebEncryption are changed. Usually you don't have to care about it since you won't use it directly. Whole JSON Web Key is refactored, please check JSON Web Key (JWK)
py-authlib: added version 0.9.1 OAuth often seems complicated and difficult-to-implement. There are several prominent libraries for handling OAuth requests, but they all suffer from one or both of the following: * They predate the OAuth 1.0 spec, AKA RFC 5849. * They predate the OAuth 2.0 spec, AKA RFC 6749. * They assume the usage of a specific HTTP request library. OAuthLib is a generic utility which implements the logic of OAuth without assuming a specific HTTP request object or web framework. Use it to graft OAuth client support onto your favorite HTTP library, or provider support onto your favourite web framework. If you're a maintainer of such a library, write a thin veneer on top of OAuthLib and get OAuth support for very little effort.