Reputation: 45
I am developing an iPhone application to demonstrate the MFA using sms factor with MFA APIs for POC. I am using the authorisation flow for getting my access token (where I get a authorisation code and redeem it for an access token)earlier to MFA implementation. From the documentation, I found out that I need an MFA_token
to work with MFA APIs. I added few changes with my existing authorisation process.
I am getting an MFA Token by doing the following steps:
“https://<my_domain>/authorize”
)https://<my_domain>/mfa
to the authorisation endpointmfa_token
.mfa_token
) is in jwt format with expire time 600 sec. By using this access token(=mfa_token)https://YOUR_DOMAIN/mfa/challenge
call.{
“error”: “invalid_grant”,
“error_description”: “Malformed mfa_token”
}
Can anyone please say me where I am going wrong?
Is the access token same as the MFA_Token in my case?
Thanks in Advance!
Upvotes: 1
Views: 676
Reputation: 7324
I think the access_token
only serves as mfa_token
during OOB/device registration. Thenafter, the user will get an mfa_token
during auth, which is passed for MFA/OTP challenges
Upvotes: 0