- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for ToRoutingClaim (0.17 sec)
-
pilot/pkg/networking/core/route/route.go
// - `@request.auth.claims[group][id]` matches the nested claims "group" and "id". func translateMetadataMatch(name string, in *networking.StringMatch, useExtendedJwt bool) *matcher.MetadataMatcher { rc := jwt.ToRoutingClaim(name) if !rc.Match { return nil } return authz.MetadataMatcherForJWTClaims(rc.Claims, util.ConvertToEnvoyMatch(in), useExtendedJwt) } // translateHeaderMatch translates to HeaderMatcher
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 14 14:12:39 UTC 2024 - 56.1K bytes - Viewed (0) -
pkg/config/validation/validation.go
func ValidateHTTPHeaderNameOrJwtClaimRoute(name string) error { if name == "" { return fmt.Errorf("header name cannot be empty") } if jwt.ToRoutingClaim(name).Match { // Jwt claim form return nil } // Else ensure its a valid header if !validHeaderRegex.MatchString(name) { return fmt.Errorf("header name %s is not a valid header name", name) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jun 12 04:03:33 UTC 2024 - 107.2K bytes - Viewed (0)