WhoAmI
WhoAmI provides information about the client making an API request. It can be used to help troubleshoot configuration by verifying authentication and the client IP address for audit and network access restrictions. For more information, see Host Attributes.
URI
|
Example with curl
$
|
Curl output:
|
Headers
Field |
Description |
Example |
---|---|---|
Authorization |
Conjur access token |
|
Response
Code |
Description |
---|---|
200 |
The response body is the information about the client making the API request. |
401 |
Invalid token or no token provided. |
Response 200
The endpoint returns the following JSON structure:
Headers
|
Body
|
Field |
Description |
---|---|
client_ip | The request client IP address as determined by Conjur. This same IP address appears in application logs and audit logs |
user_agent | The incoming request HTTP user agent header |
account |
conjur |
username | The username attribute of the provided access token |
token_issued_at | The issued timestamp, that is, when the provided access token was created (iat field in the JWT) |