Merge pull request #650 from cli/oauth-localhost-callback
Avoid redirecting to `localhost` during authorization flow
This commit is contained in:
commit
da4bbe398e
1 changed files with 1 additions and 1 deletions
|
|
@ -47,7 +47,7 @@ func (oa *OAuthFlow) ObtainAccessToken() (accessToken string, err error) {
|
|||
|
||||
q := url.Values{}
|
||||
q.Set("client_id", oa.ClientID)
|
||||
q.Set("redirect_uri", fmt.Sprintf("http://localhost:%d/callback", port))
|
||||
q.Set("redirect_uri", fmt.Sprintf("http://127.0.0.1:%d/callback", port))
|
||||
// TODO: make scopes configurable
|
||||
q.Set("scope", "repo")
|
||||
q.Set("state", state)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue