webstrategy

package
v0.0.0-...-200b26a Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2021 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(ctx *config.Config, kubeClient kubernetes.Interface) strategy.Strategy

New creates an instance of an OIDC protection agent.

Types

type Encryptor

type Encryptor interface {
	Encode(name string, value interface{}) (string, error)
	Decode(name, value string, dst interface{}) error
}

Encryptor signs and encrypts values. Used for cookie encryption

type OidcCookie

type OidcCookie struct {
	Value      string
	Expiration time.Time
}

OidcCookie represents a token stored in browser

type WebStrategy

type WebStrategy struct {
	// contains filtered or unexported fields
}

WebStrategy handles OAuth 2.0 / OIDC flows

func (*WebStrategy) HandleAuthnZRequest

func (w *WebStrategy) HandleAuthnZRequest(r *authnz.HandleAuthnZRequest, action *engine.Action) (*authnz.HandleAuthnZResponse, error)

HandleAuthnZRequest acts as the entry point to an OAuth 2.0 / OIDC flow. It processes OAuth 2.0 / OIDC requests.

Jump to

Keyboard shortcuts

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