forked from pool/python-pysaml2
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
This commit is contained in:
@@ -1,36 +0,0 @@
|
||||
From 3debe07ef5c1571f9cfb85985ab4889ab286c35b Mon Sep 17 00:00:00 2001
|
||||
From: Dirk Mueller <dirk@dmllr.de>
|
||||
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
|
||||
|
@@ -1,3 +1,32 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Jul 2 20:25:49 UTC 2021 - Michael Ströder <michael@stroeder.com>
|
||||
|
||||
- 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 <dmueller@suse.com>
|
||||
|
||||
|
@@ -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/#!.*$//'
|
||||
|
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:3940f4b7da41f42d4155a21d50d28145b5bfec4724300553f09e4fe647f76cf9
|
||||
size 5991789
|
3
v7.0.1.tar.gz
Normal file
3
v7.0.1.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:9479337d42a205bdcc512da5b47818fc32dcbebe8c7ef0909090c0703ed5143f
|
||||
size 5996999
|
Reference in New Issue
Block a user