{"action":"created","issue":{"url":"https://api.github.com/repos/getinsomnia/insomnia/issues/1055","repository_url":"https://api.github.com/repos/getinsomnia/insomnia","labels_url":"https://api.github.com/repos/getinsomnia/insomnia/issues/1055/labels{/name}","comments_url":"https://api.github.com/repos/getinsomnia/insomnia/issues/1055/comments","events_url":"https://api.github.com/repos/getinsomnia/insomnia/issues/1055/events","html_url":"https://github.com/getinsomnia/insomnia/issues/1055","id":343495126,"node_id":"MDU6SXNzdWUzNDM0OTUxMjY=","number":1055,"title":"[Bug] OAuth1 RSA-SHA1 request includes empty oauth_token in authorization","user":{"login":"nathanrobb","id":3893233,"node_id":"MDQ6VXNlcjM4OTMyMzM=","avatar_url":"https://avatars1.githubusercontent.com/u/3893233?v=4","gravatar_id":"","url":"https://api.github.com/users/nathanrobb","html_url":"https://github.com/nathanrobb","followers_url":"https://api.github.com/users/nathanrobb/followers","following_url":"https://api.github.com/users/nathanrobb/following{/other_user}","gists_url":"https://api.github.com/users/nathanrobb/gists{/gist_id}","starred_url":"https://api.github.com/users/nathanrobb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nathanrobb/subscriptions","organizations_url":"https://api.github.com/users/nathanrobb/orgs","repos_url":"https://api.github.com/users/nathanrobb/repos","events_url":"https://api.github.com/users/nathanrobb/events{/privacy}","received_events_url":"https://api.github.com/users/nathanrobb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-23T05:46:00Z","updated_at":"2018-07-23T05:46:03Z","closed_at":null,"author_association":"NONE","body":"- Insomnia Version: 5.16.6\r\n- Operating System: Windows 10\r\n\r\n## Details\r\n\r\nUsing RSA-SHA1 as a signature method with OAuth 1 is causing the token request authorization to include an empty `oauth_token` parameter. The endpoint I'm hitting is returning a `400 Bad Request` because of this.\r\n\r\nThe `TOKEN` and `TOKEN SECRET` fields were left blank.\r\n\r\n### Request timeline\r\n```\r\n* Preparing request to https://api.example.com/oauth/RequestToken\r\n* Using libcurl/7.51.0-DEV OpenSSL/1.0.2j zlib/1.2.8 libssh2/1.6.1_DEV\r\n* Enable automatic URL encoding\r\n* Enable SSL validation\r\n* Enable cookie sending with jar of 0 cookies\r\n* Found bundle for host api.example.com: 0x10da9ad3c80 [can pipeline]\r\n* Re-using existing connection! (#1) with host api.example.com\r\n* Connected to api.example.com (111.222.333.444) port 443 (#1)\r\n> GET /oauth/RequestToken HTTP/1.1\r\n> Host: api.example.com\r\n> User-Agent: insomnia/5.16.6\r\n> Authorization: OAuth \r\n    oauth_consumer_key=\"secret\", \r\n    oauth_nonce=\"Ew8vn6ntRl1cqhbe8Gls4gsr1ritkzM4\", \r\n    oauth_signature=\"secret\", \r\n    oauth_signature_method=\"RSA-SHA1\", \r\n    oauth_timestamp=\"1532323673\", \r\n    oauth_token=\"\", \r\n    oauth_version=\"1.0\"\r\n> Accept: */*\r\n< HTTP/1.1 400 Bad Request\r\n< Content-Type: text/html; charset=utf-8\r\n< Strict-Transport-Security: max-age=31536000\r\n< WWW-Authenticate: OAuth Realm=\"100.200.300.400\"\r\n< Content-Length: 155\r\n< Expires: Mon, 23 Jul 2018 05:27:53 GMT\r\n< Cache-Control: max-age=0, no-cache, no-store\r\n< Pragma: no-cache\r\n< Date: Mon, 23 Jul 2018 05:27:53 GMT\r\n< Connection: keep-alive\r\n< X-Client-TLS-ver: tls1.2\r\n\r\n* Received 155 B chunk\r\n* Curl_http_done: called premature == 0\r\n* Connection #1 to host api.example.com left intact\r\n```\r\n\r\n### Response preview\r\n`oauth_problem=parameter_rejected&oauth_problem_advice=When%20obtaining%20a%20request%20token%2C%20you%20must%20not%20supply%20the%20oauth_token%20parameter`\r\n"},"comment":{"url":"https://api.github.com/repos/getinsomnia/insomnia/issues/comments/406945870","html_url":"https://github.com/getinsomnia/insomnia/issues/1055#issuecomment-406945870","issue_url":"https://api.github.com/repos/getinsomnia/insomnia/issues/1055","id":406945870,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNjk0NTg3MA==","user":{"login":"welcome[bot]","id":30606887,"node_id":"MDM6Qm90MzA2MDY4ODc=","avatar_url":"https://avatars0.githubusercontent.com/in/4141?v=4","gravatar_id":"","url":"https://api.github.com/users/welcome%5Bbot%5D","html_url":"https://github.com/apps/welcome","followers_url":"https://api.github.com/users/welcome%5Bbot%5D/followers","following_url":"https://api.github.com/users/welcome%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/welcome%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/welcome%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/welcome%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/welcome%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/welcome%5Bbot%5D/repos","events_url":"https://api.github.com/users/welcome%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/welcome%5Bbot%5D/received_events","type":"Bot","site_admin":false},"created_at":"2018-07-23T05:46:03Z","updated_at":"2018-07-23T05:46:03Z","author_association":"NONE","body":"👋 Thanks for opening your first issue! If you're reporting a 🐞 bug, please make sure\nyou include steps to reproduce it. If you're requesting a feature 🎁, please provide real\nuse cases that would benefit. 👪\n\nTo help make this a smooth process, please be sure you have first read the\n[contributing guidelines](https://github.com/getinsomnia/insomnia/blob/master/CONTRIBUTING.md).\n"}}
{"actor":{"display_login":"welcome"}}