mirror of
https://github.com/pomerium/pomerium.git
synced 2025-04-28 18:06:34 +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,
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -52,7 +52,7 @@ enum BearerTokenFormat {
|
|||
BEARER_TOKEN_FORMAT_IDP_IDENTITY_TOKEN = 3;
|
||||
}
|
||||
|
||||
// Next ID: 71.
|
||||
// Next ID: 72.
|
||||
message Route {
|
||||
message StringList { repeated string values = 1; }
|
||||
|
||||
|
@ -126,6 +126,7 @@ message Route {
|
|||
optional IssuerFormat jwt_issuer_format = 65;
|
||||
repeated string jwt_groups_filter = 66;
|
||||
optional BearerTokenFormat bearer_token_format = 70;
|
||||
repeated string depends_on = 71;
|
||||
|
||||
envoy.config.cluster.v3.Cluster envoy_opts = 36;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue