API authentication¶
Bearer API Token¶
Create tokens via UI or:
Plaintext is returned once. Invalid/revoked/expired tokens share the same error path.
Session cookie¶
curl -sS -c cookies.txt -X POST \
-H "Content-Type: application/json" \
-d '{"username":"alice","password":"…"}' \
"$ACUGIS_REPORT_URL/api/v1/auth/login"
curl -sS -b cookies.txt \
"$ACUGIS_REPORT_URL/api/v1/reports"
Swagger Authorize¶
- Open
/swagger - Click Authorize
- Paste a PAT under BearerAuth, or login via
POST /api/v1/auth/loginso SessionCookie is set - Use Try it out
Resolution rules¶
- Bearer present → PAT only (no cookie fallback)
- Else cookie → session
- Else anonymous
See Developer authentication for token lifecycle details. OpenID Connect and SAML create that session cookie in the browser. They are not additional Authorization schemes. See OpenID Connect and SAML.