I’m using the Rest API in order to support MFA in my organization.
I did the oauth/token request successfully and got a “mfa_token”
Then, I moved to the second phase,
On the following Association request:
curl -X POST
https://XXX.auth0.com/mfa/associate
-H ‘Postman-Token: 2c87fd21-e1e5-48b8-979d-91d9b01307d5’
-H ‘cache-control: no-cache’
-H ‘content-type: application/json’
-d ‘{
“authenticator_types”: [“oob”],
“oob_channel” : “sms”,
“phone_number” : “+972509567058”,
“client_id”: “XXXXXXX”,
“client_secret”: “XXXXXXX”,
“mfa_token” : “Fe26.2**XXXX”
}’
I’m getting the following response:
Multi-factor authentication keeps failing with error:
“{
“error”: “invalid_grant”,
“error_description”: “The mfa_token provided is invalid. Try getting a new token.”
}”
,Even though the token was created successfully.
I’ll add that also the “otp” authenticator_type is not supported as well.
Am I doing anything wrong???
Thanks,
Adi.