nextcloud / user_saml

:lock: App for authenticating Nextcloud users using SAML https://apps.nextcloud.com/apps/user_saml
https://portal.nextcloud.com/article/configuring-single-sign-on-10.html
GNU Affero General Public License v3.0
96 stars 76 forks source link

[feat] multiple idp : add a "remember my choice" option #795

Open CorentinS6 opened 11 months ago

CorentinS6 commented 11 months ago

Hello, In case of multiple idp, nextcloud display the list, and the user has to choose. It would be interesting to add an option to save the choice, and no longer offer the list at the next connection (and redirect the user directly to the memorized idp). Best regards.

blizzz commented 10 months ago

Hi @CorentinS6, thanks for pointing it out. I think it makes a lot of sense to have the last entry pre-selected. I am doubtful about an automatic redirect, as it would be difficult to return to the picker again.

Would you perhaps be up for implementing this? Or would anyone else be up for implementing it? I am happy to review any PR, or help getting unstuck in case of difficulties.

CorentinS6 commented 10 months ago

Hi, I can try to do this. We can first discuss how it might work. My first naive idea : on login success, set a cookie to remeber idp. on next authentification, pre-select the same idp with a (visual) JS timer before the redirect (like grub on system boot). do you have any other ideas? regards