mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-02 00:10:45 +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
|
@ -1309,7 +1309,7 @@ func (o *Options) GetAllRouteableHTTPHosts() ([]string, map[string]bool, error)
|
|||
hosts.InsertSlice(domains)
|
||||
|
||||
// Track if the domains are associated with an MCP policy
|
||||
if policy.IsMCP() {
|
||||
if policy.IsMCPServer() {
|
||||
for _, domain := range domains {
|
||||
mcpHosts[domain] = true
|
||||
}
|
||||
|
@ -1321,7 +1321,7 @@ func (o *Options) GetAllRouteableHTTPHosts() ([]string, map[string]bool, error)
|
|||
hosts.InsertSlice(tlsDomains)
|
||||
|
||||
// Track if the TLS domains are associated with an MCP policy
|
||||
if policy.IsMCP() {
|
||||
if policy.IsMCPServer() {
|
||||
for _, domain := range tlsDomains {
|
||||
mcpHosts[domain] = true
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue