feat(#413): add OIDC provider health check with 30s cache
All checks were successful
ci/woodpecker/push/api Pipeline was successful

- 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 <noreply@anthropic.com>
This commit is contained in:
Jason Woltje
2026-02-16 11:20:05 -06:00
parent d2605196ac
commit 3b2356f5a0
4 changed files with 205 additions and 22 deletions

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();
}