15
0

35 Commits

Author SHA256 Message Date
f773679dc9 Accepting request 1202971 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1202971
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-oauthlib?expand=0&rev=37
2024-09-25 19:52:57 +00:00
8a12c28a75 Accepting request 1202960 from home:ecsos:python
- Fix build error under Leap.

OBS-URL: https://build.opensuse.org/request/show/1202960
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-oauthlib?expand=0&rev=67
2024-09-24 13:01:31 +00:00
81aa580b09 Accepting request 1199667 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1199667
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-oauthlib?expand=0&rev=36
2024-09-10 19:12:26 +00:00
68b4bf95ba - Cherry-pick upstream patch to make UtilsTests.test_filter_params Python 3.13+ compatible
* Make-UtilsTests.test_filter_params-Python-3.13-compatible.patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-oauthlib?expand=0&rev=65
2024-09-09 10:53:34 +00:00
afde77faaa Accepting request 1193372 from devel:languages:python
- Skip failing test with jwt 2.9.0
  gh#oauthlib/oauthlib#877

OBS-URL: https://build.opensuse.org/request/show/1193372
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-oauthlib?expand=0&rev=35
2024-08-13 11:22:53 +00:00
2247089cab - Skip failing test with jwt 2.9.0
gh#oauthlib/oauthlib#877

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-oauthlib?expand=0&rev=63
2024-08-12 08:43:11 +00:00
ccddf83d9a Accepting request 1081851 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1081851
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-oauthlib?expand=0&rev=34
2023-04-22 19:59:56 +00:00
b95381b878 Accepting request 1030997 from devel:languages:python
- update to version 3.2.2:
  * OAuth2.0 Provider: * CVE-2022-36087
- Also remove the conditional definition of python_module.

OBS-URL: https://build.opensuse.org/request/show/1030997
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-oauthlib?expand=0&rev=33
2022-10-27 11:53:25 +00:00
f3b2f2717f Accepting request 1003122 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1003122
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-oauthlib?expand=0&rev=32
2022-09-17 18:08:19 +00:00
10ef2fab41 Accepting request 951386 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/951386
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-oauthlib?expand=0&rev=31
2022-02-06 22:53:37 +00:00
b8ab09684e Accepting request 897897 from devel:languages:python
- update to 3.1.1:
  * #753: Fix acceptance of valid IPv6 addresses in URI validation
  * #730: Base OAuth2 Client now has a consistent way of managing the `scope`: it consistently
    relies on the `scope` provided in the constructor if any, except if overridden temporarily
    in a method call. Note that in particular providing a non-None `scope` in
    `prepare_authorization_request` or `prepare_refresh_token` does not override anymore
    `self.scope` forever, it is just used temporarily.
  * #726: MobileApplicationClient.prepare_request_uri and MobileApplicationClient.parse_request_uri_response,
    ServiceApplicationClient.prepare_request_body,
    and WebApplicationClient.prepare_request_uri now correctly use the default `scope` provided in
    constructor.
  * #725: LegacyApplicationClient.prepare_request_body now correctly uses the default `scope` provided in constructor
  * #711: client_credentials grant: fix log message
  * #746: OpenID Connect Hybrid - fix nonce not passed to add_id_token
  * #756: Different prompt values are now handled according to spec (e.g. prompt=none)
  * #759: OpenID Connect - fix Authorization: Basic parsing
  * #716: improved skeleton validator for public vs private client
  * #720: replace mock library with standard unittest.mock
  * #727: build isort integration
  * #734: python2 code removal
  * #735, #750: add python3.8 support
  * #749: bump minimum versions of pyjwt and cryptography 
- drop o_switch_to_unitest_mock.patch (upstream)

