EarthSystemCoG / COG

COG source code
BSD 3-Clause "New" or "Revised" License
8 stars 16 forks source link

Increase the limit of IdPs in the login widget #1362

Open LucaCinquini opened 7 years ago

LucaCinquini commented 7 years ago

Who: Kai

Please first take a look at the attached screenshot. The names of Identity Providers seem to be sorted in ascending order by alphabet. There are 11 Identity Providers in total (including https://) in the file /esg/config/esgf_known_providers.xml, but only the first 10 names of Identity Providers are listed.The Identity Provider NSC-LIU cannot be displayed since it is at last position in the sorted list. If I remove any name of provider before NSC-LIU, then the name of Identity Provider NSC-LIU appears in the drop-down list. It looks there is a limit of 10 items for drop-down list.

Could you please have a look? probably the limit of 10 items can be changed somewhere in configuration files?
LucaCinquini commented 7 years ago

Interim solution: remove this line from login.html:

known_providers['https://'] = 'https://';

soay commented 7 years ago

This is likely due to the Yahoo's AutoComplete function which sets maxResultsDisplayed to 10 by default. Adding "maxResultsDisplayed: 15" to the oConfigs in login.html should do the trick.