Documentation ¶
Index ¶
- Constants
- func InitChangePassword(cfg *Server) error
- func InitHealth(cfg *Server) error
- func InitLogin(cfg *Server) error
- func InitMFA(cfg *Server) error
- func InitManage(cfg *Server) error
- func InitOauth2(cfg *Server) error
- func InitPasswordLess(cfg *Server) error
- func InitSafariHack(cfg *Server) error
- func SafariHack(ctx echo.Context) error
- func ZapLogger(log *zap.Logger) echo.MiddlewareFunc
- type Server
- type ServerConfig
- type Template
Constants ¶
View Source
const ( BadRequiredCodeField = `field:%s` BadRequiredCodeCommon = `invalid_argument` MFARequiredCode = `mfa_required` CaptchaRequiredCode = `captcha_required` TemporaryLockedCode = `login_temporary_locked` InvalidAuthTokenCode = `auth_token_invalid` UnknownErrorCode = `unknown_error` )
Variables ¶
This section is empty.
Functions ¶
func InitChangePassword ¶
func InitHealth ¶
func InitManage ¶
func InitOauth2 ¶
func InitPasswordLess ¶
func InitSafariHack ¶
func SafariHack ¶
func SafariHack(ctx echo.Context) error
Types ¶
type Server ¶
type Server struct { // Echo is instance of the Echo framework Echo *echo.Echo // ApiConfig is common http setting for the application like a port, timeouts & etc. ServerConfig *config.Server // RedisClient is Redis client. RedisHandler *redis.Client // HydraConfig contains settings for the public and admin url of the Hydra application. HydraConfig *config.Hydra // SessionConfig contains settings for the session. SessionConfig *config.Session // Registry is the registry service Registry service.InternalRegistry }
Server is the instance of the application
func NewServer ¶
func NewServer(c *ServerConfig) (*Server, error)
NewServer creates new instance of the application.
type ServerConfig ¶
type ServerConfig struct { // ApiConfig is common http setting for the application like a port, timeouts & etc. ApiConfig *config.Server // HydraConfig contains settings for the public and admin url of the Hydra application. HydraConfig *config.Hydra // HydraAdminApi is client of the Hydra for administration requests. HydraAdminApi *admin.Client // SessionConfig contains settings for the session. SessionConfig *config.Session // MfaService describes the interface for working with MFA micro-service. MfaService proto.MfaService // MgoSession describes the interface for working with Mongo session. MgoSession database.MgoSession // SessionStore is client for session storage. SessionStore *redistore.RediStore // RedisClient is Redis client. RedisClient *redis.Client // Mailer contains settings for the postman service Mailer *config.Mailer }
ServerConfig contains common configuration parameters for start application server
Click to show internal directories.
Click to hide internal directories.