feat(auth): Add option to disable registration and tenant creation

This commit is contained in:
Björn Benouarets
2026-01-27 16:34:04 +01:00
parent 9d7adb740c
commit 4e49896319
9 changed files with 126 additions and 49 deletions

View File

@@ -14,7 +14,7 @@ import (
func AuthMiddleware() fiber.Handler {
return func(c *fiber.Ctx) error {
if slices.Contains(config.CONFIG.UNPROTECTED_ENDPOINTS, c.Path()) {
if slices.Contains(config.CONFIG.UnprotectedEndpoints, c.Path()) {
masterlog.Debug("Unprotected endpoint", map[string]interface{}{"path": c.Path()})
return c.Next()
}