apikey

package
v1.9.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 30, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 8 more Imports: 11 Imported by: 0

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 {
	TokenReviewCAFile string
	TokenReviewURL    string
	AdminUsername     string
	AdminPassword     string
}

Jump to

Keyboard shortcuts

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