remove basic auth option for Gitea

This commit is contained in:
techknowlogick 2019-06-05 17:34:58 -04:00 committed by GitHub
parent f4313534bd
commit 774c37b53e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,