request_cache

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const SessionKeyCachedRequest = "CachedRequest"

Variables

View Source
var (
	FeatureId = security.FeatureId("request_cache", security.FeatureOrderRequestCache)
)
View Source
var Module = &bootstrap.Module{
	Name:       "request_cache",
	Precedence: security.MinSecurityPrecedence + 20,
	Options: []fx.Option{
		fx.Invoke(register),
	},
}

Functions

func GobRegister

func GobRegister()

func NewSavedRequestAuthenticationSuccessHandler

func NewSavedRequestAuthenticationSuccessHandler(fallback security.AuthenticationSuccessHandler, condition func(from, to security.Authentication) bool) security.AuthenticationSuccessHandler

func RemoveCachedRequest

func RemoveCachedRequest(ctx *gin.Context)

func SaveRequest

func SaveRequest(ctx context.Context)

Types

type CachedRequest

type CachedRequest struct {
	Method   string
	URL      *url.URL
	Header   http.Header
	Form     url.Values
	PostForm url.Values
	Host     string
}

func GetCachedRequest

func GetCachedRequest(ctx context.Context) *CachedRequest

type CachedRequestPreProcessor

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

CachedRequestPreProcessor is designed to be used by code outside of the security package. Implements the web.RequestCacheAccessor interface

func (*CachedRequestPreProcessor) Name

func (*CachedRequestPreProcessor) Process

type Configurer

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

func (*Configurer) Apply

func (sc *Configurer) Apply(feature security.Feature, ws security.WebSecurity) error

type Feature

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

func Configure

func Configure(ws security.WebSecurity) *Feature

Configure Standard security.Feature entrypoint

func New

func New() *Feature

New Standard security.Feature entrypoint, DSL style. Used with security.WebSecurity

func (*Feature) Identifier

func (f *Feature) Identifier() security.FeatureIdentifier

func (*Feature) SessionName

func (f *Feature) SessionName(sessionName string) *Feature

type SaveRequestEntryPoint

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

func (*SaveRequestEntryPoint) Commence

type SavedRequestAuthenticationSuccessHandler

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

func (*SavedRequestAuthenticationSuccessHandler) HandleAuthenticationSuccess

Jump to

Keyboard shortcuts

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