{"openapi":"3.1.0","info":{"title":"Cerberus Oidc","description":"Cerberus OIDC","version":"0.1.0"},"paths":{"/api/v1/auth/login/{provider}":{"get":{"tags":["API V1","Auth"],"summary":"Login","description":"Redirects the user to the login page for the specified OIDC provider.\n\nArgs:\n    provider (str): Identifier of the provider (e.g., \"auth0\", \"google\").\n    redirect_uri (str, optional): The URI to redirect to after successful\n        login. Defaults to root path (\"/\").\n\nReturns:\n    RedirectResponse: Redirects the user to the provider authorization\n        endpoint.\n    JSONResponse: Returns a JSON error response if the redirect fails.","operationId":"login_api_v1_auth_login__provider__get","parameters":[{"name":"provider","in":"path","required":true,"schema":{"type":"string","title":"Provider"}},{"name":"redirect_uri","in":"query","required":false,"schema":{"type":"string","default":"/","title":"Redirect Uri"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/verify/{provider}":{"get":{"tags":["API V1","Auth"],"summary":"Verify Auth","description":"Verifies an OIDC token for the specified provider.\n\nThis endpoint accepts tokens from:\n    - Authorization header (\"Bearer <token>\")\n    - Query parameter (?token=)\n    - Secure cookie (default: cerberus_oidc)\n\nArgs:\n    provider (str): Identifier of the OIDC provider.\n    request (Request): The incoming FastAPI request.\n\nReturns:\n    JSONResponse: A JSON response containing validation result:\n        {\n            \"valid\": bool,\n            \"claims\": dict (if valid),\n            \"error\": str (if invalid)\n        }","operationId":"verify_auth_api_v1_auth_verify__provider__get","parameters":[{"name":"provider","in":"path","required":true,"schema":{"type":"string","title":"Provider"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/callback/{provider}":{"get":{"tags":["API V1","Auth"],"summary":"Callback","description":"Handles the OIDC callback, exchanges authorization code for tokens,\nand sets a session cookie.\n\nThis endpoint completes the OIDC login flow:\n    - Exchanges authorization code for tokens (id_token or access_token).\n    - Stores token in a secure, HTTP-only cookie.\n    - Redirects the user back to the originally requested URL.\n\nArgs:\n    provider (str): Identifier of the OIDC provider.\n    code (str): Authorization code received from the provider.\n    state (str): Base64-encoded redirect destination.\n    request (Request): Incoming FastAPI request.\n\nReturns:\n    RedirectResponse: Redirects to the original URL with a secure cookie\n        set.\n    JSONResponse: Returns a JSON error response if the callback processing\n        fails.","operationId":"callback_api_v1_auth_callback__provider__get","parameters":[{"name":"provider","in":"path","required":true,"schema":{"type":"string","title":"Provider"}},{"name":"code","in":"query","required":true,"schema":{"type":"string","title":"Code"}},{"name":"state","in":"query","required":true,"schema":{"type":"string","title":"State"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/admin/refresh-zones":{"post":{"tags":["API V1","Auth"],"summary":"Refresh Zones Cache","description":"Manually trigger a refresh of the Cloudflare zones cache.\n\nThis endpoint allows administrators to force a refresh of the cached\nCloudflare zones data without waiting for the scheduled daily refresh.\n\nReturns:\n    JSONResponse: A JSON response indicating the refresh status.","operationId":"refresh_zones_cache_api_v1_auth_admin_refresh_zones_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/auth/admin/refresh-cors":{"post":{"tags":["API V1","Auth"],"summary":"Refresh Cors Cache","description":"Manually trigger a refresh of the dynamic CORS origins cache.\n\nThis endpoint allows administrators to force a refresh of the cached\nCORS origins without waiting for the scheduled daily refresh.\n\nReturns:\n    JSONResponse: A JSON response indicating the refresh status.","operationId":"refresh_cors_cache_api_v1_auth_admin_refresh_cors_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/":{"get":{"tags":["Info"],"summary":"Root","operationId":"root__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/health":{"get":{"tags":["Health Check"],"summary":"Health","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/ping":{"get":{"tags":["Test"],"summary":"Ping","operationId":"ping_ping_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/livez":{"get":{"tags":["Probes"],"summary":"Livez","operationId":"livez_livez_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/readyz":{"get":{"tags":["Probes"],"summary":"Readyz","operationId":"readyz_readyz_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}}}