Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 126 for audB (0.04 sec)

  1. pkg/registry/core/serviceaccount/storage/storage.go

    			svcaccts:             store,
    			pods:                 podStorage,
    			secrets:              secretStorage,
    			nodes:                nodeStorage,
    			issuer:               issuer,
    			auds:                 auds,
    			audsSet:              sets.NewString(auds...),
    			maxExpirationSeconds: int64(max.Seconds()),
    			extendExpiration:     extendExpiration,
    		}
    	}
    
    	return &REST{
    		Store: store,
    		Token: trest,
    	}, nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 21:15:10 UTC 2023
    - 3K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. staging/src/k8s.io/apiserver/pkg/authentication/authenticator/audagnostic.go

    	// We can remove this once api audiences is never empty. That will probably
    	// be N releases after TokenRequest is GA.
    	if !ok {
    		return authenticate()
    	}
    	auds := implicitAuds.Intersect(targetAuds)
    	if len(auds) == 0 {
    		return nil, false, nil
    	}
    	resp, ok, err := authenticate()
    	if err != nil || !ok {
    		return nil, false, err
    	}
    	if len(resp.Audiences) > 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 31 22:31:49 UTC 2018
    - 2.8K 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. staging/src/k8s.io/apiserver/pkg/authentication/request/anonymous/anonymous.go

    	return authenticator.RequestFunc(func(req *http.Request) (*authenticator.Response, bool, error) {
    		auds, _ := authenticator.AudiencesFrom(req.Context())
    		return &authenticator.Response{
    			User: &user.DefaultInfo{
    				Name:   anonymousUser,
    				Groups: []string{unauthenticatedGroup},
    			},
    			Audiences: auds,
    		}, true, nil
    	})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 31 21:50:11 UTC 2018
    - 1.2K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top