Login MFA
Complete the login using the MFA token.
Prerequisites
- Before calling this API, ensure you have created and activated a Tenant whose
appIdmatches theApp-Idheader of this request. The correctappIdvalue can be retrieved from theTenantResourcereturned by the Dashboard API. - You must also have created and activated a
LOGIN_MFAtype Route whoseappRouteIdmatches theApp-Route-Idheader, and whose HTTPmethodandpathmatch those of this request. The correctappRouteIdvalue can be retrieved from theRouteResourcereturned by the Dashboard API.
Base URL
https://your-gateway-host
Required Headers
App-Id: app-xxxxxxxx
App-Key: key-xxxxxxxx
App-Route-Id: route-xxxxxxxx
Content-Type: application/json
Method and Path
Use the HTTP method and path specified in the activeConfig field of the Route.
Request Body
You must use the
mfaIdandmfaTokenreturned by the Login API.
{
"mfaId" : "mfaId",
"mfaToken" : "123456"
}Response 200 OK
The returned data depends on the Tenant configuration.
TenantConfig.auth.jwt.strategy = ACCESS
{
"accessToken": "accessToken"
}TenantConfig.auth.jwt.strategy = ACCESS_REFRESH
{
"accessToken": "accessToken",
"refreshToken": "refreshToken"
}Request Flow

Updated about 1 month ago
Did this page help you?