- Sort Score
- Result 10 results
- Languages All
Results 91 - 100 of 114 for userInfo (0.19 sec)
-
staging/src/k8s.io/apiserver/pkg/endpoints/request/context_test.go
} ctx = NewContext() _, ok = NamespaceFrom(ctx) if ok { t.Fatalf("Should not be ok because there is no namespace on the context") } } // TestUserContext validates that a userinfo can be get/set on a context object func TestUserContext(t *testing.T) { ctx := NewContext() _, ok := UserFrom(ctx) if ok { t.Fatalf("Should not be ok because there is no user.Info on the context") }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jul 26 17:14:05 UTC 2022 - 2.7K bytes - Viewed (0) -
staging/src/k8s.io/api/admission/v1beta1/types_swagger_doc_generated.go
"operation": "Operation is the operation being performed. This may be different than the operation requested. e.g. a patch can result in either a CREATE or UPDATE Operation.", "userInfo": "UserInfo is information about the requesting user", "object": "Object is the object from the incoming request.", "oldObject": "OldObject is the existing object. Only populated for DELETE and UPDATE requests.",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Jan 22 00:51:25 UTC 2023 - 7.5K bytes - Viewed (0) -
pkg/registry/authentication/tokenreview/storage.go
klog.Errorf("error validating audience. want=%q got=%q", auds, resp.Audiences) return nil, badAuthenticatorAuds } if resp != nil && resp.User != nil { tokenReview.Status.User = authentication.UserInfo{ Username: resp.User.GetName(), UID: resp.User.GetUID(), Groups: resp.User.GetGroups(), Extra: map[string]authentication.ExtraValue{}, } for k, v := range resp.User.GetExtra() {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Nov 18 09:21:13 UTC 2022 - 3.7K bytes - Viewed (0) -
src/net/http/clone.go
// See go.dev/issue/67401. // //go:linkname cloneURL func cloneURL(u *url.URL) *url.URL { if u == nil { return nil } u2 := new(url.URL) *u2 = *u if u.User != nil { u2.User = new(url.Userinfo) *u2.User = *u.User } return u2 } // cloneMultipartForm should be an internal detail, // but widely used packages access it using linkname. // Notable members of the hall of shame include:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:17:26 UTC 2024 - 3K bytes - Viewed (0) -
security/pkg/server/ca/authenticate/kubeauth/kube_jwt_test.go
Token: tc.token, }, } tokenReview.Status.Audiences = []string{} if tc.token != invlidToken { tokenReview.Status.Authenticated = true } tokenReview.Status.User = k8sauth.UserInfo{ Username: "system:serviceaccount:default:example-pod-sa", Groups: []string{"system:serviceaccounts"}, } client := fake.NewSimpleClientset() if !tc.remoteCluster {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 23 21:07:03 UTC 2024 - 6.1K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/authentication/cel/compile.go
result := make(map[string]*apiservercel.DeclField, len(fields)) for _, f := range fields { result[f.Name] = f } return result } return apiservercel.NewObjectType("kubernetes.UserInfo", fields( field("username", apiservercel.StringType, false), field("uid", apiservercel.StringType, false), field("groups", apiservercel.NewListType(apiservercel.StringType, -1), false),
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 08 17:59:05 UTC 2024 - 5.3K bytes - Viewed (0) -
internal/config/identity/openid/help.go
Optional: true, Type: "string", }, config.HelpKV{ Key: ClaimUserinfo, Description: `Enable fetching claims from UserInfo Endpoint for authenticated user` + defaultHelpPostfix(ClaimUserinfo), Optional: true, Type: "on|off", }, config.HelpKV{ Key: KeyCloakRealm,
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri Jun 23 14:45:27 UTC 2023 - 4.3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/authentication/cel/interface.go
type UserMapper interface { // EvalUser evaluates the given user expressions and returns a list of EvaluationResult. // This is used for user validation that contains a list of expressions. EvalUser(ctx context.Context, userInfo *unstructured.Unstructured) ([]EvaluationResult, error) } var _ ExpressionAccessor = &ClaimMappingExpression{} // ClaimMappingExpression is a CEL expression that maps a claim. type ClaimMappingExpression struct {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 08 17:59:05 UTC 2024 - 5.2K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/authentication/cel/compile_test.go
} } }) } } func TestBuildUserType(t *testing.T) { userDeclType := buildUserType() userType := reflect.TypeOf(authenticationv1.UserInfo{}) if len(userDeclType.Fields) != userType.NumField() { t.Errorf("expected %d fields, got %d", userType.NumField(), len(userDeclType.Fields)) } for i := 0; i < userType.NumField(); i++ {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 10 22:07:40 UTC 2024 - 7.3K bytes - Viewed (0) -
plugin/pkg/admission/network/defaultingressclass/admission_test.go
ingress.Name, networkingv1.Resource("ingresses").WithVersion("version"), "", // subresource admission.Create, &metav1.CreateOptions{}, false, // dryRun nil, // userInfo ) err := admissiontesting.WithReinvocationTesting(t, ctrl).Admit(context.TODO(), attrs, nil) if !reflect.DeepEqual(err, testCase.expectedError) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jan 04 13:12:32 UTC 2023 - 7.7K bytes - Viewed (0)