POST login/advAuth
Generate time limited token. Token expiration time is 20seconds
Request Information
Authorization
- Not required
Availability
- Method disabled by configuration
URI Parameters
None.
Body Parameters
LoginAdvAuthReq| Name | Description | Type | Additional information |
|---|---|---|---|
| Result | RequestResult |
None. |
|
| UserLogin |
Registered user loginame. |
string |
Required |
| RndA |
16B length answer in string hexadecimal format |
string |
None. |
| RndB |
16B length answer in string hexadecimal format |
string |
None. |
Request Formats
application/json, text/json
Sample:
{
"Result": {
"Message": "sample string 1",
"Code": 2,
"ModelStateErr": [
"sample string 1",
"sample string 2"
]
},
"UserLogin": "sample string 1",
"RndA": "sample string 2",
"RndB": "sample string 3"
}
application/xml, text/xml
Sample:
<Request xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Result>
<Message>sample string 1</Message>
<Code>2</Code>
<ModelStateErr>
<string>sample string 1</string>
<string>sample string 2</string>
</ModelStateErr>
</Result>
<UserLogin>sample string 1</UserLogin>
<RndA>sample string 2</RndA>
<RndB>sample string 3</RndB>
</Request>
Response Information
Response Codes
| Http Code | Error Number | Description |
|---|---|---|
| 200 request succesfully done | 0 | success |
| 400 bad request | 1002 | Entry parameter missing or parameter bindigs failed |
| 401 unauthorized | 1003 | UserLogin or ApiKey are unknown |
| 401 unauthorized | 1004 | ApiKey is invalid |
| 415 unsupported Media Type | The request entity has a media type which the server or resource does not support. Only application/json and application/xml are supported | |
| 500 internal error | Server exception description |
Resource Description
LoginResp| Name | Description | Type | Additional information |
|---|---|---|---|
| Token |
The unique token can be used to verify batch of requests. The token is valid [ExpireInSec] sec. |
string |
None. |
| ExpireInSec |
The actual token expiration time in sec. |
integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"Token": "sample string 1",
"ExpireInSec": 2
}
application/xml, text/xml
Sample:
<Response xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Token>sample string 1</Token> <ExpireInSec>2</ExpireInSec> </Response>