GET v{version}/auth/validate
Details
A get request to test if your token is valid.
https://api.procurewizard.com/v1.0/auth/validateRequest
URI Parameters
These are parameters passed as part of the URL in the request.
Name | Description | Type | Additional information |
---|---|---|---|
version |
The API version parameter. The current version is 1.0. |
string |
None |
Response
Response Description
A response object of ValidationResponseName | Description | Type | Additional information |
---|---|---|---|
currentUser |
The authenticated user object. |
User |
None |
isAuthenticated |
Is the current response authenticated? |
boolean |
None |
Response Formats
Example responses of what the data might contain.
{
"isAuthenticated": true,
"currentUser": {
"id": 1,
"username": "Sample string 2",
"purchaserId": 3,
"roles": [
"Sample string 1",
"Sample string 2"
]
}
}
<ValidationResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ProcureWizard.Infrastructure.Api.Authentication">
<CurrentUser>
<Id>1</Id>
<PurchaserId>3</PurchaserId>
<Roles xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:string>Sample string 1</d3p1:string>
<d3p1:string>Sample string 2</d3p1:string>
</Roles>
<Username>Sample string 2</Username>
</CurrentUser>
<IsAuthenticated>true</IsAuthenticated>
</ValidationResponse>