auth: Remove some now-unused auth_backend_enabled helpers.

These were causing coverage errors, and in any case are now useless.
This commit is contained in:
Tim Abbott
2018-12-18 16:51:57 -08:00
parent af1c7a9573
commit 0510424e1c

View File

@@ -67,12 +67,6 @@ def google_auth_enabled(realm: Optional[Realm]=None) -> bool:
def github_auth_enabled(realm: Optional[Realm]=None) -> bool: def github_auth_enabled(realm: Optional[Realm]=None) -> bool:
return auth_enabled_helper(['GitHub'], realm) return auth_enabled_helper(['GitHub'], realm)
def azuread_auth_enabled(realm: Optional[Realm]=None) -> bool:
return auth_enabled_helper(['AzureAD'], 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: def any_oauth_backend_enabled(realm: Optional[Realm]=None) -> bool:
"""Used by the login page process to determine whether to show the """Used by the login page process to determine whether to show the
'OR' for login with Google""" 'OR' for login with Google"""