mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-09-15 20:57:56 +08:00
* split out config * add tests for base and app config, refactor client config out of app config * refactor default config retrieval * create config test class and helper functions * move default_config into server to fix import issue
28 lines
527 B
Python
28 lines
527 B
Python
from 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)
|