fixup! fixup! fixup! fixup! Implement sso

This commit is contained in:
Erik Vroon
2025-05-23 17:00:10 +02:00
parent 8a7a1a5c8e
commit 144cddd182
3 changed files with 3 additions and 3 deletions

3
.gitignore vendored
View File

@@ -18,3 +18,6 @@ backend/yarn.lock
backend/static
/process-compose.yml
.next
next-env.d.ts

View File

@@ -44,7 +44,6 @@ class Config(BaseSettings):
sso_1_provider: SSOProvider | None = None
sso_1_client_id: str | None = None
sso_1_client_secret: str | None = None
sso_1_allow_insecure_http_sso: bool = False
sso_1_openid_discovery_url: str | None = None
sso_1_openid_scopes: str | None = None

View File

@@ -69,14 +69,12 @@ async def get_sso_providers() -> dict[SSOID, SSOBase]:
if (
config.sso_1_provider is not None
and config.sso_1_client_id is not None
and config.sso_1_client_secret is not None
):
configs.append(
SSOConfig(
id=SSOID(1),
provider=config.sso_1_provider,
client_id=config.sso_1_client_id,
client_secret=config.sso_1_client_secret,
redirect_uri=f"{config.base_url}/sso-callback/1",
allow_insecure_http=config.sso_1_allow_insecure_http_sso,
)