config integration

begin cognito config integration
This commit is contained in:
jay brown
2025-04-09 17:19:19 -07:00
parent c1a17d89bf
commit 4f40a7e6ea
13 changed files with 193 additions and 445 deletions
+2 -2
View File
@@ -11,7 +11,7 @@ import (
)
// RegisterRoutes registers all authentication-related routes to the Echo engine
func RegisterRoutes(e *echo.Echo, config *Config) {
func RegisterRoutes(e *echo.Echo, config *CognitoConfig) {
// Register the login route - the middleware will handle this
e.GET(config.LoginPath, func(c echo.Context) error {
// This is handled by the middleware
@@ -53,7 +53,7 @@ func RegisterRoutes(e *echo.Echo, config *Config) {
}
// HomeHandler implements a simple home page that shows auth status and available endpoints
func HomeHandler(c echo.Context, config *Config) error {
func HomeHandler(c echo.Context, config *CognitoConfig) error {
// Create a list of all registered routes
var endpoints []string