mirror of
https://github.com/pomerium/pomerium.git
synced 2025-04-29 18:36:30 +02:00
bug: fix bad callback url for programmatic (#381)
Signed-off-by: Bobby DeSimone <bobbydesimone@gmail.com>
This commit is contained in:
parent
b9ab49c32c
commit
c6ebd838e0
1 changed files with 2 additions and 1 deletions
|
@ -118,7 +118,6 @@ func (a *Authenticate) SignIn(w http.ResponseWriter, r *http.Request) {
|
|||
// create a clone of the redirect URI, unless this is a programmatic request
|
||||
// in which case we will redirect back to proxy's callback endpoint
|
||||
callbackURL, _ := urlutil.DeepCopy(redirectURL)
|
||||
callbackURL.Path = "/.pomerium/callback"
|
||||
|
||||
q := redirectURL.Query()
|
||||
|
||||
|
@ -163,6 +162,8 @@ func (a *Authenticate) SignIn(w http.ResponseWriter, r *http.Request) {
|
|||
|
||||
redirectURL.RawQuery = q.Encode()
|
||||
|
||||
callbackURL.Path = "/.pomerium/callback"
|
||||
|
||||
// build our hmac-d redirect URL with our session, pointing back to the
|
||||
// proxy's callback URL which is responsible for setting our new route-session
|
||||
uri := urlutil.SignedRedirectURL(a.sharedKey, callbackURL, redirectURL)
|
||||
|
|
Loading…
Add table
Reference in a new issue