mirror of
https://git.phreedom.club/localhost_frssoft/bloat.git
synced 2024-11-22 20:11:29 +00:00
Fix redirection URL
This commit is contained in:
parent
47ce734408
commit
3b50f40c08
|
@ -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 {
|
if err != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -119,7 +119,7 @@ func (svc *service) GetAuthUrl(ctx context.Context, instance string) (
|
||||||
q.Set("redirect_uri", svc.clientWebsite+"/oauth_callback")
|
q.Set("redirect_uri", svc.clientWebsite+"/oauth_callback")
|
||||||
u.RawQuery = q.Encode()
|
u.RawQuery = q.Encode()
|
||||||
|
|
||||||
redirectUrl = u.String()
|
redirectUrl = instanceURL + u.String()
|
||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue