0

Since I enabled 2FactorAuthentication my admin token API isn't working anymore.

My request is:

POST: {{magento_url}}V1/integration/admin/token

Body:

{
    "username":"{{admin_user}}",
    "password":"{{admin_password}}"   
}

How could I still using the REST API to generate my admin token by using 2FA?

1 Answer 1

0

You need to change your endpoint and body content. Then you will be able to generate it normally.

POST: {{magento_url}}V1/tfa/provider/google/authenticate

Body:

{
    "username":"{{admin_user}}",
    "password":"{{admin_password}}",
    "otp": "443445"
}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.