aboutsummaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorr <r@freesoftwareextremist.com>2019-12-17 20:17:03 +0000
committerr <r@freesoftwareextremist.com>2019-12-17 20:17:03 +0000
commit3b50f40c081c499c2ecb8913b54186c622561d76 (patch)
tree94eaadaffaa054ed934280825248fe4b95bccc14 /service
parent47ce7344082ca60287ef3265a51a031741aa7e59 (diff)
downloadbloat-3b50f40c081c499c2ecb8913b54186c622561d76.tar.gz
bloat-3b50f40c081c499c2ecb8913b54186c622561d76.zip
Fix redirection URL
Diffstat (limited to 'service')
-rw-r--r--service/service.go4
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
}