{"action":"opened","issue":{"url":"https://api.github.com/repos/sahat/satellizer/issues/670","labels_url":"https://api.github.com/repos/sahat/satellizer/issues/670/labels{/name}","comments_url":"https://api.github.com/repos/sahat/satellizer/issues/670/comments","events_url":"https://api.github.com/repos/sahat/satellizer/issues/670/events","html_url":"https://github.com/sahat/satellizer/issues/670","id":121741481,"number":670,"title":"Redirect Uri is always in the url","user":{"login":"viniciusdacal","id":2660570,"avatar_url":"https://avatars.githubusercontent.com/u/2660570?v=3","gravatar_id":"","url":"https://api.github.com/users/viniciusdacal","html_url":"https://github.com/viniciusdacal","followers_url":"https://api.github.com/users/viniciusdacal/followers","following_url":"https://api.github.com/users/viniciusdacal/following{/other_user}","gists_url":"https://api.github.com/users/viniciusdacal/gists{/gist_id}","starred_url":"https://api.github.com/users/viniciusdacal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/viniciusdacal/subscriptions","organizations_url":"https://api.github.com/users/viniciusdacal/orgs","repos_url":"https://api.github.com/users/viniciusdacal/repos","events_url":"https://api.github.com/users/viniciusdacal/events{/privacy}","received_events_url":"https://api.github.com/users/viniciusdacal/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-11T16:23:59Z","updated_at":"2015-12-11T16:23:59Z","closed_at":null,"body":"We could have an option to avoid redirectUri to go in the request. Even passing redirectUri as null, it's still going as a parameter in the url.\r\nI'm having a problem with bitbucket authentication because of this parameter.\r\nIn my case, if I request a code and do not pass a redirect url, my server can use this code to generate a token and a refresh token, but, if the redirect_uri is passed when generating the code, my server will not be able to get a token.\r\n\r\nrequest without redirect_uri\r\n`https://bitbucket.org/site/oauth2/authorize?client_id={client_id}&response_type=code`\r\n\r\nserver using returned code to generate a token and a refresh token\r\n```\r\n$ curl -X POST -u \"client_id:secret\" \\\r\n  https://bitbucket.org/site/oauth2/access_token \\\r\n  -d grant_type=authorization_code -d code={code}\r\n```\r\n\r\n\r\nObs: In this case, I can't use `responseType : \"token\"`, because bitbucket doesn't return the refresh token for client side request, and I need the refresh token for the server.\r\n\r\nA possible and easy solution could be just set a condition to send the redirect_uri, if reredirect_uri is null, just remove this from url"}}