Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 107 for Aud (0.02 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/tools/jwt/README.md

    optional arguments:
      -h, --help            show this help message and exit
      -iss ISS, --iss ISS   iss claim. This should be your service account email.
      -aud AUD, --aud AUD   aud claim. This is comma-separated-list of audiences.
      -sub SUB, --sub SUB   sub claim. If not provided, it is set to the same as
                            iss claim.
      -claims CLAIMS, --claims CLAIMS
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Sep 14 20:15:07 UTC 2019
    - 1.9K bytes
    - Viewed (0)
  4. security/tools/jwt/sa-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: Sat Sep 14 20:15:07 UTC 2019
    - 2.6K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top