mirror of
https://github.com/pomerium/pomerium.git
synced 2025-07-30 23:09:23 +02:00
mcp: pass access token to the upstream (#5593)
This commit is contained in:
parent
b9e3a5d301
commit
5b024a8ada
15 changed files with 774 additions and 719 deletions
|
@ -99,7 +99,7 @@ func (a *Authorize) handleResultDenied(
|
|||
case invalidClientCertReason(reasons):
|
||||
denyStatusCode = httputil.StatusInvalidClientCertificate
|
||||
denyStatusText = httputil.DetailsText(httputil.StatusInvalidClientCertificate)
|
||||
case request.Policy.IsMCP():
|
||||
case request.Policy.IsMCPServer():
|
||||
denyStatusCode = http.StatusUnauthorized
|
||||
denyStatusText = httputil.DetailsText(http.StatusUnauthorized)
|
||||
}
|
||||
|
@ -358,7 +358,7 @@ func (a *Authorize) userInfoEndpointURL(in *envoy_service_auth_v3.CheckRequest)
|
|||
}
|
||||
|
||||
func (a *Authorize) shouldRedirect(in *envoy_service_auth_v3.CheckRequest, request *evaluator.Request) bool {
|
||||
if request.Policy.IsMCP() {
|
||||
if request.Policy.IsMCPServer() {
|
||||
return false
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue