POST Api/StorageCustomer/Login

Authenticates an user and returns a so called auth-token that must be in the request -header of every subsequent call. The name of the value pair sent in each header must be auth_token and the value must be the token returned from this call.

Request Information

URI Parameters

None.

Body Parameters

ServiceLogin
NameDescriptionTypeAdditional information
Username

OPV Storage username.

string

None.

Password

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Username": "sample string 1",
  "Password": "sample string 2"
}

application/xml, text/xml

Sample:
<ServiceLogin xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Storage_Frontend_MVC.Models.CustomerService">
  <Password>sample string 2</Password>
  <Username>sample string 1</Username>
</ServiceLogin>

application/x-www-form-urlencoded

Sample:
UserName=foo&Password=bar

Response Information

Resource Description

200 - OK
400 - Bad request - malformed parameter.
403 - Access was denied. Invalid username or password.
500 - Serverside exception.

JsonResultOfString
NameDescriptionTypeAdditional information
Content

string

None.

SerializerSettings

JsonSerializerSettings

None.

Encoding

Encoding

None.

Request

HttpRequestMessage

None.

Response Formats

application/json, text/json

Sample:

Sample not available.