fix(portal): maintain identity preload on client (#10008)

When updating a client, we need to maintain the preloaded `identity`
association to use for the IdP policy condition.
This commit is contained in:
Jamil
2025-07-25 20:42:19 -04:00
committed by GitHub
parent ce5650b554
commit 3ff31e3a33

View File

@@ -267,7 +267,8 @@ defmodule API.Client.Channel do
Map.take(socket.assigns.resources, MapSet.to_list(socket.assigns.authorized_resource_ids))
|> Map.values()
# 2. Update our state
# 2. Update our state - maintain preloaded identity
client = %{client | identity: socket.assigns.client.identity}
socket = assign(socket, client: client)
# 3. If client's verification status changed, send diff of resources