From dcc0537c370df493d330722075fb2c143c4a7e3d Mon Sep 17 00:00:00 2001 From: Lewis Hazell Date: Mon, 5 Feb 2024 16:10:29 +0000 Subject: [PATCH] make RemoteAuthenticationContext serialize correctly the entire context is serialized for JSInterop and the State and InterativeRequest properties are lost during serialization this seems to be because the only usage is for serialization and the properties are compiled out --- .../src/Models/RemoteAuthenticationContext.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Components/WebAssembly/WebAssembly.Authentication/src/Models/RemoteAuthenticationContext.cs b/src/Components/WebAssembly/WebAssembly.Authentication/src/Models/RemoteAuthenticationContext.cs index 7cee47cf2000..be24665731dc 100644 --- a/src/Components/WebAssembly/WebAssembly.Authentication/src/Models/RemoteAuthenticationContext.cs +++ b/src/Components/WebAssembly/WebAssembly.Authentication/src/Models/RemoteAuthenticationContext.cs @@ -10,6 +10,7 @@ namespace Microsoft.AspNetCore.Components.WebAssembly.Authentication; /// Represents the context during authentication operations. /// /// +[DynamicallyAccessedMembers(JsonSerialized)] public class RemoteAuthenticationContext<[DynamicallyAccessedMembers(JsonSerialized)] TRemoteAuthenticationState> where TRemoteAuthenticationState : RemoteAuthenticationState { ///