DesktopUI icon indicating copy to clipboard operation
DesktopUI copied to clipboard

SSO flow issues in desktop UI

Open glimberg opened this issue 3 years ago • 0 comments

This code causes issues in the SSO flow wherein the window is automatically closed mid login flow.

https://github.com/zerotier/DesktopUI/blob/38b327208b6f339ad21216c6c48b4c3c8a8fe7bc/src/main.rs#L1282

Basically, there's no one single known URL the window can be that can determine if the window should be closed. The closet would be the SSO url in zerotier-one at http://localhost:9993/sso, however 9993 is just the default port. It can be changed by the user.

Ideally, the only time the window should auto close would be going from status AUTHENTICATION_REQUIRED -> OK. But there also needs to be a way to restart the process as the Nonce & State in the URL do change periodically.

glimberg avatar Apr 22 '22 18:04 glimberg