Merged in feature/eula.part1 (pull request #206)

eula support

* eula support

* docs
This commit is contained in:
Jay Brown
2026-01-22 18:17:27 +00:00
parent c10fa98d0a
commit 63c12a2f44
38 changed files with 15646 additions and 230 deletions
+4
View File
@@ -320,6 +320,10 @@ func New(ctx context.Context, cfg Config) (*Server, error) {
cognitoauth.RegisterRoutes(cfg.GetRouter(), cfg)
// auth end
// Test user injection middleware - only active when DISABLE_AUTH=true
// This allows testing user-authenticated endpoints by passing X-Test-User-Subject header
e.Use(cognitoauth.TestUserMiddleware())
opnapi, err := cfg.RegisterHandlers()
if err != nil {
return nil, err