From 7575ea336c58ff3d206a62a94f1c01a0e594cba4 Mon Sep 17 00:00:00 2001 From: Hsiaoming Yang Date: Tue, 6 Dec 2022 17:34:02 +0900 Subject: [PATCH] Version bump 1.2.0 --- authlib/consts.py | 2 +- docs/changelog.rst | 5 +++-- tests/clients/test_django/test_oauth_client.py | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/authlib/consts.py b/authlib/consts.py index d72f6a88..e5ac17ff 100644 --- a/authlib/consts.py +++ b/authlib/consts.py @@ -1,5 +1,5 @@ name = 'Authlib' -version = '1.1.0' +version = '1.2.0' author = 'Hsiaoming Yang ' homepage = 'https://authlib.org/' default_user_agent = '{}/{} (+{})'.format(name, version, homepage) diff --git a/docs/changelog.rst b/docs/changelog.rst index 217a66af..0da0961c 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -9,14 +9,15 @@ Here you can see the full list of changes between each Authlib release. Version 1.2.0 ------------- -**Release date not decided** +**Released on Dec 6, 2022** - Not passing ``request.body`` to ``ResourceProtector``, via :gh:`issue#485`. - Use ``flask.g`` instead of ``_app_ctx_stack``, via :gh:`issue#482`. - Add ``headers`` parameter back to ``ClientSecretJWT``, via :gh:`issue#457`. - Always passing ``realm`` parameter in OAuth 1 clients, via :gh:`issue#339`. - Implemented RFC7592 Dynamic Client Registration Management Protocol, via :gh:`PR#505`. - +- Add ``default_timeout`` for requests ``OAuth2Session`` and ``AssertionSession``. +- Deprecate ``jwk.loads`` and ``jwk.dumps`` Version 1.1.0 ------------- diff --git a/tests/clients/test_django/test_oauth_client.py b/tests/clients/test_django/test_oauth_client.py index 9276ec6a..274f1f9a 100644 --- a/tests/clients/test_django/test_oauth_client.py +++ b/tests/clients/test_django/test_oauth_client.py @@ -222,7 +222,7 @@ def test_openid_authorize(self): token = get_bearer_token() token['id_token'] = generate_id_token( - token, {'sub': '123'}, key, + token, {'sub': '123'}, secret_key, alg='HS256', iss='https://i.b', aud='dev', exp=3600, nonce=query_data['nonce'], )