authnz

package
v0.36.2 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2021 License: Apache-2.0 Imports: 38 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HandlerState

type HandlerState struct {
	// Basic parameters.
	Ctx               context.Context
	Logger            logr.Logger
	Issuer            string
	ClientID          string
	Scopes            []string
	HTTPClient        *http.Client
	State             state.State
	PKCE              pkce.Code
	Nonce             nonce.Nonce
	RequestedAudience string

	OAuth2Config *oauth2.Config
	UseFormPost  bool
	RestConf     *rest.Config
	SessionStore sessions.Store
	// contains filtered or unexported fields
}

func SetRestConfHandlerState

func SetRestConfHandlerState(r *rest.Config) *HandlerState

func (HandlerState) HandleAuthCluster

func (h HandlerState) HandleAuthCluster(w http.ResponseWriter, r *http.Request) error

func (HandlerState) HandleAuthCodeCallback

func (h HandlerState) HandleAuthCodeCallback(w http.ResponseWriter, r *http.Request) error

func (HandlerState) HandleLogin

func (h HandlerState) HandleLogin(w http.ResponseWriter, r *http.Request) error

func (HandlerState) HandleLogout

func (h HandlerState) HandleLogout(w http.ResponseWriter, r *http.Request) error

Jump to

Keyboard shortcuts

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