- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for ParseJwksURI (0.17 sec)
-
pkg/config/security/security_test.go
Hostname: "foo.bar.com", Scheme: "https", Port: 1234, UseSSL: true, }, }, } for _, c := range cases { actual, err := security.ParseJwksURI(c.in) if c.expectedError == (err == nil) { t.Fatalf("ParseJwksURI(%s): expected error (%v), got (%v)", c.in, c.expectedError, err) } if !reflect.DeepEqual(c.expected, actual) { t.Fatalf("expected %+v, got %+v", c.expected, actual) } }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sat Apr 20 01:58:53 UTC 2024 - 8.3K bytes - Viewed (0) -
pkg/config/security/security.go
attrExperimental = "experimental.envoy.filters." ) var ( MatchOneTemplate = "{*}" MatchAnyTemplate = "{**}" ) // ParseJwksURI parses the input URI and returns the corresponding hostname, port, and whether SSL is used. // URI must start with "http://" or "https://", which corresponding to "http" or "https" scheme.
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Jun 07 04:43:34 UTC 2024 - 9.4K bytes - Viewed (0) -
pilot/pkg/security/authn/policy_applier.go
// If failed to parse the cluster name, only fallback to let istiod to fetch the jwksUri when // remoteJwksMode is Hybrid. if features.JwksFetchMode != jwt.Istiod && jwtRule.JwksUri != "" { jwksInfo, err := security.ParseJwksURI(jwtRule.JwksUri) if err != nil { authnLog.Errorf("Failed to parse jwt rule jwks uri %v", err) } _, cluster, err := model.LookupCluster(push, jwksInfo.Hostname.String(), jwksInfo.Port)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Feb 23 09:47:21 UTC 2024 - 19.2K bytes - Viewed (0) -
pilot/pkg/model/push_context.go
for _, cfg := range jwtPolicies { rules := cfg.Spec.(*v1beta1.RequestAuthentication).JwtRules for _, r := range rules { if uri := r.GetJwksUri(); len(uri) > 0 { jwksInfo, err := security.ParseJwksURI(uri) if err == nil { hosts.Insert(jwksInfo.Hostname.String()) } } } } } return hosts }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 15 09:02:11 UTC 2024 - 91.8K bytes - Viewed (0) -
pkg/config/validation/validation.go
if len(audience) == 0 { errs = multierror.Append(errs, errors.New("audience must be non-empty string")) } } if len(rule.JwksUri) != 0 { if _, err := security.ParseJwksURI(rule.JwksUri); err != nil { errs = multierror.Append(errs, err) } } if rule.Jwks != "" { _, err := jwk.Parse([]byte(rule.Jwks)) if err != nil {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jun 12 04:03:33 UTC 2024 - 107.2K bytes - Viewed (0)