- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 89 for tokenreview (0.59 sec)
-
staging/src/k8s.io/apiserver/plugin/pkg/authenticator/token/webhook/webhook.go
} // Create takes the representation of a tokenReview and creates it. Returns the server's representation of the tokenReview, HTTP status code and an error, if there is any. func (c *tokenReviewV1Client) Create(ctx context.Context, tokenReview *authenticationv1.TokenReview, opts metav1.CreateOptions) (result *authenticationv1.TokenReview, statusCode int, err error) { result = &authenticationv1.TokenReview{} restResult := c.client.Post().
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 18 00:47:42 UTC 2022 - 11.5K bytes - Viewed (0) -
security/pkg/k8s/tokenreview/k8sauthn.go
tokenReview := &k8sauth.TokenReview{ Spec: k8sauth.TokenReviewSpec{ Token: targetToken, }, } if aud != nil { tokenReview.Spec.Audiences = aud } reviewRes, err := kubeClient.AuthenticationV1().TokenReviews().Create(context.TODO(), tokenReview, metav1.CreateOptions{}) if err != nil { return security.KubernetesInfo{}, err }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Feb 13 17:12:41 UTC 2023 - 4.3K bytes - Viewed (0) -
security/pkg/server/ca/authenticate/kubeauth/kube_jwt_test.go
} ctx = metadata.NewIncomingContext(ctx, tc.metadata) } tokenReview := &k8sauth.TokenReview{ Spec: k8sauth.TokenReviewSpec{ 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",
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 23 21:07:03 UTC 2024 - 6.1K bytes - Viewed (0) -
security/pkg/k8s/tokenreview/k8sauthn_test.go
func TestGetTokenReviewResult(t *testing.T) { testCases := []struct { name string tokenReview authenticationv1.TokenReview expectedError error expectedResult security.KubernetesInfo }{ { name: "the service account authentication error", tokenReview: authenticationv1.TokenReview{ Status: authenticationv1.TokenReviewStatus{ Error: "authentication error", }, },
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Feb 13 17:12:41 UTC 2023 - 4K bytes - Viewed (0) -
pkg/apis/authentication/v1beta1/zz_generated.conversion.go
if err := s.AddGeneratedConversionFunc((*v1beta1.TokenReview)(nil), (*authentication.TokenReview)(nil), func(a, b interface{}, scope conversion.Scope) error { return Convert_v1beta1_TokenReview_To_authentication_TokenReview(a.(*v1beta1.TokenReview), b.(*authentication.TokenReview), scope) }); err != nil { return err }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 08 23:42:33 UTC 2023 - 14K bytes - Viewed (0) -
pkg/apis/authentication/v1/zz_generated.conversion.go
} if err := s.AddGeneratedConversionFunc((*v1.TokenReview)(nil), (*authentication.TokenReview)(nil), func(a, b interface{}, scope conversion.Scope) error { return Convert_v1_TokenReview_To_authentication_TokenReview(a.(*v1.TokenReview), b.(*authentication.TokenReview), scope) }); err != nil { return err }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 02 12:50:40 UTC 2023 - 21.2K bytes - Viewed (0) -
staging/src/k8s.io/api/authentication/v1beta1/zz_generated.deepcopy.go
func (in *TokenReview) DeepCopyInto(out *TokenReview) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.Spec.DeepCopyInto(&out.Spec) in.Status.DeepCopyInto(&out.Status) return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TokenReview. func (in *TokenReview) DeepCopy() *TokenReview { if in == nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 08 23:42:33 UTC 2023 - 5.4K bytes - Viewed (0) -
api/discovery/apis__authentication.k8s.io__v1.json
"namespaced": false, "singularName": "selfsubjectreview", "verbs": [ "create" ] }, { "kind": "TokenReview", "name": "tokenreviews", "namespaced": false, "singularName": "tokenreview", "verbs": [ "create" ] } ]
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 15 18:18:19 UTC 2023 - 495 bytes - Viewed (0) -
staging/src/k8s.io/api/authentication/v1beta1/types_swagger_doc_generated.go
identifiers chosen by the authenticator that are compatible with both the TokenReview and token. An identifier is any identifier in the intersection of the TokenReviewSpec audiences and the token's audiences. A client of the TokenReview API that sets the spec.audiences field should validate that a compatible audience identifier is returned in the status.audiences field to ensure that the TokenReview server is audience aware. If a TokenReview returns an empty status.audience field where status.authenticated...
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 08 23:42:33 UTC 2023 - 5.1K bytes - Viewed (0) -
staging/src/k8s.io/api/authentication/v1beta1/zz_generated.prerelease-lifecycle.go
func (in *TokenReview) APILifecycleDeprecated() (major, minor int) { return 1, 19 } // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=<group>,<version>,<kind>" tags in types.go. func (in *TokenReview) APILifecycleReplacement() schema.GroupVersionKind {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 08 23:42:33 UTC 2023 - 3.4K bytes - Viewed (0)