Documentation
¶
Index ¶
- func AuthedUserRedirect(w http.ResponseWriter, r *http.Request)
- func NewContextWithSession(ctx context.Context, session *model.Session) context.Context
- func SessionFromContext(ctx context.Context) *model.Session
- func UnauthedUserRedirect(w http.ResponseWriter, r *http.Request)
- type Controller
- func (c *Controller) Authenticate(next base.HTTPHandler) base.HTTPHandler
- func (c *Controller) Authorize() base.HTTPHandler
- func (c *Controller) AuthorizeIntermediary(authRoute string) base.HTTPHandler
- func (c *Controller) CheckMembership(next base.HTTPHandler) base.HTTPHandler
- func (c *Controller) LoginForm() base.HTTPHandler
- func (c *Controller) LoginPage() base.HTTPHandler
- func (c *Controller) Logout() base.HTTPHandler
- func (c *Controller) SignupPage() base.HTTPHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthedUserRedirect ¶
func AuthedUserRedirect( w http.ResponseWriter, r *http.Request, )
func NewContextWithSession ¶
func UnauthedUserRedirect ¶
func UnauthedUserRedirect( w http.ResponseWriter, r *http.Request, )
Types ¶
type Controller ¶
type Controller struct { BypassHTTPS bool Passwordless passwordless.UseCase Memberships membership.UseCase LoginView interfaces.LoginView SignUpView interfaces.SignUpView }
func (*Controller) Authenticate ¶
func (c *Controller) Authenticate(next base.HTTPHandler) base.HTTPHandler
func (*Controller) Authorize ¶
func (c *Controller) Authorize() base.HTTPHandler
func (*Controller) AuthorizeIntermediary ¶
func (c *Controller) AuthorizeIntermediary(authRoute string) base.HTTPHandler
func (*Controller) CheckMembership ¶
func (c *Controller) CheckMembership(next base.HTTPHandler) base.HTTPHandler
func (*Controller) LoginForm ¶
func (c *Controller) LoginForm() base.HTTPHandler
func (*Controller) LoginPage ¶
func (c *Controller) LoginPage() base.HTTPHandler
func (*Controller) Logout ¶
func (c *Controller) Logout() base.HTTPHandler
func (*Controller) SignupPage ¶
func (c *Controller) SignupPage() base.HTTPHandler
Click to show internal directories.
Click to hide internal directories.