apikey

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: May 20, 2020 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 8 more Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAPIKeyAuthenticator

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

NewAPIKeyAuthenticator creates a basic 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) AuthenticatePassword

func (a *Authenticator) AuthenticatePassword(_ context.Context, username, password string) (*authenticator.Response, bool, error)

AuthenticatePassword implements authenticator.Password.

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