Skip to content

Commit 3a5847b

Browse files
committed
Set NAMEID_UNSPECIFIED as default NameIDFormat to prevent conflicts with IdPsthat don't support NAMEID_PERSISTENT
1 parent e5fe4a0 commit 3a5847b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/onelogin/saml2/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ def __add_default_values(self):
262262

263263
# Related to nameID
264264
if 'NameIDFormat' not in self.__sp:
265-
self.__sp['NameIDFormat'] = OneLogin_Saml2_Constants.NAMEID_PERSISTENT
265+
self.__sp['NameIDFormat'] = OneLogin_Saml2_Constants.NAMEID_UNSPECIFIED
266266
if 'nameIdEncrypted' not in self.__security:
267267
self.__security['nameIdEncrypted'] = False
268268

0 commit comments

Comments
 (0)