A gin-gonic middleware to forward authentication requests to wirefall
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
structix 0e6658ec60 Update README 1 year ago
.gitignore Add basic wirefall middleware functions 1 year ago
LICENSE Initial commit 1 year ago
README.md Update README 1 year ago
go.mod Add basic wirefall middleware functions 1 year ago
go.sum Add basic wirefall middleware functions 1 year ago
wirefall-middleware.go Remove logging 1 year ago

README.md

wirefall-middleware

A gin-gonic middleware to forward authentication requests to wirefall


Usage

// Initialization
authMiddleware := wirefallmiddleware.New(cfg.WIREFALL_URL + "/auth/validate")

auth := router.Group("/auth")
	auth.Use(authMiddleware.Use())
	{
		auth.GET("/test", func(c *gin.Context) {
			example := c.MustGet("authorization").(bool)
            
            log.Println("Success:", example)
		})
	}