summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoland Hedberg <roland.hedberg@adm.umu.se>2016-05-16 21:25:51 +0200
committerRoland Hedberg <roland.hedberg@adm.umu.se>2016-05-16 21:25:51 +0200
commit1e2d95c0377c3a5aa251900d596171c8e700790f (patch)
tree3585674803593792efaccb293b5c1bf5db2bd4c5 /src
parenta73e11bfc2b0b994b9f0010e6af386e935a6a939 (diff)
downloadpysaml2-1e2d95c0377c3a5aa251900d596171c8e700790f.tar.gz
Handle empty required list.
Added missing recipient.
Diffstat (limited to 'src')
-rw-r--r--src/saml2/assertion.py2
-rw-r--r--src/saml2/server.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/saml2/assertion.py b/src/saml2/assertion.py
index 1b678b63..4af4d225 100644
--- a/src/saml2/assertion.py
+++ b/src/saml2/assertion.py
@@ -270,7 +270,7 @@ def post_entity_categories(maps, **kwargs):
restrictions = {}
try:
required = [d['friendly_name'].lower() for d in kwargs['required']]
- except KeyError:
+ except (KeyError, TypeError):
required = []
if kwargs["mds"]:
diff --git a/src/saml2/server.py b/src/saml2/server.py
index adfc2c35..3032f337 100644
--- a/src/saml2/server.py
+++ b/src/saml2/server.py
@@ -532,7 +532,7 @@ class Server(Entity):
to_sign = []
if identity:
- farg = self.update_farg(in_response_to, destination, farg=farg)
+ farg = self.update_farg(in_response_to, sp_entity_id, farg=farg)
_issuer = self._issuer(issuer)
ast = Assertion(identity)