fix: bad url

This commit is contained in:
Derrick Hammer 2024-02-11 16:37:13 -05:00
parent 8dd6e83fae
commit 4faa7c9b88
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 2 additions and 2 deletions

View File

@ -43,8 +43,8 @@ func (o Oauth) config() *oauth2.Config {
Scopes: []string{"admin"}, Scopes: []string{"admin"},
RedirectURL: fmt.Sprintf("https://%s/setup/callback", o.cfg.Domain), RedirectURL: fmt.Sprintf("https://%s/setup/callback", o.cfg.Domain),
Endpoint: oauth2.Endpoint{ Endpoint: oauth2.Endpoint{
TokenURL: fmt.Sprintf("%s/login/Oauth/access_token", o.cfg.GiteaUrl), TokenURL: fmt.Sprintf("%s/login/oauth/access_token", o.cfg.GiteaUrl),
AuthURL: fmt.Sprintf("%s/login/Oauth/authorize", o.cfg.GiteaUrl), AuthURL: fmt.Sprintf("%s/login/oauth/authorize", o.cfg.GiteaUrl),
}, },
} }