Changelogs » Authlib

Authlib

0.13

------------

**Released on Nov 11, 2019. Go Async**

This is the release that makes Authlib one more step close to v1.0. We
did a huge refactor on our integrations. Authlib believes in monolithic
design, it enables us to design the API to integrate with every framework
in the best way. In this release, Authlib has re-organized the folder
structure, moving every integration into the ``integrations`` folder. It
makes Authlib to add more integrations easily in the future.

**RFC implementations** and updates in this release:

- RFC7591: OAuth 2.0 Dynamic Client Registration Protocol
- RFC8628: OAuth 2.0 Device Authorization Grant

**New integrations** and changes in this release:

- **HTTPX** OAuth 1.0 and OAuth 2.0 clients in both sync and async way
- **Starlette** OAuth 1.0 and OAuth 2.0 client registry
- The experimental ``authlib.client.aiohttp`` has been removed

**Bug fixes** and enhancements in this release:

- Add custom client authentication methods for framework integrations.
- Refresh token automatically for client_credentials grant type.
- Enhancements on JOSE, specifying ``alg`` values easily for JWS and JWE.
- Add PKCE into requests OAuth2Session and HTTPX OAuth2Client.

**Deprecate Changes**: find how to solve the deprecate issues via https://git.io/Jeclj

0.12

------------

**Released on Sep 3, 2019.**

**Breaking Change**: Authlib Grant system has been redesigned. If you
are creating OpenID Connect providers, please read the new documentation
for OpenID Connect.

**Important Update**: Django OAuth 2.0 server integration is ready now.
You can create OAuth 2.0 provider and OpenID Connect 1.0 with Django
framework.

RFC implementations and updates in this release:

- RFC6749: Fixed scope validation, omit the invalid scope
- RFC7521: Added a common ``AssertionClient`` for the assertion framework
- RFC7662: Added ``IntrospectionToken`` for introspection token endpoint
- OpenID Connect Discover: Added discovery model based on RFC8414

Refactor and bug fixes in this release:

- **Breaking Change**: add ``RefreshTokenGrant.revoke_old_credential`` method
- Rewrite lots of code for ``authlib.client``, no breaking changes
- Refactor ``OAuth2Request``, use explicit query and form
- Change ``requests`` to optional dependency
- Add ``AsyncAssertionClient`` for aiohttp

**Deprecate Changes**: find how to solve the deprecate issues via https://git.io/fjPsV

0.11

------------

**Released on Apr 6, 2019.**

**BIG NEWS**: Authlib has changed its open source license **from AGPL to BSD**.

**Important Changes**: Authlib specs module has been split into jose, oauth1,
oauth2, and oidc. Find how to solve the deprecate issues via https://git.io/fjvpt

RFC implementations and updates in this release:

- RFC7518: Added A128GCMKW, A192GCMKW, A256GCMKW algorithms for JWE.
- RFC5849: Removed draft-eaton-oauth-bodyhash-00 spec for OAuth 1.0.

Small changes and bug fixes in this release:

- Fixed missing scope on password and client_credentials grant types
of ``OAuth2Session`` via :gh:`issue96`.
- Fixed Flask OAuth client cache detection via :gh:`issue98`.
- Enabled ssl certificates for ``OAuth2Session`` via :gh:`PR100`, thanks
to pingz.
- Fixed error response for invalid/expired refresh token via :gh:`issue112`.
- Fixed error handle for invalid redirect uri via :gh:`issue113`.
- Fixed error response redirect to fragment via :gh:`issue114`.
- Fixed non-compliant responses from RFC7009 via :gh:`issue119`.

**Experiment Features**: There is an experiment ``aiohttp`` client for OAuth1
and OAuth2 in ``authlib.client.aiohttp``.

0.10

------------

**Released on Oct 12, 2018.**

The most important change in this version is grant extension system. When
registering a grant, developers can pass extensions to the grant::

authorization_server.register_grant(GrantClass, [extension])

Find Flask :ref:`flask_oauth2_grant_extensions` implementation.

RFC implementations and updates in this release:

- RFC8414: OAuth 2.0 Authorization Server Metadata
- RFC7636: make CodeChallenge a grant extension :ref:`specs/rfc7636`
- OIDC: make OpenIDCode a grant extension

Besides that, there are other improvements:

- Export ``save_authorize_state`` method on Flask and Django client
- Add ``fetch_token`` to Django OAuth client
- Add scope operator for ``require_oauth`` :ref:`flask_oauth2_multiple_scopes`
- Fix two OAuth clients in the same Flask route :gh:`PR85`

**Deprecate Changes**: find how to solve the deprecate issues via https://git.io/fAmW1

0.9

-----------

**Released on Aug 12, 2018. Fun Dive.**

