Documentation ¶
Index ¶
- Constants
- type RedirectUrlMaker
- type SecurityMiddleware
- func (m *SecurityMiddleware) HandleIfGranted(action router.Action, permission string) router.Action
- func (m *SecurityMiddleware) HandleIfGrantedWithFallback(action router.Action, fallback router.Action, permission string) router.Action
- func (m *SecurityMiddleware) HandleIfLoggedIn(action router.Action) router.Action
- func (m *SecurityMiddleware) HandleIfLoggedOut(action router.Action) router.Action
- func (m *SecurityMiddleware) HandleIfNotGranted(action router.Action, permission string) router.Action
- func (m *SecurityMiddleware) HandleIfNotGrantedWithFallback(action router.Action, fallback router.Action, permission string) router.Action
- func (m *SecurityMiddleware) Inject(r *web.Responder, s application.SecurityService, u RedirectUrlMaker, ...)
Constants ¶
View Source
const ( ReferrerRedirectStrategy = "referrer" PathRedirectStrategy = "path" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RedirectUrlMaker ¶
type SecurityMiddleware ¶
type SecurityMiddleware struct {
// contains filtered or unexported fields
}
func (*SecurityMiddleware) HandleIfGranted ¶
func (*SecurityMiddleware) HandleIfGrantedWithFallback ¶
func (*SecurityMiddleware) HandleIfLoggedIn ¶
func (m *SecurityMiddleware) HandleIfLoggedIn(action router.Action) router.Action
func (*SecurityMiddleware) HandleIfLoggedOut ¶
func (m *SecurityMiddleware) HandleIfLoggedOut(action router.Action) router.Action
func (*SecurityMiddleware) HandleIfNotGranted ¶
func (*SecurityMiddleware) HandleIfNotGrantedWithFallback ¶
func (*SecurityMiddleware) Inject ¶
func (m *SecurityMiddleware) Inject(r *web.Responder, s application.SecurityService, u RedirectUrlMaker, l flamingo.Logger, cfg *struct { LoginPathHandler string `inject:"config:security.loginPath.handler"` LoginPathRedirectStrategy string `inject:"config:security.loginPath.redirectStrategy"` LoginPathRedirectPath string `inject:"config:security.loginPath.redirectPath"` AuthenticatedHomepageStrategy string `inject:"config:security.authenticatedHomepage.strategy"` AuthenticatedHomepagePath string `inject:"config:security.authenticatedHomepage.path"` EventLogging bool `inject:"config:security.eventLogging"` })
Click to show internal directories.
Click to hide internal directories.