• Resolved ruffy007

    (@ruffy007)


    I am using the JWT method to access the REST API of https://askyourpharm.com/wp-json/wp/v2/posts

    During the setup of the Token, it passed all the checks using the plugin’s “Check Token” and “Test Configuration” buttons.

    Then when I tried to use it on Postman, I only ever get this error

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

    I also tried to pass a wrong token just to see if the API would give me a different error, but it still gave me the same error.

    Looking at the documentations, I couldn’t find much detail about this 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 ‘401 UNAUTHORIZED using JWT Token’ is closed to new replies.