Status 401: You are not allowed to edit this post – JWT
-
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:
- I send credentials and successfully get a valid jwt_token back
- Confirmed token received
- Send authentication request and get authorization token response
- 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
- You must be logged in to reply to this topic.