Documentation
¶
Overview ¶
Package auth handles sever-side and client-side authentication
Index ¶
- Constants
- func NewService(rdb *redis.Client, config core.Config, entity core.EntityService, ...) core.AuthService
- func Recaptcha(validator *recaptcha.ReCAPTCHA) echo.MiddlewareFunc
- func ReceiveGatewayAuthPropagation(next echo.HandlerFunc) echo.HandlerFunc
- func Restrict(principal Principal) echo.MiddlewareFunc
- type Handler
- type Principal
Constants ¶
View Source
const ( ISADMIN = iota ISLOCAL ISKNOWN ISUNITED ISREGISTERED )
Variables ¶
This section is empty.
Functions ¶
func NewService ¶
func NewService( rdb *redis.Client, config core.Config, entity core.EntityService, domain core.DomainService, key core.KeyService, policy core.PolicyService, ) core.AuthService
NewService creates a new auth service
func ReceiveGatewayAuthPropagation ¶
func ReceiveGatewayAuthPropagation(next echo.HandlerFunc) echo.HandlerFunc
Types ¶
type Handler ¶
type Handler interface {
GetPassport(c echo.Context) error
}
Handler is the interface for handling HTTP requests
func NewHandler ¶
func NewHandler(service core.AuthService) Handler
NewHandler creates a new handler
Click to show internal directories.
Click to hide internal directories.