feat(#413): add OIDC provider health check with 30s cache

- isOidcProviderReachable() fetches discovery URL with 2s timeout
- getAuthConfig() omits authentik when provider unreachable
- 30-second cache prevents repeated network calls

Refs #413

Co-Authored-By: Claude Opus 4.6 <[email protected]>
This commit is contained in:
Jason Woltje
2026-02-16 11:20:05 -06:00
co-authored by Claude Opus 4.6
parent d2605196ac
commit 3b2356f5a0
4 changed files with 205 additions and 22 deletions
+1 -1
View File
@@ -97,7 +97,7 @@ export class AuthController {
*/
@Get("config")
@Header("Cache-Control", "public, max-age=300")
getConfig(): AuthConfigResponse {
async getConfig(): Promise<AuthConfigResponse> {
return this.authService.getAuthConfig();
}