diff --git a/config/config.exs b/config/config.exs index 729dbea..ae52259 100644 --- a/config/config.exs +++ b/config/config.exs @@ -45,6 +45,17 @@ config :commanded_ecto_projections, config :flop, repo: PolicyService.Repo +config :policy_service, :zitadel, + issuer: System.get_env("ZITADEL_ISSUER", "https://id.corredorconnect.com"), + client_id: System.get_env("ZITADEL_CLIENT_ID"), + client_secret: System.get_env("ZITADEL_CLIENT_SECRET"), + roles_claim: "urn:zitadel:iam:org:project:#{System.get_env("ZITADEL_PROJECT_ID")}:roles", + required_scopes: [ + "openid", + "profile", + "urn:zitadel:iam:org:project:#{System.get_env("ZITADEL_PROJECT_ID")}:roles" + ] + # Import environment specific config. This must remain at the bottom # of this file so it overrides the configuration defined above. import_config "#{config_env()}.exs"