Class ConfigureAuthStateDeserializationOptions
Configures the deserialization of the authentication state received from the server so that it produces an AppPrincipal.
[Export(typeof(IConfigureOptions<AuthenticationStateDeserializationOptions>))]
[Shared]
public sealed class ConfigureAuthStateDeserializationOptions : IConfigureOptions<AuthenticationStateDeserializationOptions>
- Inheritance
-
ConfigureAuthStateDeserializationOptions
- Implements
- Inherited Members
Constructors
ConfigureAuthStateDeserializationOptions(IAppPrincipalAuthenticationStateProvider)
Initializes a new instance of the ConfigureAuthStateDeserializationOptions class.
public ConfigureAuthStateDeserializationOptions(IAppPrincipalAuthenticationStateProvider mapper)
Parameters
mapperIAppPrincipalAuthenticationStateProviderThe provider that builds the principal from the deserialized authentication state.
Methods
Configure(AuthenticationStateDeserializationOptions)
Sets the DeserializationCallback to build the AppPrincipal. An anonymous state is returned when there is no data.
public void Configure(AuthenticationStateDeserializationOptions options)
Parameters
optionsAuthenticationStateDeserializationOptionsThe options to configure.