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 f0fd5d6e68
commit a9c7cb5f39
2 changed files with 16 additions and 3 deletions

View File

@@ -106,7 +106,7 @@ class Settings(BaseSettings):
@property
def idp_audience(self) -> str:
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
@property