auth
Get Current User Information
Changed onRetrieves information about the currently authenticated user. This endpoint supports optional authentication - returns logged_out status if not authenticated, or user details with roles/scopes if authenticated via any method (session, API token, or OAuth exchange). Includes dashboard object when the user has an active dashboard session.
get/bodhi/v1/user
Request
- Base URL: http://localhost:1135
- URL: http://localhost:1135/bodhi/v1/user
- Auth: one of:
- none
- HTTP bearer
- HTTP bearer
- OAuth 2 (authorization code, authorization URL /bodhi/v1/auth/initiate, token URL /bodhi/v1/auth/callback)
Response
User information (authenticated or not)
Example response
{
"user_id": "550e8400-e29b-41d4-a716-446655440000",
"username": "user@example.com",
"first_name": "John",
"last_name": "Doe"
}Changes
- breaking
removed the required property
/////////from the response with the status - breaking
removed the required property
/////////from the response with the status
- breaking
- info
added the optional property
/to the response with the status
- info