fix(auth): relax keycloak audience check and auto-redirect logged-in user

This commit is contained in:
Chris
2026-04-01 01:48:06 +08:00
parent d16722ebf8
commit 34fc865b30

View File

@@ -106,7 +106,7 @@ class Settings(BaseSettings):
@property @property
def idp_audience(self) -> str: def idp_audience(self) -> str:
if self.use_keycloak: if self.use_keycloak:
return self.keycloak_audience or self.keycloak_client_id return self.keycloak_audience
return self.authentik_audience or self.authentik_client_id return self.authentik_audience or self.authentik_client_id
@property @property