Documentation ¶
Index ¶
- Constants
- type RedirectHandler
- func (ep *RedirectHandler) Commence(c context.Context, r *http.Request, rw http.ResponseWriter, err error)
- func (ep *RedirectHandler) HandleAccessDenied(c context.Context, r *http.Request, rw http.ResponseWriter, err error)
- func (ep *RedirectHandler) HandleAuthenticationError(c context.Context, r *http.Request, rw http.ResponseWriter, err error)
- func (ep *RedirectHandler) HandleAuthenticationSuccess(c context.Context, r *http.Request, rw http.ResponseWriter, ...)
Constants ¶
View Source
const ( FlashKeyPreviousError = "error" FlashKeyPreviousStatusCode = "status" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RedirectHandler ¶
type RedirectHandler struct {
// contains filtered or unexported fields
}
RedirectHandler implements multiple interface for authentication and error handling strategies
func NewRedirectWithRelativePath ¶
func NewRedirectWithRelativePath(path string, ignoreCtxPath bool) *RedirectHandler
func NewRedirectWithURL ¶
func NewRedirectWithURL(urlStr string) *RedirectHandler
func (*RedirectHandler) Commence ¶
func (ep *RedirectHandler) Commence(c context.Context, r *http.Request, rw http.ResponseWriter, err error)
Commence implements security.AuthenticationEntryPoint
func (*RedirectHandler) HandleAccessDenied ¶
func (ep *RedirectHandler) HandleAccessDenied(c context.Context, r *http.Request, rw http.ResponseWriter, err error)
HandleAccessDenied implements security.AccessDeniedHandler
func (*RedirectHandler) HandleAuthenticationError ¶
func (ep *RedirectHandler) HandleAuthenticationError(c context.Context, r *http.Request, rw http.ResponseWriter, err error)
HandleAuthenticationError implements security.AuthenticationErrorHandler
func (*RedirectHandler) HandleAuthenticationSuccess ¶
func (ep *RedirectHandler) HandleAuthenticationSuccess(c context.Context, r *http.Request, rw http.ResponseWriter, from, to security.Authentication)
HandleAuthenticationSuccess implements security.AuthenticationSuccessHandler
Click to show internal directories.
Click to hide internal directories.