Documentation
¶
Index ¶
- type AuthenticationHandlers
- func (self *AuthenticationHandlers) GetUserFromSession(r *http.Request) (*api.Response, error)
- func (self *AuthenticationHandlers) HasSession(r *http.Request) bool
- func (self *AuthenticationHandlers) LoginHandler(redirectUrl string) func(http.ResponseWriter, *http.Request)
- func (self *AuthenticationHandlers) LogoutHandler(redirectUrl string) func(http.ResponseWriter, *http.Request)
- func (self *AuthenticationHandlers) SessionMiddleware(redirectUrl string, unprotected []string) func(http.Handler) http.Handler
- type Client
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthenticationHandlers ¶
type AuthenticationHandlers struct {
// contains filtered or unexported fields
}
func NewAuthenticationHandlers ¶
func NewAuthenticationHandlers(cookieName string, findapi *api.Api) *AuthenticationHandlers
func (*AuthenticationHandlers) GetUserFromSession ¶
func (*AuthenticationHandlers) HasSession ¶
func (self *AuthenticationHandlers) HasSession(r *http.Request) bool
func (*AuthenticationHandlers) LoginHandler ¶
func (self *AuthenticationHandlers) LoginHandler(redirectUrl string) func(http.ResponseWriter, *http.Request)
func (*AuthenticationHandlers) LogoutHandler ¶
func (self *AuthenticationHandlers) LogoutHandler(redirectUrl string) func(http.ResponseWriter, *http.Request)
func (*AuthenticationHandlers) SessionMiddleware ¶
Click to show internal directories.
Click to hide internal directories.