authn

package
v0.0.0-...-d0d847d Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthMiddleware

func AuthMiddleware(a authenticator.Request) func(http.Handler) http.Handler

Types

type CancelableAuthRequest

type CancelableAuthRequest interface {
	authenticator.Request
	Cancel() //Cancels (stops) the underlying instance
}

Extends authenticator.Request interface with Cancel() function used to stop underlying authenticator instance once it's not needed anymore

func NewOIDCAuthenticator

func NewOIDCAuthenticator(config *OIDCConfig) (CancelableAuthRequest, error)

NewOIDCAuthenticator returns OIDC authenticator wrapped as a CancelableAuthRequest instance. CancelableAuthRequest alows users to cancel the authenticator once it's not used anymore.

type OIDCConfig

type OIDCConfig struct {
	IssuerURL            string
	ClientID             string
	CAFilePath           string
	UsernameClaim        string
	UsernamePrefix       string
	GroupsClaim          string
	GroupsPrefix         string
	SupportedSigningAlgs []string
}

OIDCConfig represents configuration used for JWT request authentication

Jump to

Keyboard shortcuts

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