user_saml icon indicating copy to clipboard operation
user_saml copied to clipboard

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

Open CorentinS6 opened this issue 1 year ago • 2 comments
trafficstars

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.

CorentinS6 avatar Dec 08 '23 15:12 CorentinS6

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.

blizzz avatar Jan 16 '24 18:01 blizzz

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

CorentinS6 avatar Jan 18 '24 10:01 CorentinS6