Documentation ¶
Index ¶
- func InitUI(cfg ui.AuthConfig)
- type PublicUI
- func (h *PublicUI) AuthHandler(w http.ResponseWriter, r *http.Request, p httprouter.Params)
- func (h *PublicUI) CallbackHandler(w http.ResponseWriter, r *http.Request, p httprouter.Params)
- func (h *PublicUI) IsAdmin(user string) bool
- func (h PublicUI) Login(w http.ResponseWriter, r *http.Request, p httprouter.Params)
- func (h PublicUI) LoginFail(w http.ResponseWriter, r *http.Request, p httprouter.Params)
- func (h PublicUI) LoginSuccess(w http.ResponseWriter, r *http.Request, p httprouter.Params)
- func (h PublicUI) Logout(w http.ResponseWriter, r *http.Request, p httprouter.Params)
- func (h PublicUI) RedirectHandler(w http.ResponseWriter, r *http.Request, p httprouter.Params)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitUI ¶
func InitUI(cfg ui.AuthConfig)
Types ¶
type PublicUI ¶
func (*PublicUI) AuthHandler ¶
func (h *PublicUI) AuthHandler(w http.ResponseWriter, r *http.Request, p httprouter.Params)
func (*PublicUI) CallbackHandler ¶
func (h *PublicUI) CallbackHandler(w http.ResponseWriter, r *http.Request, p httprouter.Params)
func (PublicUI) Login ¶
func (h PublicUI) Login(w http.ResponseWriter, r *http.Request, p httprouter.Params)
func (PublicUI) LoginFail ¶
func (h PublicUI) LoginFail(w http.ResponseWriter, r *http.Request, p httprouter.Params)
func (PublicUI) LoginSuccess ¶
func (h PublicUI) LoginSuccess(w http.ResponseWriter, r *http.Request, p httprouter.Params)
func (PublicUI) Logout ¶
func (h PublicUI) Logout(w http.ResponseWriter, r *http.Request, p httprouter.Params)
func (PublicUI) RedirectHandler ¶
func (h PublicUI) RedirectHandler(w http.ResponseWriter, r *http.Request, p httprouter.Params)
Click to show internal directories.
Click to hide internal directories.