From 63aaea687150b5ee7ebdd35042ea243013cc574c Mon Sep 17 00:00:00 2001 From: James Harton <59449+jimsynz@users.noreply.github.com> Date: Thu, 12 Jan 2023 17:55:40 +1300 Subject: [PATCH] fix: missing icons in OAuth2 strategies. (#126) --- lib/ash_authentication/dsl.ex | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/ash_authentication/dsl.ex b/lib/ash_authentication/dsl.ex index 785e20a..1e00b6d 100644 --- a/lib/ash_authentication/dsl.ex +++ b/lib/ash_authentication/dsl.ex @@ -725,8 +725,9 @@ defmodule AshAuthentication.Dsl do end defp strategy_fields(strategy, params) do - params - |> Keyword.put(:assent_strategy, strategy) + [] |> strategy.default_config() + |> Keyword.put(:assent_strategy, strategy) + |> Keyword.merge(params) end end