OBS-URL: https://build.opensuse.org/request/show/897897
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-oauthlib?expand=0&rev=30
2021-06-11 20:30:23 +00:00
8d4789bed1 Accepting request 895353 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/895353
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-oauthlib?expand=0&rev=29
2021-06-01 08:33:00 +00:00
1066dd796c Accepting request 838547 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/838547
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-oauthlib?expand=0&rev=28
2020-10-03 16:56:31 +00:00
e7df79a450 Accepting request 798907 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/798907
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-oauthlib?expand=0&rev=27
2020-05-01 09:06:55 +00:00
dd0ccc39b7 Accepting request 730100 from devel:languages:python
- Update to 3.1.0:
  * OAuth2.0 Provider - Features * #660: OIDC add support of nonce, c_hash, at_hash fields
  * #677: OIDC add UserInfo endpoint - New RequestValidator.get_userinfo_claims method
  * #666: Disabling query parameters for POST requests

OBS-URL: https://build.opensuse.org/request/show/730100
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-oauthlib?expand=0&rev=26
2019-09-23 10:06:45 +00:00
719856c4cb Accepting request 717381 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/717381
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-oauthlib?expand=0&rev=25
2019-07-30 11:03:36 +00:00
Stephan Kulow
77ff072f20 Accepting request 676992 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/676992
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-oauthlib?expand=0&rev=24
2019-02-24 19:46:04 +00:00
7db70aab0f Accepting request 659521 from devel:languages:python
Remove superfluous devel dependency for noarch package

OBS-URL: https://build.opensuse.org/request/show/659521
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-oauthlib?expand=0&rev=23
2018-12-24 10:40:30 +00:00
2a6b20ff29 Accepting request 631174 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/631174
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-oauthlib?expand=0&rev=22
2018-08-24 15:12:00 +00:00
29d9703c5c Accepting request 611829 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/611829
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-oauthlib?expand=0&rev=21
2018-05-29 08:42:27 +00:00
fdeff4152e Accepting request 591610 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/591610
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-oauthlib?expand=0&rev=20
2018-03-28 08:33:23 +00:00
27c3f4e41c Accepting request 536027 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/536027
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-oauthlib?expand=0&rev=19
2017-11-08 14:09:55 +00:00
22fb525ddd Accepting request 530451 from devel:languages:python
1

OBS-URL: https://build.opensuse.org/request/show/530451
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-oauthlib?expand=0&rev=18
2017-10-09 17:41:01 +00:00
126f0990c0 Accepting request 517961 from devel:languages:python
1

OBS-URL: https://build.opensuse.org/request/show/517961
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-oauthlib?expand=0&rev=17
2017-08-22 09:10:28 +00:00
cf8e5cfbc0 Accepting request 493372 from devel:languages:python
1

OBS-URL: https://build.opensuse.org/request/show/493372
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-oauthlib?expand=0&rev=16
2017-05-10 18:50:37 +00:00
a1d6b108d0 Accepting request 448444 from devel:languages:python
- Use pypi.io and htttps as Source

- update to 2.0.1:
  too many changes to be listed herein
  (see /usr/share/doc/packages/python-oauthlib/CHANGELOG.rst)
- removed obsolete pycrypto.patch because changes were made upstream

OBS-URL: https://build.opensuse.org/request/show/448444
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-oauthlib?expand=0&rev=15
2017-01-10 09:45:03 +00:00
57e29e4f7f Accepting request 429472 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/429472
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-oauthlib?expand=0&rev=14
2016-09-24 13:28:14 +00:00
Stephan Kulow
3af9522ec5 Accepting request 298712 from devel:languages:python
1

OBS-URL: https://build.opensuse.org/request/show/298712
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-oauthlib?expand=0&rev=13
2015-04-25 07:52:49 +00:00
Stephan Kulow
db4af0d63d Accepting request 242386 from devel:languages:python
1

OBS-URL: https://build.opensuse.org/request/show/242386
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-oauthlib?expand=0&rev=12
2014-09-15 15:40:47 +00:00
Stephan Kulow
8c66e024cd Accepting request 229916 from devel:languages:python
update (forwarded request 229915 from posophe)

