mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-04 01:09:36 +02:00
API changes for multi-domain login redirects (#5565)
Add a depends_on field to the Route proto and update the to/from conversion methods.
This commit is contained in:
parent
4af9150b39
commit
62addcf2a5
3 changed files with 729 additions and 716 deletions
|
@ -300,6 +300,7 @@ func NewPolicyFromProto(pb *configpb.Route) (*Policy, error) {
|
|||
AllowWebsockets: pb.GetAllowWebsockets(),
|
||||
CORSAllowPreflight: pb.GetCorsAllowPreflight(),
|
||||
Description: pb.GetDescription(),
|
||||
DependsOn: pb.GetDependsOn(),
|
||||
EnableGoogleCloudServerlessAuthentication: pb.GetEnableGoogleCloudServerlessAuthentication(),
|
||||
From: pb.GetFrom(),
|
||||
HostPathRegexRewritePattern: pb.GetHostPathRegexRewritePattern(),
|
||||
|
@ -458,6 +459,7 @@ func (p *Policy) ToProto() (*configpb.Route, error) {
|
|||
AllowWebsockets: p.AllowWebsockets,
|
||||
CorsAllowPreflight: p.CORSAllowPreflight,
|
||||
Description: p.Description,
|
||||
DependsOn: p.DependsOn,
|
||||
EnableGoogleCloudServerlessAuthentication: p.EnableGoogleCloudServerlessAuthentication,
|
||||
EnvoyOpts: p.EnvoyOpts,
|
||||
From: p.From,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue