{"action":"closed","issue":{"url":"https://api.github.com/repos/mulesoft/js-client-oauth2/issues/37","repository_url":"https://api.github.com/repos/mulesoft/js-client-oauth2","labels_url":"https://api.github.com/repos/mulesoft/js-client-oauth2/issues/37/labels{/name}","comments_url":"https://api.github.com/repos/mulesoft/js-client-oauth2/issues/37/comments","events_url":"https://api.github.com/repos/mulesoft/js-client-oauth2/issues/37/events","html_url":"https://github.com/mulesoft/js-client-oauth2/issues/37","id":184107733,"number":37,"title":"Add an option to pass additional body params to OwnerFlow.getToken","user":{"login":"kirill-konshin","id":1530410,"avatar_url":"https://avatars.githubusercontent.com/u/1530410?v=3","gravatar_id":"","url":"https://api.github.com/users/kirill-konshin","html_url":"https://github.com/kirill-konshin","followers_url":"https://api.github.com/users/kirill-konshin/followers","following_url":"https://api.github.com/users/kirill-konshin/following{/other_user}","gists_url":"https://api.github.com/users/kirill-konshin/gists{/gist_id}","starred_url":"https://api.github.com/users/kirill-konshin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kirill-konshin/subscriptions","organizations_url":"https://api.github.com/users/kirill-konshin/orgs","repos_url":"https://api.github.com/users/kirill-konshin/repos","events_url":"https://api.github.com/users/kirill-konshin/events{/privacy}","received_events_url":"https://api.github.com/users/kirill-konshin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mulesoft/js-client-oauth2/labels/invalid","name":"invalid","color":"e6e6e6"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-20T00:30:38Z","updated_at":"2016-10-20T01:45:30Z","closed_at":"2016-10-20T01:45:29Z","body":"In RingCentral system we use `username`, `extension` and `password` and currently there is no way to set `extension` in `OwnerFlow.getToken`:\r\n\r\n```js\r\nOwnerFlow.prototype.getToken = function (username, password, options) {\r\n// ...\r\n    body: {\r\n      scope: sanitizeScope(options.scopes),\r\n      username: username,\r\n      password: password,\r\n      grant_type: 'password'\r\n    }\r\n// ...\r\n}\r\n```\r\n\r\nI propose to pass initial body through `options.body`.\r\n\r\nAlso I noticed that there is no way to pass additional headers..."}}
{"actor":{"display_login":"kirill-konshin"}}