OBS-URL: https://build.opensuse.org/request/show/229916
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-oauthlib?expand=0&rev=10
2014-04-14 07:25:17 +00:00
Stephan Kulow
7cb34c1c14 Accepting request 214551 from devel:languages:python
- use pycrypto, not python-rsa (forwarded request 214547 from dirkmueller)

OBS-URL: https://build.opensuse.org/request/show/214551
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-oauthlib?expand=0&rev=9
2014-01-22 13:00:21 +00:00
Stephan Kulow
3a81b0ec87 Accepting request 214480 from devel:languages:python
- Add pycrypto requirement for "rsa" submodule

OBS-URL: https://build.opensuse.org/request/show/214480
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-oauthlib?expand=0&rev=8
2014-01-20 15:24:47 +00:00
Tomáš Chvátal
333db0978c Accepting request 205531 from devel:languages:python
Update (forwarded request 205530 from posophe)

OBS-URL: https://build.opensuse.org/request/show/205531
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-oauthlib?expand=0&rev=7
2013-11-01 16:43:01 +00:00
Tomáš Chvátal
c7b40b1be0 Accepting request 204607 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/204607
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-oauthlib?expand=0&rev=6
2013-10-25 09:24:53 +00:00
Stephan Kulow
240798a6a6 Accepting request 142574 from devel:languages:python
- Update to version 0.3.4:
  + A number of small features and bug fixes.
- Changes from version 0.3.3:
  + OAuth 1 Provider verify now return useful params
- Changes from version 0.3.2:
  + Fixed #62, all Python 3 tests pass.
- Changes from version 0.3.1:
  + Python 3.1, 3.2, 3.3 support (experimental)
- Changes from version 0.3.0:
  + Initial OAuth 2 client support
- Changes from version 0.2.1:
  + Exclude non urlencoded bodies during request verification
- Changes from version 0.2.0:
  + OAuth provider support
- Changes from version 0.1.4:
  + soft dependency on PyCrypto

OBS-URL: https://build.opensuse.org/request/show/142574
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-oauthlib?expand=0&rev=3
2012-11-25 12:50:50 +00:00
5 changed files with 57 additions and 46 deletions

View File

@@ -0,0 +1,37 @@
From 6cbbd16bf7ac0ee6af68dc900cbaa734c52343c8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <miro@hroncok.cz>
Date: Tue, 24 Oct 2023 15:08:10 +0200
Subject: [PATCH] Make UtilsTests.test_filter_params Python 3.13+ compatible
Since Python 3.13.0a1, docstrings are automatically dedented.
See https://github.com/python/cpython/issues/81283
and https://docs.python.org/3.13/whatsnew/3.13.html#other-language-changes
As a result, using a docstring with leading space as a test case
breaks the test assumption.
The initial commit which introduced this test a decade ago
(6c0c7914f3a57823834b1be492b307992f943629)
does not specify why testing the spaces is important.
---
tests/oauth1/rfc5849/test_utils.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/oauth1/rfc5849/test_utils.py b/tests/oauth1/rfc5849/test_utils.py
index 013c71a9..22128908 100644
--- a/tests/oauth1/rfc5849/test_utils.py
+++ b/tests/oauth1/rfc5849/test_utils.py
@@ -53,11 +53,11 @@ def test_filter_params(self):
# The following is an isolated test function used to test the filter_params decorator.
@filter_params
def special_test_function(params, realm=None):
- """ I am a special test function """
+ """I am a special test function"""
return 'OAuth ' + ','.join(['='.join([k, v]) for k, v in params])
# check that the docstring got through
- self.assertEqual(special_test_function.__doc__, " I am a special test function ")
+ self.assertEqual(special_test_function.__doc__, "I am a special test function")
# Check that the decorator filtering works as per design.
# Any param that does not start with 'oauth'

BIN
oauthlib-3.2.2.tar.gz LFS Normal file

