Skip to content

Commit

Permalink
Merge pull request #2877 from toni-moreno/fix_oauth_token_renew_with_…
Browse files Browse the repository at this point in the history
…selfsigned_certs

Add http.Client with skipverify option to oauth renew token method. fix #2876
  • Loading branch information
bradrydzewski committed Nov 20, 2019
2 parents d574357 + af34ac8 commit 12ca262
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/drone-server/inject_login.go
Expand Up @@ -163,13 +163,15 @@ func provideRefresher(config config.Config) *oauth2.Refresher {
ClientSecret: config.Bitbucket.ClientSecret,
Endpoint: "https://bitbucket.org/site/oauth2/access_token",
Source: oauth2.ContextTokenSource(),
Client: defaultClient(config.Bitbucket.SkipVerify),
}
case config.Gitea.ClientID != "":
return &oauth2.Refresher{
ClientID: config.Gitea.ClientID,
ClientSecret: config.Gitea.ClientSecret,
Endpoint: config.Gitea.Server + "/login/oauth/access_token",
Source: oauth2.ContextTokenSource(),
Client: defaultClient(config.Gitea.SkipVerify),
}
}
return nil
Expand Down

0 comments on commit 12ca262

Please sign in to comment.