Skip to Content
ReferenceAPI referenceAuth

Get the logged-in user

GET
/api/v1/auth/me

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.

Authorization

sessionCookie
cookiesession<token>

Session cookie authentication.

Response Body

Request fulfilled, document follows

application/json
  1. response

The user of the current browser session.

mode*string
provider*string

How the user logged in, with the admin password or through OIDC single sign-on.

Value in"password""oidc"
username*string
Example Request
curl -X GET 'https://geometrikks.example.com/api/v1/auth/me'
Example Response
{  "mode": "session",  "provider": "password",  "username": "string"}