There is no big break changes in this version. The very great improvement is
adding JWE support. But the JWA parts of JWE are not finished yet, use with
caution.

RFC implementations in this release:

- RFC7636: client and server implementation of :ref:`specs/rfc7636`.
- RFC7523: easy integration of :ref:`jwt_oauth2session`.
- RFC7516: JWE compact serialization and deserialization.
- RFC7519: JWT with JWE encode and decode.

**Other Changes**:

- Fixed the lazy initialization of Flask OAuth 2.0 provider.
- Deprecated ``authlib.client.apps`` from v0.7 has been dropped.

0.8

- RFC7523: Add JWTs for Client Authentication of :ref:`specs/rfc7523`.
- OIDC: Add ``response_mode=form_post`` support for OpenID Connect.

**Improvement** in this release:

- A new redesigned error system. All errors are subclasses of a ``AuthlibBaseError``.
- I18N support for error descriptions.
- Separate AuthorizationCodeMixin in ``authlib.flask.oauth2.sqla`` via :gh:`issue57`.
- Add context information when generate token via :gh:`issue58`.
- Improve JWT key handles, auto load JWK and JWK set.
- Add ``require_oauth.acquire`` with statement, get example on :ref:`flask_oauth2_server`.

**Deprecate Changes**: find how to solve the deprecate issues via https://git.io/vhL75

- Rename config key ``OAUTH2_EXPIRES_IN`` to ``OAUTH2_TOKEN_EXPIRES_IN``.
- Rename Flask OAuth 2.0 ``create_expires_generator`` to
``create_token_expires_in_generator``

0.7

- RFC7515_: Refactored :class:`~authlib.rfc7515.JWS`, make it a full implementation.
- RFC7521_: Add :class:`~authlib.client.AssertionSession`, only works with RFC7523_.
- RFC7523_: Add :class:`~authlib.oauth2.rfc7523.JWTBearerGrant`, read the guide in
:ref:`specs/rfc7523`.

Besides that, there are more changes:

- Add ``overwrite`` parameter for framework integrations clients.
- Add ``response_mode=query`` for OpenID Connect implicit and hybrid flow.
- Bug fix and documentation fix via :gh:`issue42`, :gh:`issue43`.
- Dropping ``authlib.client.apps``. Use Loginpass_ instead.

**Deprecate Changes**: find how to solve the deprecate issues via https://git.io/vpCH5

.. _RFC7521: https://tools.ietf.org/html/rfc7521
.. _RFC7523: https://tools.ietf.org/html/rfc7523
.. _Loginpass: https://github.com/authlib/loginpass

0.6

-----------

**Released on Mar 20, 2018. Going Beta!**

From alpha to beta. This is a huge release with lots of deprecating changes
and some breaking changes. And finally, OpenID Connect server is supported
by now, because Authlib has added these specifications:

- RFC7515_: JSON Web Signature (JWS)
- RFC7517_: JSON Web Key (JWK)
- RFC7518_: JSON Web Algorithms (JWA)
- RFC7519_: JSON Web Token (JWT)

The specifications are not completed yet, but they are ready to use. The
missing RFC7516 (JWE) is going to be implemented in next version. Open ID
Connect 1.0 is added with:

- Authentication using the :ref:`flask_odic_code`
- Authentication using the :ref:`flask_odic_implicit`
- Authentication using the :ref:`flask_odic_hybrid`
- ID Token Validation

Besides that, there are more changes:

- Implementation of RFC7662: OAuth 2.0 Token Introspection via :gh:`PR36`.
- Use the ``token_endpoint_auth_method`` concept defined in `RFC7591`_.
- Signal feature for Flask integration of OAuth 2.0 server.
- Bug fixes for OAuth client parts, thanks for the instruction by Lukas Schink.

**Breaking Changes**:

1. the columns in ``authlib.flask.oauth2.sqla`` has been changed a lot.
If you are using it, you need to upgrade your database.

2. use ``register_token_validator`` on
:ref:`ResourceProtector <flask_oauth2_resource_protector>`.

3. ``authlib.client.oauth1.OAuth1`` has been renamed to
``authlib.client.oauth1.OAuth1Auth``.

**Deprecate Changes**: find how to solve the deprecate issues via https://git.io/vAAUK

.. _`RFC7515`: https://tools.ietf.org/html/rfc7515
.. _`RFC7517`: https://tools.ietf.org/html/rfc7517
.. _`RFC7518`: https://tools.ietf.org/html/rfc7518
.. _`RFC7519`: https://tools.ietf.org/html/rfc7519
.. _`RFC7591`: https://tools.ietf.org/html/rfc7591


Old Versions
------------

Find old changelog at https://github.com/lepture/authlib/releases

0.5.1


      

0.5.0


      

0.4.1


      

0.4.0


      

0.3.0


      

0.2.1


      

0.2.0


      

0.1.0