POST api/v1/{appId}/accounts/authentication
HTTP post Авторизация пользователя
URI ïàðàìåòðû
Name | Description | Type | Additional information |
---|---|---|---|
appId | string |
Required |
Body Parameters
LoginModelName | Description | Type | Additional information |
---|---|---|---|
Password | string |
None. |
|
Metadata | Dictionary of string [key] and string [value] |
None. |
|
UserName |
Логин пользователя |
string |
Required |
Ôîðìàòû çàïðîñîâ
application/json, text/json
Ïðèìåð:
{ "Password": "sample string 1", "Metadata": { "sample string 1": "sample string 2", "sample string 3": "sample string 4" }, "UserName": "sample string 2" }
application/xml, text/xml
Ïðèìåð:
<Authentication xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="Pactum"> <UserName>sample string 2</UserName> <Metadata xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:KeyValueOfstringstring> <d2p1:Key>sample string 1</d2p1:Key> <d2p1:Value>sample string 2</d2p1:Value> </d2p1:KeyValueOfstringstring> <d2p1:KeyValueOfstringstring> <d2p1:Key>sample string 3</d2p1:Key> <d2p1:Value>sample string 4</d2p1:Value> </d2p1:KeyValueOfstringstring> </Metadata> <Password>sample string 1</Password> </Authentication>
application/x-www-form-urlencoded
Ïðèìåð:
Sample not available.
Response Information
Resource Description
HTTP post Авторизация пользователя
AuthenticationTokenModelName | Description | Type | Additional information |
---|---|---|---|
token_type |
Тип токена |
string |
None. |
access_token |
Token |
string |
None. |
Response Formats
application/json, text/json
Ïðèìåð:
{ "token_type": "sample string 1", "access_token": "sample string 2" }
application/xml, text/xml
Ïðèìåð:
<AuthenticationToken xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="Pactum"> <AccessToken>sample string 2</AccessToken> <TokenType>sample string 1</TokenType> </AuthenticationToken>