Table of Contents

Class ConfigureAuthStateDeserializationOptions

Namespace
Arc4u.Blazor.Options
Assembly
Arc4u.OAuth2.Blazor.dll

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

mapper IAppPrincipalAuthenticationStateProvider

The 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

options AuthenticationStateDeserializationOptions

The options to configure.