summaryrefslogtreecommitdiff
path: root/src/saml2/ident.py
diff options
context:
space:
mode:
authorRoland Hedberg <roland.hedberg@adm.umu.se>2013-01-17 13:22:11 +0100
committerRoland Hedberg <roland.hedberg@adm.umu.se>2013-01-17 13:22:11 +0100
commit3624c769a4ef0e33c10c6881398712411efacb97 (patch)
tree6f6a4f993c551dfc278a6802da5de4dce8c2f179 /src/saml2/ident.py
parentec48bd236966287594e8da41c0604da88aa322e8 (diff)
downloadpysaml2-3624c769a4ef0e33c10c6881398712411efacb97.tar.gz
Fixed present test on ident. Should be rewritten and extended.
Diffstat (limited to 'src/saml2/ident.py')
-rw-r--r--src/saml2/ident.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/saml2/ident.py b/src/saml2/ident.py
index a78048cc..5bd4f11d 100644
--- a/src/saml2/ident.py
+++ b/src/saml2/ident.py
@@ -133,7 +133,7 @@ class IdentDB(object):
else:
sp_name_qualifier = sp_name_qualifier
- if name_id_policy:
+ if name_id_policy and name_id_policy.format:
nameid_format = name_id_policy.format
elif local_policy:
nameid_format = local_policy.get_nameid_format(sp_name_qualifier)