hook

package
v0.6.0-alpha.1.pre.2 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error struct {
	Config json.RawMessage
}

func (Error) ExecuteLoginPostHook

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

func (Error) ExecuteLoginPreHook

func (e Error) ExecuteLoginPreHook(w http.ResponseWriter, r *http.Request, a *login.Flow) error

func (Error) ExecutePostRegistrationPostPersistHook

func (e Error) ExecutePostRegistrationPostPersistHook(w http.ResponseWriter, r *http.Request, a *registration.Flow, s *session.Session) error

func (Error) ExecutePostRegistrationPrePersistHook

func (e Error) ExecutePostRegistrationPrePersistHook(w http.ResponseWriter, r *http.Request, a *registration.Flow, i *identity.Identity) error

func (Error) ExecuteRegistrationPreHook

func (e Error) ExecuteRegistrationPreHook(w http.ResponseWriter, r *http.Request, a *registration.Flow) error

func (Error) ExecuteSettingsPostPersistHook

func (e Error) ExecuteSettingsPostPersistHook(w http.ResponseWriter, r *http.Request, a *settings.Flow, s *identity.Identity) error

func (Error) ExecuteSettingsPrePersistHook

func (e Error) ExecuteSettingsPrePersistHook(w http.ResponseWriter, r *http.Request, a *settings.Flow, s *identity.Identity) 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.Flow, s *session.Session) error

type SessionIssuer

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

func NewSessionIssuer

func NewSessionIssuer(r sessionIssuerDependencies) *SessionIssuer

func (*SessionIssuer) ExecutePostRegistrationPostPersistHook

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

type SessionIssuerProvider

type SessionIssuerProvider interface {
	HookSessionIssuer() *SessionIssuer
}

type Verifier

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

func NewVerifier

func NewVerifier(r verifierDependencies) *Verifier

func (*Verifier) ExecutePostRegistrationPostPersistHook

func (e *Verifier) ExecutePostRegistrationPostPersistHook(_ http.ResponseWriter, r *http.Request, f *registration.Flow, s *session.Session) error

func (*Verifier) ExecuteSettingsPostPersistHook

func (e *Verifier) ExecuteSettingsPostPersistHook(w http.ResponseWriter, r *http.Request, a *settings.Flow, i *identity.Identity) error

Jump to

Keyboard shortcuts

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