@@ -45,6 +45,7 @@ func TestAnnotations(t *testing.T) {
45
45
"a/allowed_domains" : `["a"]` ,
46
46
"a/allowed_idp_claims" : `key: ["val1", "val2"]` ,
47
47
"a/allowed_users" : `["a"]` ,
48
+ "a/bearer_token_format" : `idp_access_token` ,
48
49
"a/cors_allow_preflight" : "true" ,
49
50
"a/description" : "DESCRIPTION" ,
50
51
"a/health_checks" : `[{"timeout": "10s", "interval": "1m", "healthy_threshold": 1, "unhealthy_threshold": 2, "http_health_check": {"path": "/"}}]` ,
@@ -53,6 +54,7 @@ func TestAnnotations(t *testing.T) {
53
54
"a/host_rewrite_header" : "rewrite-header" ,
54
55
"a/host_rewrite" : "rewrite" ,
55
56
"a/idle_timeout" : `60s` ,
57
+ "a/idp_access_token_allowed_audiences" : `["x","y","z"]` ,
56
58
"a/kubernetes_service_account_token_secret" : "k8s_token" ,
57
59
"a/lb_policy" : "LEAST_REQUEST" ,
58
60
"a/logo_url" : "LOGO_URL" ,
@@ -191,12 +193,15 @@ func TestAnnotations(t *testing.T) {
191
193
},
192
194
SourcePpl : proto .String (`{"allow":{"or":[{"domain":{"is":"pomerium.com"}}]}}` ),
193
195
}},
194
- TlsSkipVerify : true ,
195
- TlsServerName : "my.server.name" ,
196
- Description : "DESCRIPTION" ,
197
- LogoUrl : "LOGO_URL" ,
196
+ TlsSkipVerify : true ,
197
+ TlsServerName : "my.server.name" ,
198
+ Description : "DESCRIPTION" ,
199
+ LogoUrl : "LOGO_URL" ,
200
+ BearerTokenFormat : pb .BearerTokenFormat_BEARER_TOKEN_FORMAT_IDP_ACCESS_TOKEN .Enum (),
201
+ IdpAccessTokenAllowedAudiences : & pb.Route_StringList {Values : []string {"x" , "y" , "z" }},
198
202
}, cmpopts .IgnoreUnexported (
199
203
pb.Route {},
204
+ pb.Route_StringList {},
200
205
pb.RouteRewriteHeader {},
201
206
pb.Policy {},
202
207
structpb.ListValue {},
0 commit comments