mirror of
https://github.com/pomerium/pomerium.git
synced 2025-07-30 15:00:51 +02:00
upstream endpoints load balancer weights (#1830)
This commit is contained in:
parent
3567183ce5
commit
67f6030e1e
30 changed files with 1190 additions and 778 deletions
|
@ -134,8 +134,8 @@ func (a *Authorize) getGoogleCloudServerlessAuthenticationHeaders(reply *evaluat
|
|||
|
||||
serviceAccount := a.currentOptions.Load().GoogleCloudServerlessAuthenticationServiceAccount
|
||||
var hostname string
|
||||
if len(reply.MatchingPolicy.Destinations) > 0 {
|
||||
hostname = reply.MatchingPolicy.Destinations[0].Hostname()
|
||||
if len(reply.MatchingPolicy.To) > 0 {
|
||||
hostname = reply.MatchingPolicy.To[0].URL.Hostname()
|
||||
}
|
||||
audience := fmt.Sprintf("https://%s", hostname)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue