saml: sort IdPs before logging automatically on first one (#36515)
This commit is contained in:
parent
228457be9d
commit
344498ae4d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue