Documentation
¶
Index ¶
Constants ¶
View Source
const ( SessionCookieName = "dioad_session" PreAuthRefererCookieName = "auth_referer" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
ProviderMap ProviderMap `mapstructure:"providers"`
CookieConfig http.CookieConfig `mapstructure:"cookies"`
}
type Handler ¶
type Handler struct {
CookieStore sessions.Store
LoginPath string
LogoutPath string
CallbackDefaultRedirect string
HomePath string
}
func (*Handler) AuthRequest ¶ added in v0.37.0
func (*Handler) AuthStart ¶
func (h *Handler) AuthStart() http.HandlerFunc
func (*Handler) AuthWrapper ¶
func (h *Handler) AuthWrapper(next http.HandlerFunc) http.HandlerFunc
func (*Handler) Callback ¶
func (h *Handler) Callback() http.HandlerFunc
func (*Handler) LogoutHandler ¶
func (h *Handler) LogoutHandler() http.HandlerFunc
type ProviderConfig ¶
type ProviderMap ¶
type ProviderMap map[string]ProviderConfig
Click to show internal directories.
Click to hide internal directories.