refactor auth
Some checks failed
Build and Publish / build-release (push) Failing after 1m49s

This commit is contained in:
2026-05-13 13:04:31 -05:00
parent 07a232c131
commit 20d5e86975
12 changed files with 183 additions and 518 deletions

View File

@@ -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