mirror of
https://github.com/pomerium/pomerium.git
synced 2025-07-20 18:18:08 +02:00
new tracing system
This commit is contained in:
parent
b87d940d11
commit
a6f43f3c3c
127 changed files with 7509 additions and 1454 deletions
|
@ -228,16 +228,24 @@ func (a *Authorize) requireLoginResponse(
|
|||
// always assume https scheme
|
||||
checkRequestURL := getCheckRequestURL(in)
|
||||
checkRequestURL.Scheme = "https"
|
||||
var signInURLQuery url.Values
|
||||
|
||||
headers := http.Header{}
|
||||
if id := in.GetAttributes().GetRequest().GetHttp().GetHeaders()["traceparent"]; id != "" {
|
||||
headers["X-Pomerium-Traceparent"] = []string{id}
|
||||
headers["X-Pomerium-Tracestate"] = []string{"pomerium.traceparent=" + id} // TODO: this might not be necessary anymore
|
||||
signInURLQuery = url.Values{}
|
||||
signInURLQuery.Add("pomerium_traceparent", id)
|
||||
signInURLQuery.Add("pomerium_tracestate", "pomerium.traceparent="+id)
|
||||
}
|
||||
redirectTo, err := state.authenticateFlow.AuthenticateSignInURL(
|
||||
ctx, nil, &checkRequestURL, idp.GetId())
|
||||
ctx, signInURLQuery, &checkRequestURL, idp.GetId())
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
headers["Location"] = []string{redirectTo}
|
||||
|
||||
return a.deniedResponse(ctx, in, http.StatusFound, "Login", http.Header{
|
||||
"Location": {redirectTo},
|
||||
})
|
||||
return a.deniedResponse(ctx, in, http.StatusFound, "Login", headers)
|
||||
}
|
||||
|
||||
func (a *Authorize) requireWebAuthnResponse(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue