summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Kanakarakis <ivan.kanak@gmail.com>2020-12-14 22:15:01 +0200
committerIvan Kanakarakis <ivan.kanak@gmail.com>2020-12-14 22:15:04 +0200
commitca0696cec41cdf968f5f9417ba8d6ee5406fa114 (patch)
tree58b230d0e7bd0fee48284a93e73d7ad02bf7dfc8
parentdc7be03999b90e9b9131ae1ffa84a8986c719d6b (diff)
downloadpysaml2-ca0696cec41cdf968f5f9417ba8d6ee5406fa114.tar.gz
Set proper entity category restrictions when release is set to be empty
Signed-off-by: Ivan Kanakarakis <ivan.kanak@gmail.com>
-rw-r--r--src/saml2/assertion.py2
-rw-r--r--src/saml2/entity_category/swamid.py2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/saml2/assertion.py b/src/saml2/assertion.py
index 4a17c098..c9ef1b31 100644
--- a/src/saml2/assertion.py
+++ b/src/saml2/assertion.py
@@ -481,6 +481,8 @@ class Policy(object):
for attr in attrs:
restrictions[attr] = None
+ else:
+ restrictions[''] = None
return restrictions
diff --git a/src/saml2/entity_category/swamid.py b/src/saml2/entity_category/swamid.py
index d1acec74..00066d21 100644
--- a/src/saml2/entity_category/swamid.py
+++ b/src/saml2/entity_category/swamid.py
@@ -70,7 +70,7 @@ NREN = 'http://www.swamid.se/category/nren-service' # Deprecated from 2
HEI = 'http://www.swamid.se/category/hei-service' # Deprecated from 2021-03-31
RELEASE = {
- '': [''],
+ '': [],
SFS_1993_1153: ['norEduPersonNIN', 'eduPersonAssurance'],
(RESEARCH_AND_EDUCATION, EU): NAME + STATIC_ORG_INFO + OTHER,
(RESEARCH_AND_EDUCATION, NREN): NAME + STATIC_ORG_INFO + OTHER,