Get the authenticated principal
GET/authn/me
Returns the server-resolved principal name for the current authenticated user. The principal is derived from the JWT token using the configured principalFields and principalMapper, ensuring consistency between server-side identity and UI display.
Responses
- 200
- 401
- 5xx
Returns the authenticated principal information
- application/vnd.gravitino.v1+json
- Schema
- Example (from schema)
- AuthMeResponse
Schema
Possible values: [0]
Status code of the response
The server-resolved principal name of the authenticated user
{
"code": 0,
"principal": "string"
}
{
"code": 0,
"principal": "admin"
}
Unauthorized - Authentication credentials are missing or invalid
- application/vnd.gravitino.v1+json
- Schema
- Example (from schema)
Schema
Possible values: >= 1000 and <= 1100
HTTP response code
Internal type definition of the error
A human-readable message
{
"code": 1002,
"type": "string",
"message": "string",
"stack": [
"string"
]
}
A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes.
- application/vnd.gravitino.v1+json
- Schema
- Example (from schema)
- Example
Schema
Possible values: >= 1000 and <= 1100
HTTP response code
Internal type definition of the error
A human-readable message
{
"code": 1002,
"type": "string",
"message": "string",
"stack": [
"string"
]
}
{
"code": 1002,
"type": "RuntimeException",
"message": "Internal Server Error",
"stack": [
"java.lang.RuntimeException: Internal Server Error"
]
}