Documentation ¶
Index ¶
Constants ¶
View Source
const (
KindTokenReview = "TokenReview"
)
Variables ¶
This section is empty.
Functions ¶
func AddToContainer ¶
func AddToContainer(c *restful.Container, im im.IdentityManagementInterface, tokenOperator auth.TokenManagementInterface, passwordAuthenticator auth.PasswordAuthenticator, oauth2Authenticator auth.OAuthAuthenticator, loginRecorder auth.LoginRecorder, options *authoptions.AuthenticationOptions) error
ks-apiserver includes a built-in OAuth server. Users obtain OAuth access tokens to authenticate themselves to the API. The OAuth server supports standard authorization code grant and the implicit grant OAuth authorization flows. All requests for OAuth tokens involve a request to <ks-apiserver>/oauth/authorize. Most authentication integrations place an authenticating proxy in front of this endpoint, or configure ks-apiserver to validate credentials against a backing identity provider. Requests to <ks-apiserver>/oauth/authorize can come from user-agents that cannot display interactive login pages, such as the CLI.
Types ¶
type LoginRequest ¶
type TokenReview ¶
type TokenReview struct { APIVersion string `json:"apiVersion" description:"Kubernetes API version"` Kind string `json:"kind" description:"kind of the API object"` Spec *Spec `json:"spec,omitempty"` Status *Status `json:"status,omitempty" description:"token review status"` }
func (*TokenReview) Validate ¶
func (request *TokenReview) Validate() error
Click to show internal directories.
Click to hide internal directories.