redirect

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: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FlashKeyPreviousError      = "error"
	FlashKeyPreviousStatusCode = "status"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type RedirectHandler

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

RedirectHandler implements multiple interface for authentication and error handling strategies

func NewRedirectWithRelativePath

func NewRedirectWithRelativePath(path string, ignoreCtxPath bool) *RedirectHandler

func NewRedirectWithURL

func NewRedirectWithURL(urlStr string) *RedirectHandler

func (*RedirectHandler) Commence

func (ep *RedirectHandler) Commence(c context.Context, r *http.Request, rw http.ResponseWriter, err error)

Commence implements security.AuthenticationEntryPoint

func (*RedirectHandler) HandleAccessDenied

func (ep *RedirectHandler) HandleAccessDenied(c context.Context, r *http.Request, rw http.ResponseWriter, err error)

HandleAccessDenied implements security.AccessDeniedHandler

func (*RedirectHandler) HandleAuthenticationError

func (ep *RedirectHandler) HandleAuthenticationError(c context.Context, r *http.Request, rw http.ResponseWriter, err error)

HandleAuthenticationError implements security.AuthenticationErrorHandler

func (*RedirectHandler) HandleAuthenticationSuccess

func (ep *RedirectHandler) HandleAuthenticationSuccess(c context.Context, r *http.Request, rw http.ResponseWriter, from, to security.Authentication)

HandleAuthenticationSuccess implements security.AuthenticationSuccessHandler

Jump to

Keyboard shortcuts

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