Documentation ¶
Index ¶
- func LogrusLogger() gin.HandlerFunc
- type Veriflow
- func (veriflow *Veriflow) AuthCallback(c *gin.Context)
- func (veriflow *Veriflow) AuthTokenMiddleware() gin.HandlerFunc
- func (veriflow *Veriflow) GetVerifyCodeHandler(c *gin.Context)
- func (veriflow *Veriflow) HandleConfigure(c *gin.Context, userID string)
- func (veriflow *Veriflow) HandleHelp(c *gin.Context)
- func (veriflow *Veriflow) HandleVeriflow(c *gin.Context)
- func (veriflow *Veriflow) HandleVerify(c *gin.Context, service, requestor, recipient, responseURL, commandText string)
- func (veriflow *Veriflow) PostVerifyCodeHandler(c *gin.Context)
- func (veriflow *Veriflow) SetupRouter() *gin.Engine
- func (veriflow *Veriflow) ValidateAccessToken(accessToken string) (string, bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LogrusLogger ¶
func LogrusLogger() gin.HandlerFunc
LogrusLogger is the logging middleware using Logrus
Types ¶
type Veriflow ¶
type Veriflow struct { Cfg config.Config Svc *service.VerificationService WebAuthnService *webauthnservice.WebAuthnService VerificationQueue chan models.VerifyRequest UserStore models.UserStore Logger *log.Logger }
func (*Veriflow) AuthCallback ¶
OIDC Auth Callback
func (*Veriflow) AuthTokenMiddleware ¶
func (veriflow *Veriflow) AuthTokenMiddleware() gin.HandlerFunc
func (*Veriflow) GetVerifyCodeHandler ¶
func (*Veriflow) HandleConfigure ¶
Configure authenticator
func (*Veriflow) HandleVeriflow ¶
Handle Verification Subcommands
func (*Veriflow) HandleVerify ¶
func (veriflow *Veriflow) HandleVerify(c *gin.Context, service, requestor, recipient, responseURL, commandText string)
Handle Verification Request
func (*Veriflow) PostVerifyCodeHandler ¶
func (*Veriflow) SetupRouter ¶
Click to show internal directories.
Click to hide internal directories.