update per feedback
This commit is contained in:
parent
b7fc433b31
commit
18b0959bbf
1 changed files with 2 additions and 2 deletions
|
@ -172,11 +172,11 @@ func provideRefresher(config config.Config) *oauth2.Refresher {
|
||||||
Endpoint: "https://bitbucket.org/site/oauth2/access_token",
|
Endpoint: "https://bitbucket.org/site/oauth2/access_token",
|
||||||
Source: oauth2.ContextTokenSource(),
|
Source: oauth2.ContextTokenSource(),
|
||||||
}
|
}
|
||||||
case config.Gitea.Server != "":
|
case config.Gitea.ClientID != "":
|
||||||
return &oauth2.Refresher{
|
return &oauth2.Refresher{
|
||||||
ClientID: config.Gitea.ClientID,
|
ClientID: config.Gitea.ClientID,
|
||||||
ClientSecret: config.Gitea.ClientSecret,
|
ClientSecret: config.Gitea.ClientSecret,
|
||||||
Endpoint: config.Server.Addr + "/login/oauth/access_token",
|
Endpoint: config.Gitea.Server + "/login/oauth/access_token",
|
||||||
Source: oauth2.ContextTokenSource(),
|
Source: oauth2.ContextTokenSource(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue