hook

package
v0.1.0-alpha.5 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeySessionIssuer    = "session"
	KeyRedirector       = "redirect"
	KeySessionDestroyer = "revoke_active_sessions"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Redirector

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

func NewRedirector

func NewRedirector(
	returnTo func() *url.URL,
	whitelist func() []url.URL,
	allowUserDefined func() bool,
) *Redirector

func (*Redirector) ExecuteLoginPostHook

func (e *Redirector) ExecuteLoginPostHook(w http.ResponseWriter, r *http.Request, sr *login.Request, _ *session.Session) error

func (*Redirector) ExecuteRegistrationPostHook

func (e *Redirector) ExecuteRegistrationPostHook(w http.ResponseWriter, r *http.Request, sr *registration.Request, _ *session.Session) error

type SessionDestroyer

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

func NewSessionDestroyer

func NewSessionDestroyer(r sessionDestroyerDependencies) *SessionDestroyer

func (*SessionDestroyer) ExecuteLoginPostHook

func (e *SessionDestroyer) ExecuteLoginPostHook(_ http.ResponseWriter, r *http.Request, _ *login.Request, s *session.Session) error

type SessionIssuer

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

func NewSessionIssuer

func NewSessionIssuer(r sessionIssuerDependencies) *SessionIssuer

func (*SessionIssuer) ExecuteLoginPostHook

func (e *SessionIssuer) ExecuteLoginPostHook(w http.ResponseWriter, r *http.Request, a *login.Request, s *session.Session) error

func (*SessionIssuer) ExecuteRegistrationPostHook

func (e *SessionIssuer) ExecuteRegistrationPostHook(w http.ResponseWriter, r *http.Request, a *registration.Request, s *session.Session) error

Jump to

Keyboard shortcuts

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