pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/security/py-oauthlib
Module Name: pkgsrc
Committed By: adam
Date: Wed Nov 25 14:00:17 UTC 2026
Modified Files:
pkgsrc/security/py-oauthlib: Makefile distinfo
Log Message:
py-oauthlib: updated to 4.0.1
4.0.1 (2026-11-04):
OAuth2.0 Provider (Security):
* **Security**: CVE-2026-49272 / GHSA-3jp2-3mrg-2vxc: The device code flow
token endpoint did not validate the ``device_code`` parameter. A request
with a known ``client_id`` and a bogus ``device_code`` could obtain a
bearer token. ``DeviceCodeGrant.validate_token_request`` now calls a new
``DeviceCodeGrant.validate_device_code()`` which rejects missing or
unknown device codes (``400 invalid_request`` / ``400 invalid_grant``)
and delegates the code's authorization status to a new required
``RequestValidator.validate_device_code()`` hook, per RFC 8628
Section 3.5.
**Upgrade note for device flow integrators**: custom
``RequestValidator`` implementations using the device flow must now
implement ``validate_device_code(client_id, code, request)``. Return one
of the ``DeviceCodeGrant.DEVICE_CODE_*`` statuses (``AUTHORIZED``,
``PENDING``, ``SLOW_DOWN`` or ``EXPIRED``) for known codes, or ``None``
for an unknown code. When returning ``AUTHORIZED``, the validator must
also populate ``request.user`` and ``request.scopes`` from the stored
authorization.
To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 pkgsrc/security/py-oauthlib/Makefile
cvs rdiff -u -r1.25 -r1.26 pkgsrc/security/py-oauthlib/distinfo
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/security/py-oauthlib/Makefile
diff -u pkgsrc/security/py-oauthlib/Makefile:1.28 pkgsrc/security/py-oauthlib/Makefile:1.29
--- pkgsrc/security/py-oauthlib/Makefile:1.28 Tue Jul 1 20:11:05 2025
+++ pkgsrc/security/py-oauthlib/Makefile Wed Nov 25 14:00:17 2026
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.28 2025/07/01 20:11:05 wiz Exp $
+# $NetBSD: Makefile,v 1.29 2026/11/25 14:00:17 adam Exp $
-DISTNAME= oauthlib-3.3.1
+DISTNAME= oauthlib-4.0.1
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= security python
MASTER_SITES= ${MASTER_SITE_PYPI:=o/oauthlib/}
@@ -11,7 +11,9 @@ COMMENT= Generic implementation of the O
LICENSE= modified-bsd
TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools>=78:../../devel/py-setuptools
+# signedtoken
DEPENDS+= ${PYPKGPREFIX}-JWT>=2.0.0:../../textproc/py-JWT
+# signals
DEPENDS+= ${PYPKGPREFIX}-blinker>=1.4.0:../../devel/py-blinker
USE_LANGUAGES= # none
Index: pkgsrc/security/py-oauthlib/distinfo
diff -u pkgsrc/security/py-oauthlib/distinfo:1.25 pkgsrc/security/py-oauthlib/distinfo:1.26
--- pkgsrc/security/py-oauthlib/distinfo:1.25 Tue Jul 1 20:11:05 2025
+++ pkgsrc/security/py-oauthlib/distinfo Wed Nov 25 14:00:17 2026
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.25 2025/07/01 20:11:05 wiz Exp $
+$NetBSD: distinfo,v 1.26 2026/11/25 14:00:17 adam Exp $
-BLAKE2s (oauthlib-3.3.1.tar.gz) = bcd587c9cd00f1ad8043f17cd2fac82d9fc72d385c4692084a0cee893d7bdc27
-SHA512 (oauthlib-3.3.1.tar.gz) = f9894a2ef2413505a89a86e0f008310a9e38f4c662b1590816e051d563fd283a94dbe8e8dd61d0e9b01143801d7e747ac9a67a704a4267ba21d8c8382b1a2a41
-Size (oauthlib-3.3.1.tar.gz) = 185918 bytes
+BLAKE2s (oauthlib-4.0.1.tar.gz) = 830f31e8cd023300a936826f05831f31273983369bd3e998f7adf953ff69f912
+SHA512 (oauthlib-4.0.1.tar.gz) = 6404b2c08afefabf0cdfc413858d7a1d186c582869d8fab1ac5a9f41bf3dca06d0484d3f8e32353619bb7d8aa26c0415fe8b356089a1482a82040fe1295e51ff
+Size (oauthlib-4.0.1.tar.gz) = 191219 bytes
Home |
Main Index |
Thread Index |
Old Index