{
"password": "**********",
"username": "username"
}
Response:
{
"message": "Password accepted, MFA request sent",
"data": {
"factors": [
{
"id": "a9d156b57eb1f56d6ed13dfXXXXXXXXXXXXXX2402cfa3377663602978",
"type": "sms",
"profile": {
"phoneNumber": "+1 XXX-XXX-9999"
}
}
],
"activeFactor": {
"id": "a9d156b57eb1f56d6XXXXXXXXXXXXXXXXXXXXXXx77663602978",
"type": "sms",
"profile": {
"phoneNumber": "+1 XXX-XXX-9999"
}
}
},
"auth": {
"type": "Bearer-Interim",
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXzZXJJZCI6IjAwdXQ4NnZkMFlWMG1SY2l",
"text": "Bearer-Interim eyJhbGciOiJIUzI1NiIsInR5cCI6IkNnZkMFlWMG1SY2llMjk"
},
"loginStatus": "MFA_CHALLENGE"
}
Step 2: Now after getting the step 1 verified and based on the response values we are sending request to below endpoint:
Accept: application/vnd.qpp.cms.gov.v1+json
Content-Type: application/json
Authorization: Bearer-Interim eyJhbGciOiJIUzI1NiIsInR5cCI6IkNnZkMFlWMG1SY2llMjk
Body:
{
"factorId": "a9d156b57eb1f56d6ed13dfXXXXXXXXXXXXXX2402cfa3377663602978",
"verificationCode": 479696
}
Response from CMS:
{
"error": {
"errorId": "345574b0-ddda-403b-9dd2-a5XXXX5c5b",
"type": "UnknownError",
"code": 400,
"message": "_.get(...).trim is not a function",
"details": {},
"causeMsg": "_.get(...).trim is not a function"
}
}
Now in the step 2 we are getting the above error.
Could any body please let me know what step I am missing in the authentication process.
Thank you,
Mohit