/** * @module authentication.k8s.io/v1beta1 * @internal */ import { DeleteOptions as _DeleteOptions_2 } from "./../meta/v1"; import { ObjectMeta as _ObjectMeta_1 } from "./../meta/v1"; import { WatchEvent as _WatchEvent_3 } from "./../meta/v1"; /** * TokenReview attempts to authenticate a token to a known user. Note: TokenReview requests may be cached by the webhook token authenticator plugin in the kube-apiserver. */ export declare interface TokenReview { /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources */ apiVersion: "authentication.k8s.io/v1beta1"; /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds */ kind: "TokenReview"; metadata?: _ObjectMeta_1; /** * Spec holds information about the request being evaluated */ spec: TokenReviewSpec; /** * Status is filled in by the server and indicates whether the request can be authenticated. */ status?: TokenReviewStatus; } /** * TokenReviewSpec is a description of the token authentication request. */ export declare interface TokenReviewSpec { /** * Token is the opaque bearer token. */ token?: string; } /** * TokenReviewStatus is the result of the token authentication request. */ export declare interface TokenReviewStatus { /** * Authenticated indicates that the token was associated with a known user. */ authenticated?: boolean; /** * Error indicates that the token couldn't be checked */ error?: string; /** * User is the UserInfo associated with the provided token. */ user?: UserInfo; } /** * UserInfo holds the information about the user needed to implement the user.Info interface. */ export declare interface UserInfo { /** * Any additional information provided by the authenticator. */ extra?: { [key: string]: Iterable; }; /** * The names of groups this user is a part of. */ groups?: Iterable; /** * A unique value that identifies this user across time. If this user is deleted and another user by the same name is added, they will have different UIDs. */ uid?: string; /** * The name that uniquely identifies this user among all active users. */ username?: string; } export declare type DeleteOptions = _DeleteOptions_2; export declare type WatchEvent = _WatchEvent_3;