GET api/Auth?username={username}&pwd={pwd}
Login the specified user
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
username |
user login |
string |
Required |
pwd |
user password |
string |
Required |
Body Parameters
None
Response Information
Resource Description
access token
AuthResourceName | Description | Type | Additional information |
---|---|---|---|
UserId |
User ID |
integer |
None |
Token |
User Token |
string |
None |
Response Formats
application/json, text/json
Sample:
{ "UserId": 1, "Token": "sample string 2" }
application/xml, text/xml
Sample:
<AuthResource xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Oryx.Web.Api.Models"> <Token>sample string 2</Token> <UserId>1</UserId> </AuthResource>