POST api/account/token
Метод аутентификации пользователя по токену. В случае успешной аутентификации в теле сообщения присылается токен, а также служебная информация о нем. Токен валидент на протяжении 12 часов.
Request Information
URI Parameters
None.
Body Parameters
Входные параметры
LoginUserBindingModelName | Description | Type | Additional information |
---|---|---|---|
Username |
На данный момент именем пользователя является его почтовый адрес |
string |
Required |
Password |
Пароль (plain text) |
string |
Data type: Password |
PasswordHash |
Хеш пароля (plain text) |
string |
Data type: Password |
RememberMe | boolean |
None. |
|
Mobile |
Мобильная аутентификация |
boolean |
None. |
Request Formats
application/json, text/json
Sample:
{ "username": "sample string 1", "password": "sample string 2", "passwordHash": "sample string 3", "rememberMe": true, "mobile": true }
application/xml, text/xml
Sample:
<LoginUserBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RucontAPI.Models.Account"> <Mobile>true</Mobile> <Password>sample string 2</Password> <PasswordHash>sample string 3</PasswordHash> <RememberMe>true</RememberMe> <Username>sample string 1</Username> </LoginUserBindingModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Результат операции
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel
Sample:
Sample not available.