config integration
begin cognito config integration
This commit is contained in:
@@ -34,7 +34,6 @@ import (
|
||||
"queryorchestration/internal/server/api"
|
||||
"queryorchestration/internal/serviceconfig/queue/clientsync"
|
||||
"queryorchestration/internal/serviceconfig/queue/queryversionsync"
|
||||
"queryorchestration/internal/serviceconfig/rbac"
|
||||
|
||||
"github.com/getkin/kin-openapi/openapi3"
|
||||
_ "github.com/lib/pq"
|
||||
@@ -106,12 +105,13 @@ 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)
|
||||
}
|
||||
//errorGettingAuthProvider := rbac.InitializeAuthProvider(&cfg.AuthConfig)
|
||||
//if errorGettingAuthProvider != nil {
|
||||
// slog.Error(errorGettingAuthProvider.Error())
|
||||
// os.Exit(1)
|
||||
//}
|
||||
|
||||
server, err := api.New(ctx, cfg)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user