Resolve the caller's identity and roles
Return the identity the API resolved for the current request.
The REST counterpart of the MCP whoami tool: send an
Authorization: Bearer <token> or Authorization-PSK: <psk> header
and get back the resolved username, email, roles, and the auth method that
matched. Useful for verifying PSK / Bearer wiring and discovering effective
roles.
Authorizations
The access token received from the authorization server in the OAuth 2.0 flow.
Response
Successful Response
Identity resolved by the API for the current request.
Mirrors the MCP whoami tool: echoes back the caller's identity and
the auth method that matched, so clients can verify their Bearer / PSK
wiring and discover their effective roles.
Keycloak subject identifier of the caller.
Which credential resolved the identity (Bearer, user PSK, general PSK).
keycloak_token, user_psk, general_psk Username for user context. Equals 'psk' for the general PSK.
Caller's email, if known.
Caller's full name, if known.
Realm roles assigned to the caller.
Client roles assigned to the caller.

