veriflow

package
v0.0.0-...-4648e5f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 16, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

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 New

func New() *Veriflow

func (*Veriflow) AuthCallback

func (veriflow *Veriflow) AuthCallback(c *gin.Context)

OIDC Auth Callback

func (*Veriflow) AuthTokenMiddleware

func (veriflow *Veriflow) AuthTokenMiddleware() gin.HandlerFunc

func (*Veriflow) GetVerifyCodeHandler

func (veriflow *Veriflow) GetVerifyCodeHandler(c *gin.Context)

func (*Veriflow) HandleConfigure

func (veriflow *Veriflow) HandleConfigure(c *gin.Context, userID string)

Configure authenticator

func (*Veriflow) HandleHelp

func (veriflow *Veriflow) HandleHelp(c *gin.Context)

Help

func (*Veriflow) HandleVeriflow

func (veriflow *Veriflow) HandleVeriflow(c *gin.Context)

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 *Veriflow) PostVerifyCodeHandler(c *gin.Context)

func (*Veriflow) SetupRouter

func (veriflow *Veriflow) SetupRouter() *gin.Engine

func (*Veriflow) ValidateAccessToken

func (veriflow *Veriflow) ValidateAccessToken(accessToken string) (string, bool)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL