mirror of
https://github.com/zulip/zulip.git
synced 2025-11-14 02:48:00 +00:00
auth: Report to mobile apps the availability of RemoteUserBackend.
This is necessary for mobile apps to do the right thing when only RemoteUserBackend is enabled, namely, directly redirect to the third-party SSO auth site as soon as the user enters the server URL (no need to display a login form, since it'll be useless).
This commit is contained in:
@@ -63,6 +63,9 @@ def google_auth_enabled(realm: Optional[Realm]=None) -> bool:
|
||||
def github_auth_enabled(realm: Optional[Realm]=None) -> bool:
|
||||
return auth_enabled_helper(['GitHub'], realm)
|
||||
|
||||
def remote_auth_enabled(realm: Optional[Realm]=None) -> bool:
|
||||
return auth_enabled_helper(['RemoteUser'], realm)
|
||||
|
||||
def any_oauth_backend_enabled(realm: Optional[Realm]=None) -> bool:
|
||||
"""Used by the login page process to determine whether to show the
|
||||
'OR' for login with Google"""
|
||||
|
||||
Reference in New Issue
Block a user