remove basic auth option for Gitea
This commit is contained in:
parent
f4313534bd
commit
774c37b53e
1 changed files with 0 additions and 10 deletions
|
@ -117,16 +117,6 @@ func provideGiteaClient(config config.Config) *scm.Client {
|
||||||
if config.Gitea.Debug {
|
if config.Gitea.Debug {
|
||||||
client.DumpResponse = httputil.DumpResponse
|
client.DumpResponse = httputil.DumpResponse
|
||||||
}
|
}
|
||||||
if config.Gitea.ClientID == "" {
|
|
||||||
client.Client = &http.Client{
|
|
||||||
Transport: &oauth2.Transport{
|
|
||||||
Scheme: oauth2.SchemeToken,
|
|
||||||
Source: oauth2.ContextTokenSource(),
|
|
||||||
Base: defaultTransport(config.Gitea.SkipVerify),
|
|
||||||
},
|
|
||||||
}
|
|
||||||
return client
|
|
||||||
}
|
|
||||||
client.Client = &http.Client{
|
client.Client = &http.Client{
|
||||||
Transport: &oauth2.Transport{
|
Transport: &oauth2.Transport{
|
||||||
Scheme: oauth2.SchemeBearer,
|
Scheme: oauth2.SchemeBearer,
|
||||||
|
|
Loading…
Reference in a new issue