This commit is contained in:
@@ -3,12 +3,12 @@ defmodule PolicyService.Application do
|
||||
# for more information on OTP Applications
|
||||
@moduledoc false
|
||||
|
||||
@zitadel Application.fetch_env!(:policy_service, :zitadel)
|
||||
|
||||
use Application
|
||||
|
||||
@impl true
|
||||
def start(_type, _args) do
|
||||
zitadel_config = Application.get_env(:policy_service, :zitadel, [])
|
||||
|
||||
children = [
|
||||
PolicyService.CommandedApp,
|
||||
PolicyService.Handlers.QuoteRequestHandler,
|
||||
@@ -22,7 +22,7 @@ defmodule PolicyService.Application do
|
||||
{Phoenix.PubSub, name: PolicyService.PubSub, pool_size: 1},
|
||||
{Oidcc.ProviderConfiguration.Worker,
|
||||
%{
|
||||
issuer: Keyword.get(zitadel_config, :issuer),
|
||||
issuer: @zitadel[:issuer],
|
||||
name: PolicyService.ZitadelProvider
|
||||
}},
|
||||
PolicyServiceWeb.Endpoint
|
||||
|
||||
Reference in New Issue
Block a user