auth: Delegate RemoteUser SSO to browser when using the desktop app.

This commit is contained in:
Mateusz Mandera
2020-06-01 14:24:21 +02:00
committed by Tim Abbott
parent c4d0bd6445
commit 3e7fc17788
4 changed files with 28 additions and 2 deletions

View File

@@ -1035,8 +1035,8 @@ class ZulipRemoteUserBackend(RemoteUserBackend, ExternalAuthMethod):
display_name="SSO",
display_icon=cls.display_icon,
# The user goes to the same URL for both login and signup:
login_url=reverse('login-sso'),
signup_url=reverse('login-sso'),
login_url=reverse('start-login-sso'),
signup_url=reverse('start-login-sso'),
)]
def redirect_deactivated_user_to_login() -> HttpResponseRedirect: