This commit is contained in:
@@ -45,17 +45,6 @@ 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"
|
||||
|
||||
@@ -41,16 +41,6 @@ config :cors_plug,
|
||||
origin: cors_origin
|
||||
|
||||
# Zitadel Configuration
|
||||
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"
|
||||
]
|
||||
|
||||
# ## Using releases
|
||||
#
|
||||
@@ -108,4 +98,15 @@ if config_env() == :prod do
|
||||
port: String.to_integer(System.get_env("PORT", "4000"))
|
||||
],
|
||||
secret_key_base: secret_key_base
|
||||
|
||||
config :policy_service, :zitadel,
|
||||
issuer: System.get_env("ZITADEL_ISSUER", "https://id.corredorconect.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"
|
||||
]
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user