Documentation
¶
Index ¶
- Variables
- type Acl
- type Config
- type Container
- func (c *Container) AuthMiddleware(ctx *fasthttp.RequestCtx) (bool, error)
- func (c *Container) ChangePassword(providerName string, ctx *fasthttp.RequestCtx) (bool, error, map[string]error)
- func (c *Container) GetUniqueIdentifier(providerName string, ctx *fasthttp.RequestCtx) (string, error)
- func (c *Container) IsAuthenticated(providerName string, ctx *fasthttp.RequestCtx) (bool, error)
- func (c *Container) Login(providerName string, ctx *fasthttp.RequestCtx) (bool, error, map[string]error)
- func (c *Container) Logout(providerName string, ctx *fasthttp.RequestCtx, redirect string) (bool, error)
- func (c *Container) Register(providerName string, ctx *fasthttp.RequestCtx) (bool, error, map[string]error)
- type Provider
Constants ¶
This section is empty.
Variables ¶
View Source
var ( LoggedIn = "logged-in" LoggedOut = "logged-out" )
View Source
var (
AclDeniedUriPlaceholder = ":acl_denied_uri:"
)
Functions ¶
This section is empty.
Types ¶
type Acl ¶ added in v0.10.0
type Acl struct {
Auth *Container
}
func (*Acl) Middleware ¶ added in v0.10.0
func (*Acl) PermittedCtx ¶ added in v0.10.0
func (a *Acl) PermittedCtx(ctx *fasthttp.RequestCtx, permittedPermissions []string) bool
type Container ¶
type Container struct {
// contains filtered or unexported fields
}
func (*Container) AuthMiddleware ¶
func (c *Container) AuthMiddleware(ctx *fasthttp.RequestCtx) (bool, error)
func (*Container) ChangePassword ¶ added in v0.9.0
func (*Container) GetUniqueIdentifier ¶
func (*Container) IsAuthenticated ¶
type Provider ¶
type Provider interface { GetProviderName() string GetUniqueIdentifier(ctx *fasthttp.RequestCtx) string GetPermissions(ctx *fasthttp.RequestCtx) []string IsAuthenticated(ctx *fasthttp.RequestCtx) bool Login(ctx *fasthttp.RequestCtx) (bool, map[string]error) Logout(ctx *fasthttp.RequestCtx) bool Register(ctx *fasthttp.RequestCtx) (bool, map[string]error) ChangePassword(ctx *fasthttp.RequestCtx) (bool, map[string]error) }
Click to show internal directories.
Click to hide internal directories.