From 5441cfcec1bfecff09bcc2c4893a503d9f4d769581e71451e9dfb4a0dfd00f4b Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Sat, 3 Jul 2021 16:03:26 +0000 Subject: [PATCH] Accepting request 903776 from home:stroeder:iam - removed obsolete 0001-Always-use-base64.encodebytes-base64.encodestring-ha.patch - Update to 7.0.1: * 7.0.1 (2021-05-20) - Preserve order of response bindings on IdP-initiated logout - Fix use of expected binding on SP logout * 7.0.0 (2021-05-18) - **BREAKING** Replace encryption method rsa-1_5 with rsa-oaep-mgf1p - Add documentation next to the code * 6.5.2 (2021-05-18) - Add shibmd_scopes metadata extractor - Allow the Issuer element on a Response to be missing - Respect the preferred_binding configuration for the single_logout_service - Fix logout signature flags for redirect, post and soap requests - Respect the logout_requests_signed configuration option - Fix crash when applying policy on RequestedAttribute without a friendlyName - Correctly validate IssueInstant - Correctly handle AudienceRestriction elements with no value - Raise InvalidAssertion exception when assertion requirements are not met - Raise SAMLError on failure to parse a metadata file - Raise StatusInvalidAuthnResponseStatement when the AuthnStatement is not valid - Handle all forms of ACS endpoint specifications - tests: Always use base64.encodebytes; base64.encodestring has been dropped - build: Set minimum version needed for xmlschema - docs: Update Travis CI badge from travis-ci.org to travis-ci.com - examples: Fix example code OBS-URL: https://build.opensuse.org/request/show/903776 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pysaml2?expand=0&rev=60 --- ...4.encodebytes-base64.encodestring-ha.patch | 36 ------------------- python-pysaml2.changes | 29 +++++++++++++++ python-pysaml2.spec | 5 +-- v6.5.1.tar.gz | 3 -- v7.0.1.tar.gz | 3 ++ 5 files changed, 33 insertions(+), 43 deletions(-) delete mode 100644 0001-Always-use-base64.encodebytes-base64.encodestring-ha.patch delete mode 100644 v6.5.1.tar.gz create mode 100644 v7.0.1.tar.gz diff --git a/0001-Always-use-base64.encodebytes-base64.encodestring-ha.patch b/0001-Always-use-base64.encodebytes-base64.encodestring-ha.patch deleted file mode 100644 index c4cf3f0..0000000 --- a/0001-Always-use-base64.encodebytes-base64.encodestring-ha.patch +++ /dev/null @@ -1,36 +0,0 @@ -From 3debe07ef5c1571f9cfb85985ab4889ab286c35b Mon Sep 17 00:00:00 2001 -From: Dirk Mueller -Date: Mon, 26 Apr 2021 14:40:50 +0200 -Subject: [PATCH] Always use base64.encodebytes; base64.encodestring has been - dropped - ---- - tests/test_60_sp.py | 5 +++-- - 1 file changed, 3 insertions(+), 2 deletions(-) - -diff --git a/tests/test_60_sp.py b/tests/test_60_sp.py -index 78e88400..b1eaa7c6 100644 ---- a/tests/test_60_sp.py -+++ b/tests/test_60_sp.py -@@ -1,7 +1,8 @@ - #!/usr/bin/env python - # -*- coding: utf-8 -*- - --import base64 -+from base64 import encodebytes as b64encode -+ - import pytest - from saml2.authn_context import INTERNETPROTOCOLPASSWORD - from saml2.saml import NAMEID_FORMAT_TRANSIENT -@@ -73,7 +74,7 @@ class TestSP(): - "urn:mace:example.com:saml:roland:sp", trans_name_policy, - "foba0001@example.com", authn=AUTHN) - -- resp_str = base64.encodestring(resp_str.encode('utf-8')) -+ resp_str = b64encode(resp_str.encode('utf-8')) - self.sp.outstanding_queries = {"id1": "http://www.example.com/service"} - session_info = self.sp._eval_authn_response( - {}, {"SAMLResponse": [resp_str]}) --- -2.31.1 - diff --git a/python-pysaml2.changes b/python-pysaml2.changes index 22f93e6..97da080 100644 --- a/python-pysaml2.changes +++ b/python-pysaml2.changes @@ -1,3 +1,32 @@ +------------------------------------------------------------------- +Fri Jul 2 20:25:49 UTC 2021 - Michael Ströder + +- removed obsolete 0001-Always-use-base64.encodebytes-base64.encodestring-ha.patch +- Update to 7.0.1: + * 7.0.1 (2021-05-20) + - Preserve order of response bindings on IdP-initiated logout + - Fix use of expected binding on SP logout + * 7.0.0 (2021-05-18) + - **BREAKING** Replace encryption method rsa-1_5 with rsa-oaep-mgf1p + - Add documentation next to the code + * 6.5.2 (2021-05-18) + - Add shibmd_scopes metadata extractor + - Allow the Issuer element on a Response to be missing + - Respect the preferred_binding configuration for the single_logout_service + - Fix logout signature flags for redirect, post and soap requests + - Respect the logout_requests_signed configuration option + - Fix crash when applying policy on RequestedAttribute without a friendlyName + - Correctly validate IssueInstant + - Correctly handle AudienceRestriction elements with no value + - Raise InvalidAssertion exception when assertion requirements are not met + - Raise SAMLError on failure to parse a metadata file + - Raise StatusInvalidAuthnResponseStatement when the AuthnStatement is not valid + - Handle all forms of ACS endpoint specifications + - tests: Always use base64.encodebytes; base64.encodestring has been dropped + - build: Set minimum version needed for xmlschema + - docs: Update Travis CI badge from travis-ci.org to travis-ci.com + - examples: Fix example code + ------------------------------------------------------------------- Mon Apr 26 12:55:01 UTC 2021 - Dirk Müller diff --git a/python-pysaml2.spec b/python-pysaml2.spec index 01b5e97..1834732 100644 --- a/python-pysaml2.spec +++ b/python-pysaml2.spec @@ -20,14 +20,12 @@ %global modname pysaml2 %global skip_python2 1 Name: python-pysaml2 -Version: 6.5.1 +Version: 7.0.1 Release: 0 Summary: Python implementation of SAML Version 2 to be used in a WSGI environment License: Apache-2.0 URL: https://github.com/IdentityPython/pysaml2 Source: https://github.com/IdentityPython/pysaml2/archive/v%{version}.tar.gz -# PATCH-FIX-UPSTREAM: https://github.com/IdentityPython/pysaml2/pull/797 -Patch1: 0001-Always-use-base64.encodebytes-base64.encodestring-ha.patch BuildRequires: %{python_module Paste} BuildRequires: %{python_module cryptography >= 1.4} BuildRequires: %{python_module dbm} @@ -78,7 +76,6 @@ SAML2 service provider or an identity provider. %prep %setup -q -n %{modname}-%{version} -%autopatch -p1 # delete shebang of files not in executable path find src/ -name '*.py' -print0 | xargs -0 sed -i '1s/#!.*$//' diff --git a/v6.5.1.tar.gz b/v6.5.1.tar.gz deleted file mode 100644 index b3632f6..0000000 --- a/v6.5.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3940f4b7da41f42d4155a21d50d28145b5bfec4724300553f09e4fe647f76cf9 -size 5991789 diff --git a/v7.0.1.tar.gz b/v7.0.1.tar.gz new file mode 100644 index 0000000..046fcb8 --- /dev/null +++ b/v7.0.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9479337d42a205bdcc512da5b47818fc32dcbebe8c7ef0909090c0703ed5143f +size 5996999