Authentication
All requests require the user authentication token in the request header.
URL : https://{{Host-Name}}/api/TokenAuth/Authenticate
Method : Post
Request Parameters
{
"userNameOrEmailAddress": "string",
"password": "string",
"twoFactorVerificationCode": "string",
"rememberClient": true,
"twoFactorRememberClientToken": "string",
"singleSignIn": true,
"returnUrl": "string",
"captchaResponse": "string"
}
200 : Success
{
"accessToken": "string",
"encryptedAccessToken": "string",
"expireInSeconds": 0,
"shouldResetPassword": true,
"passwordResetCode": "string",
"userId": 0,
"requiresTwoFactorVerification": true,
"twoFactorAuthProviders": [
"string"
],
"twoFactorRememberClientToken": "string",
"returnUrl": "string",
"refreshToken": "string",
"refreshTokenExpireInSeconds": 0,
"c": "string"
}
401 – Unauthorized
{
"result": null,
"targetUrl": null,
"success": false,
"error": {
"code": 0,
"message": "Invalid user name or password",
"details": null,
"validationErrors": null
},
"unAuthorizedRequest": true,
"__abp": true
}