Is it possible to control the order of the authorization provider on the authentication page? Or is it controled by the creation order? The documentation says that the the name of an authorization provider should not be changed after it has been configured, does it mean this information goes into the Indico DB and the insertion order is the display order?
Local auth providers are not sorted, remotes ones are sorted by title (not name).
PS: Only the identity provider name must not be changed (that one is stored when associating identifiers with users). For the auth provider it doesn’t matter.
Is a LDAP-based auth provider a remote provider? In this case, it doesn’t work for me. I have 2 authorization providers: ‘LAL account’ and ‘ZCSNSM account’ (initially named ‘CSNSM account’). ‘ZCSNSM account’ is displayed first… Not sure what I made wrong…
Try replacing the |list with |sort(attribute='title') there, then they should be sorted by title. I’ll check the code tomorrow to see if there’s any reason for it, but if not we could easily add sorting there in the next version…
Thanks, I’ll have a look. In fact, I am not very enthusiastic about sorting on the title as the title is exposed to the user and it’s difficult to modify it to control the order. Sorting on the name would give more freedom as you could just prefix the name by whatever convention you want to control the order…
A side benefit if you decide to use a sort based on name is that it will not change anything on the current ordering if you don’t change your auth provider names, as I guess sorting on dictionary keys (names) is the default…
The only drawback that I can see is that, as you cannot change the name of an identity provider already used by some users, you may have to define explicit auth/identity providers association if you change the name of an existing auth provider to adjust the ordering on the login page.