GET api/Auth/V5
Main antry point for authentication, parses the JWT token from the authorization header.
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
A WebApiTicket when the authentication is done, else a Unauthorized HttpResponseException is thrown.
WebApiTicketName | Description | Type | Additional information |
---|---|---|---|
Ticket | string |
None. |
|
ValidForMin |
returns the duration when the ticket is valid in minutes |
integer |
None. |
Response Formats
application/json, text/json
Sample:
{ "Ticket": "sample string 1", "ValidForMin": 2 }
application/xml, text/xml
Sample:
<WebApiTicket xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RostarCASWebAPI.Models"> <Ticket>sample string 1</Ticket> <ValidForMin>2</ValidForMin> </WebApiTicket>