partial working

This commit is contained in:
jay brown
2025-04-11 16:46:05 -07:00
parent ba6f624299
commit 61accd4dd4
7 changed files with 100 additions and 88 deletions
+10 -7
View File
@@ -105,13 +105,16 @@ func main() {
os.Exit(1)
}
// note initialize cognito config here
// Initialize the rbac config here since only the API service needs it
//errorGettingAuthProvider := rbac.InitializeAuthProvider(&cfg.AuthConfig)
//if errorGettingAuthProvider != nil {
// slog.Error(errorGettingAuthProvider.Error())
// os.Exit(1)
//}
// Authentication specific config.
// This may move to another function after refactoring is done.
// replace the path here with value from ENV
baseUrl := "http://localhost:8080"
errorInitializingAuthConfig := cfg.InitializeAuthConfig(baseUrl, cfg.GetLogger())
// join initErr with errorInitializingAuthConfig
if errorInitializingAuthConfig != nil {
slog.Error(errorInitializingAuthConfig.Error())
os.Exit(1)
}
server, err := api.New(ctx, cfg)
if err != nil {