From 4faa7c9b88c76d07a8247d18107d7583788a87bf Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sun, 11 Feb 2024 16:37:13 -0500 Subject: [PATCH] fix: bad url --- api/oauth.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/oauth.go b/api/oauth.go index 22abd5e..681585f 100644 --- a/api/oauth.go +++ b/api/oauth.go @@ -43,8 +43,8 @@ func (o Oauth) config() *oauth2.Config { Scopes: []string{"admin"}, RedirectURL: fmt.Sprintf("https://%s/setup/callback", o.cfg.Domain), Endpoint: oauth2.Endpoint{ - TokenURL: fmt.Sprintf("%s/login/Oauth/access_token", o.cfg.GiteaUrl), - AuthURL: fmt.Sprintf("%s/login/Oauth/authorize", o.cfg.GiteaUrl), + TokenURL: fmt.Sprintf("%s/login/oauth/access_token", o.cfg.GiteaUrl), + AuthURL: fmt.Sprintf("%s/login/oauth/authorize", o.cfg.GiteaUrl), }, }