Let the SPs view matter.

This commit is contained in:
Roland Hedberg
2012-12-14 13:12:20 +01:00
parent 91903aaa6d
commit 3a98c51566

View File

@@ -189,7 +189,9 @@ class Identifier(object):
except Exception, exc: except Exception, exc:
print >> sys.stderr, "%s:%s" % (exc.__class__.__name__, exc) print >> sys.stderr, "%s:%s" % (exc.__class__.__name__, exc)
if sp_nid: if name_id_policy:
nameid_format = name_id_policy.format
elif sp_nid:
nameid_format = sp_nid[0] nameid_format = sp_nid[0]
else: else:
nameid_format = local_policy.get_nameid_format(sp_entity_id) nameid_format = local_policy.get_nameid_format(sp_entity_id)
@@ -706,9 +708,8 @@ class Server(object):
if destinations: if destinations:
break break
if not destinations: if not destinations:
logger.error("Not way to return a response !!!") logger.error("No way to return a response !!!")
return ("412 Precondition Failed", return ("412 Precondition Failed",
[("Content-type", "text/html")], [("Content-type", "text/html")],
["No return way defined"]) ["No return way defined"])