{"action":"created","issue":{"url":"https://api.github.com/repos/georgestephanis/application-passwords/issues/44","repository_url":"https://api.github.com/repos/georgestephanis/application-passwords","labels_url":"https://api.github.com/repos/georgestephanis/application-passwords/issues/44/labels{/name}","comments_url":"https://api.github.com/repos/georgestephanis/application-passwords/issues/44/comments","events_url":"https://api.github.com/repos/georgestephanis/application-passwords/issues/44/events","html_url":"https://github.com/georgestephanis/application-passwords/issues/44","id":152741426,"number":44,"title":"Status 401 / Not allowed to Edit","user":{"login":"Mojo90","id":2122156,"avatar_url":"https://avatars.githubusercontent.com/u/2122156?v=3","gravatar_id":"","url":"https://api.github.com/users/Mojo90","html_url":"https://github.com/Mojo90","followers_url":"https://api.github.com/users/Mojo90/followers","following_url":"https://api.github.com/users/Mojo90/following{/other_user}","gists_url":"https://api.github.com/users/Mojo90/gists{/gist_id}","starred_url":"https://api.github.com/users/Mojo90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mojo90/subscriptions","organizations_url":"https://api.github.com/users/Mojo90/orgs","repos_url":"https://api.github.com/users/Mojo90/repos","events_url":"https://api.github.com/users/Mojo90/events{/privacy}","received_events_url":"https://api.github.com/users/Mojo90/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-03T10:16:48Z","updated_at":"2016-05-13T13:13:20Z","closed_at":"2016-05-13T13:13:20Z","body":"Hi there,\r\nI have always an Authentication Error with my WP-Blog. I thought it could be the same error as Issue #25 but below you can see the Output of my header. So this could not be the problem. (XXX is the base64 encoded username:password).\r\nAny other ideas to try out?\r\n\r\ncurl -v --header \"Authorization: Basic XXX\" -X POST -d \"title=New Title\" http://www.hyphy.de/wp-json-v2/wp/v2/posts/3526\r\n*   Trying 81.169.145.159...\r\n* Connected to www.hyphy.de (81.169.145.159) port 80 (#0)\r\n> POST /wp-json-v2/wp/v2/posts/3526 HTTP/1.1\r\n> Host: www.hyphy.de\r\n> User-Agent: curl/7.43.0\r\n> Accept: */*\r\n> Authorization: Basic XXX\r\n> Content-Length: 15\r\n> Content-Type: application/x-www-form-urlencoded\r\n> \r\n* upload completely sent off: 15 out of 15 bytes\r\n< HTTP/1.1 401 Unauthorized\r\n< Date: Tue, 03 May 2016 10:13:17 GMT\r\n< Server: Apache/2.2.31 (Unix)\r\n< X-Powered-By: PHP/5.5.34\r\n< X-Content-Type-Options: nosniff\r\n< Access-Control-Expose-Headers: X-WP-Total, X-WP-TotalPages\r\n< Access-Control-Allow-Headers: Authorization\r\n< Transfer-Encoding: chunked\r\n< Content-Type: application/json; charset=UTF-8\r\n< \r\n* Connection #0 to host www.hyphy.de left intact\r\n{\"code\":\"rest_cannot_edit\",\"message\":\"Sorry, you are not allowed to update this post.\",\"data\":{\"status\":401}}\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/georgestephanis/application-passwords/issues/comments/219038895","html_url":"https://github.com/georgestephanis/application-passwords/issues/44#issuecomment-219038895","issue_url":"https://api.github.com/repos/georgestephanis/application-passwords/issues/44","id":219038895,"user":{"login":"Mojo90","id":2122156,"avatar_url":"https://avatars.githubusercontent.com/u/2122156?v=3","gravatar_id":"","url":"https://api.github.com/users/Mojo90","html_url":"https://github.com/Mojo90","followers_url":"https://api.github.com/users/Mojo90/followers","following_url":"https://api.github.com/users/Mojo90/following{/other_user}","gists_url":"https://api.github.com/users/Mojo90/gists{/gist_id}","starred_url":"https://api.github.com/users/Mojo90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mojo90/subscriptions","organizations_url":"https://api.github.com/users/Mojo90/orgs","repos_url":"https://api.github.com/users/Mojo90/repos","events_url":"https://api.github.com/users/Mojo90/events{/privacy}","received_events_url":"https://api.github.com/users/Mojo90/received_events","type":"User","site_admin":false},"created_at":"2016-05-13T13:13:20Z","updated_at":"2016-05-13T13:13:20Z","body":"Fixed it by myself thanks to this post:\r\nhttps://github.com/WP-API/Basic-Auth/issues/1\r\n\r\nChanging .htaccess did the Trick for me: \r\n\r\n```\r\n<IfModule mod_rewrite.c>\r\nRewriteEngine On\r\nRewriteBase /\r\nRewriteRule ^index\\.php$ - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]\r\nRewriteCond %{REQUEST_FILENAME} !-f\r\nRewriteCond %{REQUEST_FILENAME} !-d\r\nRewriteRule . /index.php [L]\r\n</IfModule>\r\n```"}}