Log out and end the browser session
Ends the current session. After an OIDC login with OIDC_LOGOUT_IDP on, redirectTo holds the identity provider's sign-out URL, as long as the provider lists an end_session_endpoint. API keys get a 403 here; use a browser session.
sessionCookiesession<token>Session cookie authentication.
Request fulfilled, document follows
application/json- response
Where the browser goes after logging out.
redirectTo*|The identity provider's sign-out URL. GeoMetrikks sets it when the session came from OIDC, OIDC_LOGOUT_IDP is on and the provider's discovery document lists an end_session_endpoint. Null means the login page.
curl -X POST 'https://geometrikks.example.com/api/v1/auth/logout'{ "redirectTo": "string"}Log in with the admin username and password POST
Checks the admin username and password, starts a browser session and sets its cookie. Wrong credentials get a 401, and so does every attempt while password login is off because only OIDC is set up. A 503 means the database is down and nobody can log in. With APP_AUTH_DISABLED=true it checks nothing and answers with `mode` set to `disabled`.
Get the logged-in user GET
Returns the username and how the user logged in. A request without a session gets a 401. With APP_AUTH_DISABLED=true it answers with `mode` set to `disabled`. API keys get a 403 here; use a browser session.