Basic-Auth icon indicating copy to clipboard operation
Basic-Auth copied to clipboard

User not logged in

Open digitxo opened this issue 6 years ago • 3 comments

{ "code": "rest_not_logged_in", "message": "You are not currently logged in.", "data": { "status": 401 } }

I get this error when I try to access https://balancingpawsdogtraining.com/wp-json/wp/v2/users/me using Basic AUth.... help please.

digitxo avatar Dec 20 '19 00:12 digitxo

Did you get anywhere with this issue? I'm having the same problem.

constructivesoftware avatar Apr 17 '20 12:04 constructivesoftware

I guess you use PHP in CGI-mode. Here you need to add a RedirectRule to the top of your Wordpress .htaccess file:

RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

MarcoPNS avatar May 04 '20 10:05 MarcoPNS

https://github.com/WP-API/Basic-Auth/issues/35#issuecomment-244001216

boiss-dev avatar Nov 05 '20 15:11 boiss-dev