From 0231d4474c4a0e45b757ea5000120cc08c5c7982 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Sun, 14 Dec 2025 21:42:53 -0600 Subject: [PATCH] clarify auth endpoint return in openapi schema --- docs/static/frigate-api.yaml | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/docs/static/frigate-api.yaml b/docs/static/frigate-api.yaml index 1bd5e95b8..624688965 100644 --- a/docs/static/frigate-api.yaml +++ b/docs/static/frigate-api.yaml @@ -17,20 +17,25 @@ paths: summary: Authenticate request description: |- Authenticates the current request based on proxy headers or JWT token. - Returns user role and permissions for camera access. This endpoint verifies authentication credentials and manages JWT token refresh. + On success, no JSON body is returned; authentication state is communicated via response headers and cookies. operationId: auth_auth_get responses: - "200": - description: Successful Response - content: - application/json: - schema: {} "202": - description: Authentication Accepted - content: - application/json: - schema: {} + description: Authentication Accepted (no response body, different headers depending on auth method) + headers: + remote-user: + description: Authenticated username or "anonymous" in proxy-only mode + schema: + type: string + remote-role: + description: Resolved role (e.g., admin, viewer, or custom) + schema: + type: string + Set-Cookie: + description: May include refreshed JWT cookie ("frigate-token") when applicable + schema: + type: string "401": description: Authentication Failed /profile: