diff options
author | r <r@freesoftwareextremist.com> | 2019-12-17 20:17:03 +0000 |
---|---|---|
committer | r <r@freesoftwareextremist.com> | 2019-12-17 20:17:03 +0000 |
commit | 3b50f40c081c499c2ecb8913b54186c622561d76 (patch) | |
tree | 94eaadaffaa054ed934280825248fe4b95bccc14 | |
parent | 47ce7344082ca60287ef3265a51a031741aa7e59 (diff) | |
download | bloat-3b50f40c081c499c2ecb8913b54186c622561d76.tar.gz bloat-3b50f40c081c499c2ecb8913b54186c622561d76.zip |
Fix redirection URL
-rw-r--r-- | service/service.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/service/service.go b/service/service.go index 93f22fa..5181475 100644 --- a/service/service.go +++ b/service/service.go @@ -107,7 +107,7 @@ func (svc *service) GetAuthUrl(ctx context.Context, instance string) ( } } - u, err := url.Parse(path.Join(instance, "/oauth/authorize")) + u, err := url.Parse("/oauth/authorize") if err != nil { return } @@ -119,7 +119,7 @@ func (svc *service) GetAuthUrl(ctx context.Context, instance string) ( q.Set("redirect_uri", svc.clientWebsite+"/oauth_callback") u.RawQuery = q.Encode() - redirectUrl = u.String() + redirectUrl = instanceURL + u.String() return } |