{"action":"created","issue":{"url":"https://api.github.com/repos/chadicus/slim-oauth2/issues/6","repository_url":"https://api.github.com/repos/chadicus/slim-oauth2","labels_url":"https://api.github.com/repos/chadicus/slim-oauth2/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/chadicus/slim-oauth2/issues/6/comments","events_url":"https://api.github.com/repos/chadicus/slim-oauth2/issues/6/events","html_url":"https://github.com/chadicus/slim-oauth2/issues/6","id":121667533,"number":6,"title":"401 Unauthorized","user":{"login":"abunour22","id":5248013,"avatar_url":"https://avatars.githubusercontent.com/u/5248013?v=3","gravatar_id":"","url":"https://api.github.com/users/abunour22","html_url":"https://github.com/abunour22","followers_url":"https://api.github.com/users/abunour22/followers","following_url":"https://api.github.com/users/abunour22/following{/other_user}","gists_url":"https://api.github.com/users/abunour22/gists{/gist_id}","starred_url":"https://api.github.com/users/abunour22/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abunour22/subscriptions","organizations_url":"https://api.github.com/users/abunour22/orgs","repos_url":"https://api.github.com/users/abunour22/repos","events_url":"https://api.github.com/users/abunour22/events{/privacy}","received_events_url":"https://api.github.com/users/abunour22/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2015-12-11T09:11:15Z","updated_at":"2016-10-14T10:12:30Z","closed_at":null,"body":"When i tried to Curl Authorization\r\n\r\nAS you mentionded in Readme with changing in access code sure\r\n\r\ncurl -H 'Authorization: Bearer c859d2c9eec4800a6277671eba72a5a6f54f8693' http://localhost:8888/books\r\n\r\nit returns , \r\n401 Unauthorized\r\n\r\n![ffff](https://cloud.githubusercontent.com/assets/5248013/11739946/1524ac42-9fe7-11e5-8e8e-997e98986f4b.PNG)\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/chadicus/slim-oauth2/issues/comments/253761557","html_url":"https://github.com/chadicus/slim-oauth2/issues/6#issuecomment-253761557","issue_url":"https://api.github.com/repos/chadicus/slim-oauth2/issues/6","id":253761557,"user":{"login":"hellracer","id":3840828,"avatar_url":"https://avatars.githubusercontent.com/u/3840828?v=3","gravatar_id":"","url":"https://api.github.com/users/hellracer","html_url":"https://github.com/hellracer","followers_url":"https://api.github.com/users/hellracer/followers","following_url":"https://api.github.com/users/hellracer/following{/other_user}","gists_url":"https://api.github.com/users/hellracer/gists{/gist_id}","starred_url":"https://api.github.com/users/hellracer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hellracer/subscriptions","organizations_url":"https://api.github.com/users/hellracer/orgs","repos_url":"https://api.github.com/users/hellracer/repos","events_url":"https://api.github.com/users/hellracer/events{/privacy}","received_events_url":"https://api.github.com/users/hellracer/received_events","type":"User","site_admin":false},"created_at":"2016-10-14T10:12:30Z","updated_at":"2016-10-14T10:12:30Z","body":"Hi chadicus,\r\n\r\nYes i'm pretty sure this was the case, I remove that particular RewriteRule and it didn't work\r\n\r\nplease see command transcript\r\n\r\n\r\n[root@dbmaster api]#  curl -H 'Authorization: Bearer 6d6638f4ffadd348a3a57080b0a1faa88feac72b' http://localhost/transaction/CB-MKT/1000-2323-213/100000/0/0 -X GET -vvv\r\n* About to connect() to localhost port 80 (#0)\r\n*   Trying ::1... connected\r\n* Connected to localhost (::1) port 80 (#0)\r\n> GET /transaction/CB-MKT/1000-2323-213/100000/0/0 HTTP/1.1\r\n> User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.19.1 Basic ECC zlib/1.2.3 libidn/1.18 libssh2/1.4.2\r\n> Host: localhost\r\n> Accept: */*\r\n> Authorization: Bearer 6d6638f4ffadd348a3a57080b0a1faa88feac72b\r\n> \r\n< HTTP/1.1 401 Unauthorized\r\n< Date: Fri, 14 Oct 2016 10:08:51 GMT\r\n< Server: Apache/2.2.15 (CentOS)\r\n< X-Powered-By: PHP/5.6.26\r\n< Set-Cookie: PHPSESSID=vio4er6bq6t68ckcfkmut82314; path=/\r\n< Expires: Thu, 19 Nov 1981 08:52:00 GMT\r\n< Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0\r\n< Pragma: no-cache\r\n< WWW-Authenticate: Bearer realm=\"Service\"\r\n< Content-Length: 0\r\n< Connection: close\r\n< Content-Type: \r\n< \r\n* Closing connection #0\r\n[root@dbmaster api]# vi .htaccess \r\n[root@dbmaster api]#  curl -H 'Authorization: Bearer 6d6638f4ffadd348a3a57080b0a1faa88feac72b' http://localhost/transaction/CB-MKT/1000-2323-213/100000/0/0 -X GET -vvv\r\n* About to connect() to localhost port 80 (#0)\r\n*   Trying ::1... connected\r\n* Connected to localhost (::1) port 80 (#0)\r\n> GET /transaction/CB-MKT/1000-2323-213/100000/0/0 HTTP/1.1\r\n> User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.19.1 Basic ECC zlib/1.2.3 libidn/1.18 libssh2/1.4.2\r\n> Host: localhost\r\n> Accept: */*\r\n> Authorization: Bearer 6d6638f4ffadd348a3a57080b0a1faa88feac72b\r\n> \r\n< HTTP/1.1 200 OK\r\n< Date: Fri, 14 Oct 2016 10:08:59 GMT\r\n< Server: Apache/2.2.15 (CentOS)\r\n< X-Powered-By: PHP/5.6.26\r\n< Set-Cookie: PHPSESSID=esnqrnb8juden17qhe0cs4taf0; path=/\r\n< Expires: Thu, 19 Nov 1981 08:52:00 GMT\r\n< Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0\r\n< Pragma: no-cache\r\n< Content-Length: 173\r\n< Connection: close\r\n< Content-Type: application/json;charset=utf-8\r\n< \r\n* Closing connection #0\r\n{\"status\":200,\"transactionId\":1,\"origin\":\"CB-MKT\",\"destination\":\"BDO-MKT\",\"postedOn\":\"10\\/14\\/2016 06:08:59 PM\",\"accountNo\":\"1000-2323-213\",\"amount\":100000,\"type\":\"Deposit\"}[root@dbmaster api]"}}
{"actor":{"display_login":"hellracer"}}