mirror of
https://github.com/harness/drone.git
synced 2025-05-17 09:30:00 +08:00
rm basic auth option from Gitea
This commit is contained in:
parent
774c37b53e
commit
448f1d54b4
@ -92,7 +92,6 @@ func provideGiteaLogin(config config.Config) login.Middleware {
|
||||
if config.Gitea.Server == "" {
|
||||
return nil
|
||||
}
|
||||
if config.Gitea.ClientID != "" {
|
||||
return &gitea.Config {
|
||||
ClientID: config.Gitea.ClientID,
|
||||
ClientSecret: config.Gitea.ClientSecret,
|
||||
@ -103,13 +102,6 @@ func provideGiteaLogin(config config.Config) login.Middleware {
|
||||
Scope: config.Gitea.Scope,
|
||||
}
|
||||
}
|
||||
return &gogs.Config{
|
||||
Label: "drone",
|
||||
Login: "/login/form",
|
||||
Server: config.Gitea.Server,
|
||||
Client: defaultClient(config.Gitea.SkipVerify),
|
||||
}
|
||||
}
|
||||
|
||||
// provideGitlabLogin is a Wire provider function that returns
|
||||
// a GitLab authenticator based on the environment configuration.
|
||||
|
Loading…
Reference in New Issue
Block a user