mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 10:18:54 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user