mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-09-18 06:17:59 +08:00
This splits the backend into two parts: the local backend for desktop cellxgene and the AWS backend for hosted cellxgene. The local backend is in local_server while the hosted remains in server. The general idea is to copy everything from server to local_server, pull unneeded stuff out of local_server, and keep server as-is for this PR. Not touching server means all the infra and deployment code will continue working just as it did before so we can make those changes incrementally.
28 lines
533 B
Python
28 lines
533 B
Python
from local_server.auth.auth import AuthTypeBase, AuthTypeFactory
|
|
|
|
|
|
class AuthTypeNone(AuthTypeBase):
|
|
def __init__(self, app_config):
|
|
super().__init__()
|
|
|
|
def is_valid_authentication_type(self):
|
|
return False
|
|
|
|
def complete_setup(self, app):
|
|
pass
|
|
|
|
def is_user_authenticated(self):
|
|
return True
|
|
|
|
def get_user_id(self):
|
|
return None
|
|
|
|
def get_user_name(self):
|
|
return None
|
|
|
|
def get_user_email(self):
|
|
return None
|
|
|
|
|
|
AuthTypeFactory.register(None, AuthTypeNone)
|