Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 99 for Aud (1.04 sec)

  1. releasenotes/notes/jwt-aud.yaml

    Kuat <******@****.***> 1714759362 -0700
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 03 18:02:42 UTC 2024
    - 159 bytes
    - Viewed (0)
  2. tests/integration/security/testdata/requestauthn/aud.yaml.tmpl

    Akshay J Nambiar <******@****.***> 1683529381 +0530
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 08 07:03:01 UTC 2023
    - 838 bytes
    - Viewed (0)
  3. security/pkg/util/jwtutil.go

    		return listAud, nil
    	}
    
    	return nil, err
    }
    
    type jwtPayload struct {
    	// Aud is JWT token audience - used to identify 3p tokens.
    	// It is empty for the default K8S tokens.
    	Aud []string `json:"aud"`
    }
    
    // ExtractJwtAud extracts the audiences from a JWT token. If aud cannot be parse, the bool will be set
    // to false. This distinguishes aud=[] from not parsed.
    func ExtractJwtAud(jwt string) ([]string, bool) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 16:07:11 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  4. security/tools/jwt/samples/gen-jwt.py

            payload["iss"] = args.iss
        if args.sub:
            payload["sub"] = args.sub
        else:
            payload["sub"] = args.iss
    
        if args.aud:
            if "," in args.aud:
                payload["aud"] = args.aud.split(",")
            else:
                payload["aud"] = args.aud
    
        if args.claims:
            for item in args.claims.split(","):
                k, v = item.split(':')
                payload[k] = v
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 11 16:38:57 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  5. security/pkg/util/jwtutil_test.go

    	testCases := map[string]struct {
    		jwt string
    		aud []string
    	}{
    		"no audience": {
    			jwt: firstPartyJwt,
    		},
    		"one audience string": {
    			jwt: oneAudString,
    			aud: []string{"abc"},
    		},
    		"one audience list": {
    			jwt: thirdPartyJwt,
    			aud: []string{"yonggangl-istio-4.svc.id.goog"},
    		},
    		"two audiences list": {
    			jwt: twoAudList,
    			aud: []string{"abc", "xyz"},
    		},
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 16:07:11 UTC 2024
    - 6K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/plugin/pkg/authenticator/token/oidc/oidc_test.go

    			name:   "string claim",
    			claims: `{"aud":"foo"}`,
    			do: func(c claims) (interface{}, error) {
    				var s string
    				err := c.unmarshalClaim("aud", &s)
    				return s, err
    			},
    			want: "foo",
    		},
    		{
    			name:   "mismatched types",
    			claims: `{"aud":"foo"}`,
    			do: func(c claims) (interface{}, error) {
    				var n int
    				err := c.unmarshalClaim("aud", &n)
    				return n, err
    
    			},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 97.7K bytes
    - Viewed (0)
  7. security/pkg/server/ca/authenticate/oidc.go

    				return true
    			}
    		}
    	}
    	return false
    }
    
    type JwtPayload struct {
    	// Aud is the expected audience, defaults to istio-ca - but is based on istiod.yaml configuration.
    	// If set to a different value - use the value defined by istiod.yaml. Env variable can
    	// still override
    	Aud []string `json:"aud"`
    
    	// Exp is not currently used - we don't use the token for authn, just to determine k8s settings
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  8. pkg/serviceaccount/claims_test.go

    		node      *core.Node
    		exp       int64
    		warnafter int64
    		aud       []string
    		err       string
    		// desired
    		sc *jwt.Claims
    		pc *privateClaims
    
    		featureJTI, featurePodNodeInfo, featureNodeBinding bool
    	}{
    		{
    			// pod and secret
    			sa:  sa,
    			pod: pod,
    			sec: sec,
    			// really fast
    			exp: 0,
    			// nil audience
    			aud: nil,
    			err: "internal error, token can only be bound to one object type",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  9. security/pkg/k8s/tokenreview/k8sauthn.go

    // aud: list of audiences to check. If empty 1st party tokens will be checked.
    func ValidateK8sJwt(kubeClient kubernetes.Interface, targetToken string, aud []string) (security.KubernetesInfo, error) {
    	tokenReview := &k8sauth.TokenReview{
    		Spec: k8sauth.TokenReviewSpec{
    			Token: targetToken,
    		},
    	}
    	if aud != nil {
    		tokenReview.Spec.Audiences = aud
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Feb 13 17:12:41 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  10. security/pkg/credentialfetcher/plugin/gce.go

    	rotateToken = enable
    }
    
    // GCEPlugin is the plugin object.
    type GCEPlugin struct {
    	// aud is the unique URI agreed upon by both the instance and the system verifying the instance's identity.
    	// For more info: https://cloud.google.com/compute/docs/instances/verifying-instance-identity
    	aud string
    
    	// The location to save the identity token
    	jwtPath string
    
    	// identity provider
    	identityProvider string
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 13:56:46 UTC 2024
    - 4.7K bytes
    - Viewed (0)
Back to top