mirror of
https://github.com/pomerium/pomerium.git
synced 2025-04-29 18:36:30 +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(),
|
AllowWebsockets: pb.GetAllowWebsockets(),
|
||||||
CORSAllowPreflight: pb.GetCorsAllowPreflight(),
|
CORSAllowPreflight: pb.GetCorsAllowPreflight(),
|
||||||
Description: pb.GetDescription(),
|
Description: pb.GetDescription(),
|
||||||
|
DependsOn: pb.GetDependsOn(),
|
||||||
EnableGoogleCloudServerlessAuthentication: pb.GetEnableGoogleCloudServerlessAuthentication(),
|
EnableGoogleCloudServerlessAuthentication: pb.GetEnableGoogleCloudServerlessAuthentication(),
|
||||||
From: pb.GetFrom(),
|
From: pb.GetFrom(),
|
||||||
HostPathRegexRewritePattern: pb.GetHostPathRegexRewritePattern(),
|
HostPathRegexRewritePattern: pb.GetHostPathRegexRewritePattern(),
|
||||||
|
@ -458,6 +459,7 @@ func (p *Policy) ToProto() (*configpb.Route, error) {
|
||||||
AllowWebsockets: p.AllowWebsockets,
|
AllowWebsockets: p.AllowWebsockets,
|
||||||
CorsAllowPreflight: p.CORSAllowPreflight,
|
CorsAllowPreflight: p.CORSAllowPreflight,
|
||||||
Description: p.Description,
|
Description: p.Description,
|
||||||
|
DependsOn: p.DependsOn,
|
||||||
EnableGoogleCloudServerlessAuthentication: p.EnableGoogleCloudServerlessAuthentication,
|
EnableGoogleCloudServerlessAuthentication: p.EnableGoogleCloudServerlessAuthentication,
|
||||||
EnvoyOpts: p.EnvoyOpts,
|
EnvoyOpts: p.EnvoyOpts,
|
||||||
From: p.From,
|
From: p.From,
|
||||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -52,7 +52,7 @@ enum BearerTokenFormat {
|
||||||
BEARER_TOKEN_FORMAT_IDP_IDENTITY_TOKEN = 3;
|
BEARER_TOKEN_FORMAT_IDP_IDENTITY_TOKEN = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Next ID: 71.
|
// Next ID: 72.
|
||||||
message Route {
|
message Route {
|
||||||
message StringList { repeated string values = 1; }
|
message StringList { repeated string values = 1; }
|
||||||
|
|
||||||
|
@ -126,6 +126,7 @@ message Route {
|
||||||
optional IssuerFormat jwt_issuer_format = 65;
|
optional IssuerFormat jwt_issuer_format = 65;
|
||||||
repeated string jwt_groups_filter = 66;
|
repeated string jwt_groups_filter = 66;
|
||||||
optional BearerTokenFormat bearer_token_format = 70;
|
optional BearerTokenFormat bearer_token_format = 70;
|
||||||
|
repeated string depends_on = 71;
|
||||||
|
|
||||||
envoy.config.cluster.v3.Cluster envoy_opts = 36;
|
envoy.config.cluster.v3.Cluster envoy_opts = 36;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue