Verify identity of current user and resolve to a principal

GET /v1/security/oidc/whoami

Obtain the principal and details of the JWT passed in the bearer token.

Responses

  • 200 application/json

    Successful response

    Hide response attributes Show response attributes object
    • id string

      Mapped principal for authorization

    • expire integer(int64)

      Unix timestamp of the expiry of the token

  • 401

    Unauthorized

GET /v1/security/oidc/whoami
curl \
 --request GET 'http://localhost:9644/v1/security/oidc/whoami'
Response examples (200)
{
  "id": "string",
  "expire": 42
}