mirror of
https://github.com/pomerium/pomerium.git
synced 2025-04-30 10:56:28 +02:00
Force redirect scheme to https (#1075)
This commit is contained in:
parent
2f84dd2aff
commit
8ebf06dd71
1 changed files with 6 additions and 1 deletions
|
@ -132,7 +132,12 @@ func (a *Authorize) redirectResponse(in *envoy_service_auth_v2.CheckRequest) *en
|
|||
|
||||
signinURL := opts.GetAuthenticateURL().ResolveReference(&url.URL{Path: "/.pomerium/sign_in"})
|
||||
q := signinURL.Query()
|
||||
q.Set(urlutil.QueryRedirectURI, getCheckRequestURL(in).String())
|
||||
|
||||
// always assume https scheme
|
||||
url := getCheckRequestURL(in)
|
||||
url.Scheme = "https"
|
||||
|
||||
q.Set(urlutil.QueryRedirectURI, url.String())
|
||||
signinURL.RawQuery = q.Encode()
|
||||
redirectTo := urlutil.NewSignedURL(opts.SharedKey, signinURL).String()
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue