From 704452cfa38a1d880fab920dab25f670f4fbc519 Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Mon, 23 Mar 2015 13:57:12 -0400 Subject: Implement urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified Return the name the user authenticated with. https://fedorahosted.org/ipsilon/ticket/27 Signed-off-by: Rob Crittenden Reviewed-by: Simo Sorce --- ipsilon/providers/saml2/provider.py | 2 -- 1 file changed, 2 deletions(-) (limited to 'ipsilon/providers/saml2/provider.py') diff --git a/ipsilon/providers/saml2/provider.py b/ipsilon/providers/saml2/provider.py index c02d6fb..4439a0d 100644 --- a/ipsilon/providers/saml2/provider.py +++ b/ipsilon/providers/saml2/provider.py @@ -116,8 +116,6 @@ class ServiceProvider(Log): self._debug('Requested NameId [%s]' % (nip.format,)) if nip.format is None: return SAML2_NAMEID_MAP[self.default_nameid] - elif nip.format == lasso.SAML2_NAME_IDENTIFIER_FORMAT_UNSPECIFIED: - return SAML2_NAMEID_MAP[self.default_nameid] else: allowed = self.allowed_nameids self._debug('Allowed NameIds %s' % (repr(allowed))) -- cgit