apikey

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2021 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 8 more Imports: 12 Imported by: 2

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
}

Jump to

Keyboard shortcuts

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