Authenticated health check for IDP actions
GET /health/auth Select code sample Fetch cURL
Liveness probe Next
Readiness check endpoint
const url = 'https://localhost:8080/health/auth';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}
curl --request GET \ --url https://localhost:8080/health/auth
Health check requiring an API secret that confirms IDP reachability by fetching JWKS, so callers (IDP actions/webhooks) know the upstream provider is responsive before invoking other endpoints
Responses
Section titled “ Responses ”200
Section titled “200 ”Health status with IDP verified
Media type application/json object auth string service string status string timestamp string version stringExample
{ "auth": "verified", "service": "auth-service", "status": "healthy", "version": "1.0.0"}
401
Section titled “401 ”Unauthorized - Invalid API secret
Media type application/json object error string error_description stringExample
{ "error": "Unauthorized", "error_description": "Invalid token"}
503
Section titled “503 ”IDP provider unreachable
Media type application/json object auth string service string status string timestamp string version stringExample
{ "auth": "verified", "service": "auth-service", "status": "healthy", "version": "1.0.0"}
Previous Liveness probe Next
Readiness check endpoint