Binary file not shown.

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0f0f8aa759826a193cf66c12ea1af1637f87b9b4622d46e866952bb022e538c9
size 185918

View File

@@ -1,38 +1,3 @@
-------------------------------------------------------------------
Mon Jun 30 09:16:42 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 3.3.1
OAuth2.0 Client:
* #906: fix regression of expires_in parsing when float in string.
- from version 3.3.0
OAuth2.0 Provider:
* OIDC: #879 Changed in how ui_locales is parsed
* RFC8628: Added OAuth2.0 Device Authorization Grant support
* PKCE: #876, #893 Fixed `create_code_verifier` length
* OIDC: Pre-configured OIDC server to use Refresh Token by default
OAuth2.0 Common:
* OAuth2Error: Allow 0 to be a valid state
OAuth2.0 Client:
* #745: expires_at is forced to be an int
* #899: expires_at clarification
General:
* Removed Python 3.5, 3.6, 3.7 support
* #859, #883: Added Python 3.12, 3.13 Support
* Added dependency-review GitHub Action
* Updated various references of license (SPDX identifier..)
* Added GitHub Action for lint, replaced bandy with ruff, removed isort...
* Migrated to GitHub Actions from Travis
* Added Security Policy
- Drop support for older Python versions
- Drop Make-UtilsTests.test_filter_params-Python-3.13-compatible.patch,
merged upstream
- Remove unneeded workaround to recompile Python sources
- Switch build system from setuptools to pyproject.toml
* Add python-pip and python-wheel to BuildRequires
* Replace %python_build with %pyproject_wheel
* Replace %python_install with %pyproject_install
* Update name for dist directory in %files section
-------------------------------------------------------------------
Tue Sep 24 12:27:53 UTC 2024 - ecsos <ecsos@opensuse.org>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-oauthlib
#
# Copyright (c) 2025 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,23 +16,24 @@
#
%define skip_python2 1
%{?sle15_python_module_pythons}
Name: python-oauthlib
Version: 3.3.1
Version: 3.2.2
Release: 0
Summary: A Generic Implementation of the OAuth Request-Signing Logic
License: BSD-3-Clause
Group: Development/Languages/Python
URL: https://github.com/oauthlib/oauthlib
Source: https://files.pythonhosted.org/packages/source/o/oauthlib/oauthlib-%{version}.tar.gz
# PATCH-FIX-UPSTREAM gh/oauthlib/oauthlib#866 - Make UtilsTests.test_filter_params Python 3.13+ compatible
Patch1: https://github.com/oauthlib/oauthlib/pull/866.patch#/Make-UtilsTests.test_filter_params-Python-3.13-compatible.patch
BuildRequires: %{python_module PyJWT >= 2.0.0}
BuildRequires: %{python_module blinker >= 1.4}
BuildRequires: %{python_module cryptography >= 3.0.0 }
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pyasn1}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-PyJWT >= 2.0.0
@@ -60,12 +61,18 @@ veneer on top of OAuthLib and get OAuth support for very little effort.
%prep
%setup -q -n oauthlib-%{version}
%patch -P 1 -p1
%build
%pyproject_wheel
%python_build
%install
%pyproject_install
%python_install
# Fix python-bytecode-inconsistent-mtime
pushd %{buildroot}%{python_sitelib}
find . -name '*.pyc' -exec rm -f '{}' ';'
python%python_bin_suffix -m compileall *.py ';'
popd
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
@@ -76,7 +83,9 @@ donttest="test_rsa_bad_keys"
%files %{python_files}
%license LICENSE
%doc README.rst CHANGELOG.rst
%{python_sitelib}/oauthlib
%{python_sitelib}/oauthlib-%{version}.dist-info
%dir %{python_sitelib}/oauthlib
%{python_sitelib}/oauthlib/*
%dir %{python_sitelib}/oauthlib-%{version}-py*.egg-info
%{python_sitelib}/oauthlib-%{version}-py*.egg-info/*
%changelog