mirror of https://github.com/harness/drone.git
commit
6b6ea7395e
|
@ -24,6 +24,7 @@ import (
|
|||
"github.com/drone/go-login/login/gogs"
|
||||
"github.com/drone/go-login/login/stash"
|
||||
"github.com/drone/go-scm/scm/transport/oauth2"
|
||||
"strings"
|
||||
|
||||
"github.com/google/wire"
|
||||
"github.com/sirupsen/logrus"
|
||||
|
@ -169,7 +170,7 @@ func provideRefresher(config config.Config) *oauth2.Refresher {
|
|||
return &oauth2.Refresher{
|
||||
ClientID: config.Gitea.ClientID,
|
||||
ClientSecret: config.Gitea.ClientSecret,
|
||||
Endpoint: config.Gitea.Server + "/login/oauth/access_token",
|
||||
Endpoint: strings.TrimSuffix(config.Gitea.Server, "/") + "/login/oauth/access_token",
|
||||
Source: oauth2.ContextTokenSource(),
|
||||
Client: defaultClient(config.Gitea.SkipVerify),
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue