Buckets:
AnonymousSpottedToad/human_verified_bucket / codebase /python /SINTEF-9012_SINDIT20 /src /sindit /initialize_authentication.py
| from sindit.util.log import logger | |
| from sindit.authentication.authentication_service import AuthService | |
| from sindit.authentication.in_memory import InMemoryAuthService | |
| from sindit.authentication.keycloak import KeycloakAuthService | |
| from sindit.authentication.workspace_service import WorkspaceService | |
| from sindit.util.environment_and_configuration import get_environment_variable_bool | |
| USE_KEYCLOAK = get_environment_variable_bool( | |
| "USE_KEYCLOAK", optional=True, default=False | |
| ) | |
| if USE_KEYCLOAK: | |
| logger.info("Using Keycloak for authentication") | |
| authService: AuthService = KeycloakAuthService() | |
| else: | |
| logger.info("Using in-memory authentication") | |
| authService: AuthService = InMemoryAuthService() | |
| workspaceService: WorkspaceService = WorkspaceService() | |
Xet Storage Details
- Size:
- 772 Bytes
- Xet hash:
- a0a4de76e46e5b963cd60bb7d38893b267a767686e1ad865255659a20f4bebf6
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.