apikey

package

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAPIKeyAuthenticator

func NewAPIKeyAuthenticator(opts *Options) (authenticator.Request, error)

NewAPIKeyAuthenticator creates a request auth authenticator and returns it.

Types

type Authenticator

type Authenticator struct {
	// contains filtered or unexported fields
}

Authenticator according to the basic auth header information in the http request, treats the password as the APIKey of the OIDC server, requests the token review of the OIDC server, and returns user authentication information.

func (*Authenticator) AuthenticateRequest added in v1.7.0

func (a *Authenticator) AuthenticateRequest(req *http.Request) (*authenticator.Response, bool, error)

AuthenticateRequest implements authenticator.Request.

type Options

type Options struct {
	OIDCIssuerURL   string
	OIDCCAFile      string
	TokenReviewPath string
	AdminUsername   string
	AdminPassword   string
}

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL