partial working
This commit is contained in:
+10
-7
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user