{"action":"created","issue":{"url":"https://api.github.com/repos/opencaching/okapi/issues/512","repository_url":"https://api.github.com/repos/opencaching/okapi","labels_url":"https://api.github.com/repos/opencaching/okapi/issues/512/labels{/name}","comments_url":"https://api.github.com/repos/opencaching/okapi/issues/512/comments","events_url":"https://api.github.com/repos/opencaching/okapi/issues/512/events","html_url":"https://github.com/opencaching/okapi/issues/512","id":258300474,"number":512,"title":"OAuth requestToken service doesn't work with Authorization header","user":{"login":"arcao","id":315097,"avatar_url":"https://avatars3.githubusercontent.com/u/315097?v=4","gravatar_id":"","url":"https://api.github.com/users/arcao","html_url":"https://github.com/arcao","followers_url":"https://api.github.com/users/arcao/followers","following_url":"https://api.github.com/users/arcao/following{/other_user}","gists_url":"https://api.github.com/users/arcao/gists{/gist_id}","starred_url":"https://api.github.com/users/arcao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arcao/subscriptions","organizations_url":"https://api.github.com/users/arcao/orgs","repos_url":"https://api.github.com/users/arcao/repos","events_url":"https://api.github.com/users/arcao/events{/privacy}","received_events_url":"https://api.github.com/users/arcao/received_events","type":"User","site_admin":false},"labels":[{"id":238014615,"url":"https://api.github.com/repos/opencaching/okapi/labels/bug","name":"bug","color":"777777","default":true},{"id":238014645,"url":"https://api.github.com/repos/opencaching/okapi/labels/Priority-High","name":"Priority-High","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":{"login":"wrygiel","id":2168535,"avatar_url":"https://avatars2.githubusercontent.com/u/2168535?v=4","gravatar_id":"","url":"https://api.github.com/users/wrygiel","html_url":"https://github.com/wrygiel","followers_url":"https://api.github.com/users/wrygiel/followers","following_url":"https://api.github.com/users/wrygiel/following{/other_user}","gists_url":"https://api.github.com/users/wrygiel/gists{/gist_id}","starred_url":"https://api.github.com/users/wrygiel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wrygiel/subscriptions","organizations_url":"https://api.github.com/users/wrygiel/orgs","repos_url":"https://api.github.com/users/wrygiel/repos","events_url":"https://api.github.com/users/wrygiel/events{/privacy}","received_events_url":"https://api.github.com/users/wrygiel/received_events","type":"User","site_admin":false},"assignees":[{"login":"wrygiel","id":2168535,"avatar_url":"https://avatars2.githubusercontent.com/u/2168535?v=4","gravatar_id":"","url":"https://api.github.com/users/wrygiel","html_url":"https://github.com/wrygiel","followers_url":"https://api.github.com/users/wrygiel/followers","following_url":"https://api.github.com/users/wrygiel/following{/other_user}","gists_url":"https://api.github.com/users/wrygiel/gists{/gist_id}","starred_url":"https://api.github.com/users/wrygiel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wrygiel/subscriptions","organizations_url":"https://api.github.com/users/wrygiel/orgs","repos_url":"https://api.github.com/users/wrygiel/repos","events_url":"https://api.github.com/users/wrygiel/events{/privacy}","received_events_url":"https://api.github.com/users/wrygiel/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2017-09-17T12:43:40Z","updated_at":"2017-09-20T20:34:45Z","closed_at":null,"author_association":"NONE","body":"Hi Guys,\r\n\r\nI'm trying to sign in via OAuth to Opencaching.pl OKAPI service, but it seems OAuth Authorization header params are not used by some validation check. See my attached log:\r\n\r\n```text\r\n--> POST https://www.opencaching.pl/okapi/services/oauth/request_token\r\nContent-Type: application/x-www-form-urlencoded\r\nContent-Length: 0\r\nAuthorization: OAuth oauth_nonce=\"1480808688\", oauth_signature=\"s3EFZMQnHYGg9JaW15sKfihIUTY%3D\", oauth_callback=\"x-oc4l%3A%2F%2Foauth.callback%2F\", oauth_consumer_key=\"9w4tqST4TUNrGYQKnkgQ\", oauth_timestamp=\"1505651506\", oauth_signature_method=\"HMAC-SHA1\", oauth_version=\"1.0\"\r\n--> END POST (0-byte body)\r\n\r\n<-- 400 Bad Request https://opencaching.pl/okapi/services/oauth/request_token (480ms)\r\nDate: Sun, 17 Sep 2017 12:32:11 GMT\r\nServer: Apache/2.4.20 (Ubuntu)\r\nAccess-Control-Allow-Origin: *\r\nContent-Length: 242\r\nConnection: close\r\nContent-Type: application/json; charset=utf-8\r\n{\"error\":{\"developer_message\":\"This method requires OAuth signature (Level 2 Authentication). You didn't sign your request.\",\"reason_stack\":[\"bad_request\"],\"status\":400,\"more_info\":\"https:\\/\\/opencaching.pl\\/okapi\\/introduction.html#errors\"}}\r\n<-- END HTTP (242-byte body)\r\n```\r\n\r\nI tried to switch to send OAuth params via query string, but this returns me invalid signature error,\r\n maybe bug in ScribeJava library. Anyway I have tested that ScribeJava works OK with Authorization header on another project."},"comment":{"url":"https://api.github.com/repos/opencaching/okapi/issues/comments/330972762","html_url":"https://github.com/opencaching/okapi/issues/512#issuecomment-330972762","issue_url":"https://api.github.com/repos/opencaching/okapi/issues/512","id":330972762,"user":{"login":"arcao","id":315097,"avatar_url":"https://avatars3.githubusercontent.com/u/315097?v=4","gravatar_id":"","url":"https://api.github.com/users/arcao","html_url":"https://github.com/arcao","followers_url":"https://api.github.com/users/arcao/followers","following_url":"https://api.github.com/users/arcao/following{/other_user}","gists_url":"https://api.github.com/users/arcao/gists{/gist_id}","starred_url":"https://api.github.com/users/arcao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arcao/subscriptions","organizations_url":"https://api.github.com/users/arcao/orgs","repos_url":"https://api.github.com/users/arcao/repos","events_url":"https://api.github.com/users/arcao/events{/privacy}","received_events_url":"https://api.github.com/users/arcao/received_events","type":"User","site_admin":false},"created_at":"2017-09-20T20:34:45Z","updated_at":"2017-09-20T20:34:45Z","author_association":"NONE","body":"I tried to test with latest opencaching/opencaching-pl@6b86831da1d7e674d5147c426a3248a72820e866 on VMWare Workstation and it works OK. Is there any difference between this repo and implementation in opencaching-pl?"}}
{"actor":{"display_login":"arcao"}}