From 774c37b53ea802487a301d87d03fd4e7b759f8b1 Mon Sep 17 00:00:00 2001 From: techknowlogick Date: Wed, 5 Jun 2019 17:34:58 -0400 Subject: [PATCH] remove basic auth option for Gitea --- cmd/drone-server/inject_client.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/cmd/drone-server/inject_client.go b/cmd/drone-server/inject_client.go index b3113556..7b0c955e 100644 --- a/cmd/drone-server/inject_client.go +++ b/cmd/drone-server/inject_client.go @@ -117,16 +117,6 @@ func provideGiteaClient(config config.Config) *scm.Client { if config.Gitea.Debug { 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{ Transport: &oauth2.Transport{ Scheme: oauth2.SchemeBearer,