Authorization

Parameter List

Parameters   Type   Required     Description
 UsernameOrEmailAddress string Y Login Name
 Password string Y pwd

Request Parameter Example

{
"UsernameOrEmailAddress":"test",
"Password":"test"
}

Response of succeed Example

{
"result": "token key…",
"targetUrl": null,
"success": true,
"error": null,
"unAuthorizedRequest": false,
"__abp": true
}

Response of failed Example

{
"result": null,
"targetUrl": null,
"success": false,
"error": {
"code": 0,
"message": "Login failed!",
"details": "Invalid user name or password",
"validationErrors": null
},
"unAuthorizedRequest": false,
"__abp": true
}
Share on linkedin