Authentication
All requests require the user authentication token in the request header.
1. URL: https://{{Host-Name}}/api/TokenAuth/Authenticate
2. Method: Post
{
“userNameOrEmailAddress”: “string”,
“password”: “string”,
“twoFactorVerificationCode”: “string”,
“rememberClient”: true,
“twoFactorRememberClientToken”: “string”,
“singleSignIn”: true,
“returnUrl”: “string”,
“captchaResponse”: “string”
}
{
“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”
}
{
“result”: null,
“targetUrl”: null,
“success”: false,
“error”: {
“code”: 0,
“message”: “Invalid user name or password”,
“details”: null,
“validationErrors”: null
},
“unAuthorizedRequest”: true,
“__abp”: true
}