WP-API / Basic-Auth

Basic Authentication handler for the JSON API, used for development and debugging purposes
777 stars 287 forks source link

Plugin not working after upgrading to Wordpress 4.9.1 #51

Open jeremys6 opened 6 years ago

jeremys6 commented 6 years ago

It used to work perfectly, It suddenly stoped after upgrading to Wordpress 4.9.1 The error i get is {"code":"rest_cannot_create","message":"Sorry, you are not allowed to create posts as this user.","data":{"status":401}}

terriann commented 6 years ago

I was also able to reproduce this issue - it seems to be caused by characters in the user's password. Didn't get a chance to dig deeper; just noticed inconsistencies between some accounts working and some failing followed by examining and testing the differences between the accounts.

Passwords that did not work:

Passwords that did work:

Work Around: Remove non-alphanumeric characters from password.

hypgfrch commented 5 years ago

Under WordPress 4.9.9 as of today, Installed manually by placing the files at 'plugins' WP folder, successfully activated by pressing "activate", and successfully tested by authenticating through 'curl'.

My password contains non-alphanumerics.