Documentation
¶
Index ¶
- type Handler
- func (h *Handler) Callback(res http.ResponseWriter, req *http.Request, ...) error
- func (h *Handler) CurrentUser(req *http.Request) (*authentication.User, error)
- func (h *Handler) Destroy(res http.ResponseWriter, req *http.Request) error
- func (h *Handler) LoadUserData(accessToken *oauth2.Token, req *http.Request, res http.ResponseWriter) (*authentication.User, error)
- func (h *Handler) Start(res http.ResponseWriter, req *http.Request) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
TODO wrap in a config struct?
func (*Handler) Callback ¶
func (h *Handler) Callback(res http.ResponseWriter, req *http.Request, beforeWriteCallback func(*authentication.User) error) error
func (*Handler) CurrentUser ¶
func (*Handler) LoadUserData ¶
func (h *Handler) LoadUserData(accessToken *oauth2.Token, req *http.Request, res http.ResponseWriter) (*authentication.User, error)
TODO comment that properly side effect: load into session returns what was stored in the session
Click to show internal directories.
Click to hide internal directories.