saml: sort IdPs before logging automatically on first one (#36515)

This commit is contained in:
Frédéric Péters 2019-11-13 12:28:56 +01:00
parent 228457be9d
commit 344498ae4d
1 changed files with 1 additions and 1 deletions

View File

@ -1062,7 +1062,7 @@ class IdPAuthMethod(AuthMethod):
# there is only one visible IdP, perform login automatically on
# this one.
server = misc.get_lasso_server()
for x in server.providerIds:
for x in sorted(server.providerIds):
key_provider_id = misc.get_provider_key(x)
if not idps.get(key_provider_id, {}).get('hide', False):
saml = get_publisher().root_directory_class.saml