• Resolved evanmedeiros

    (@evanmedeiros)


    Hello!

    I set up JWT authentication years ago for an external application of mine to update a specific blog post each day with new text content. It’s worked flawlessly all this time (so thank you for that)

    …. until yesterday something broke for the first time in years.

    I’ve inserted debug lines at every stage of the update process in my application:

    1. I send credentials and successfully get a valid jwt_token back
    2. Confirmed token received
    3. Send authentication request and get authorization token response
    4. Something went wrong! 401 – Unauthorized {“code”:”rest_cannot_edit”,”message”:”sorry, you are not allowed to edit this post.”,”data”:{“status:”:401}}

    I’m using the standard: /wp-json/wp/v2/posts/{id} endpoint and the post permissions haven’t changed and the WP user has sufficient persmissions.

    I saw that the plugin released a new version recently so I rolled back all plugins to a few days ago prior to your latest release but I’m still running into the error.

    I’m going to continue to look for any other conflicting plugins or sources but I wanted to drop a line here to see if you have any recommendations or tests that I should run to narrow things down? All of the debugging I’ve done is on my application side parsing responses, are there any other logs on plugin side?

    Thanks!

    Evan

Viewing 3 replies - 1 through 3 (of 3 total)
  • NVM wrong topic

    • This reply was modified 1 month, 1 week ago by Avo.
    Plugin Support yashyadav247

    (@yashyadav247)

    Hi?@evanmedeiros @avo ,

    Thanks for the patience.

    We just rolled out a new version?3.5.3?that consist of the fix for the issue you had. Now you can update the post using the JWT Authentication without any issues.

    Just follow the below simple steps to fix the issue on your WP environment –

    • Go to Protected REST APIs section. 
    • Click on Save Settings and test the API again using the authentication method you have configured.

    Please test and let us know the updates.

    Thanks,
    Team miniOrange

    Thread Starter evanmedeiros

    (@evanmedeiros)

    Great, thanks for the update!

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.