• Resolved ruffy007

    (@ruffy007)


    I am trying to get the posts using the /wp-json/wp/v2/posts endpoint. I am using the JWT Token approach. I have created the Token and it has passed all the checks from the plugins “Check Token” and “Test Configuration”

    However, when I tried using postman, all I get is an Unauthorized error

    {
    “status”: “error”,
    “error”: “UNAUTHORIZED”,
    “error_description”: “Sorry, you are not allowed to access REST API”
    }

    Even if I use the wrong token it still says the same error. So I believe it’s not even going to the token validation phase.

    I’ve also tried

    • Deactivating plugins
    • Deactivating themes

    Nothing seems to change the error

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support abhiladdha07

    (@abhiladdha07)

    Hi @ruffy007,

    Thanks for reaching out.

    It seems you are still in test configuration mode in the JWT Authentication method and have not actually enabled the authentication in our plugin that’s why you are seeing correct responses in the Test Configuration but not when trying actually in Postman.

    To enable the actual authentication, you need to finish the configuraiton. Below is how you can do it very easily –

    On the Test Configuration section of the JWT Authentication, at the top right, you will see a Finish button. So, just click on that which will enable the JWT Authentication actually for your WordPress REST APIs.

    You can refer to this Setup Guide in which at the last point you will see a Finish step.

    Please feel free to ask if you still face any issues. We’d be happy to help.

    Thanks,
    Team miniOrange

    Thread Starter ruffy007

    (@ruffy007)

    Yes, that did the job. Can’t believe I spend so much time trying to fix that. Thank you.

    Plugin Support abhiladdha07

    (@abhiladdha07)

    Hi @ruffy007,

    Thanks for the update and we are glad that things are working fine now ??

    Yes, we can understand your point and many other plugin users might be confused as well for the same reason. So, with the next release we are planning to improvise the usability further to avoid such situations.

    Let us know if you have any other questions. We’d be happy to help.

    Thanks,
    Team miniOrange

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Always getting Unauthorized using JWT Token’ is closed to new replies.