Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
WebAssemblyAuthenticationServiceCollectionExtensions.AddAuthenticationStateDeserialization Method
Definition
- Namespace:
- Microsoft.Extensions.DependencyInjection
- Assembly:
- Microsoft.AspNetCore.Components.WebAssembly.Authentication.dll
- Package:
- Microsoft.AspNetCore.Components.WebAssembly.Authentication v10.0.0
- Package:
- Microsoft.AspNetCore.Components.WebAssembly.Authentication v11.0.0-preview.4.26230.115
- Package:
- Microsoft.AspNetCore.Components.WebAssembly.Authentication v9.0.8
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds an AuthenticationStateProvider where the AuthenticationState is deserialized from the server using AuthenticationStateData and PersistentComponentState. There should be a corresponding call to AddAuthenticationStateSerialization from the Microsoft.AspNetCore.Components.WebAssembly.Server package in the server project.
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddAuthenticationStateDeserialization(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.AspNetCore.Components.WebAssembly.Authentication.AuthenticationStateDeserializationOptions>? configure = default);
static member AddAuthenticationStateDeserialization : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.AspNetCore.Components.WebAssembly.Authentication.AuthenticationStateDeserializationOptions> -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddAuthenticationStateDeserialization (services As IServiceCollection, Optional configure As Action(Of AuthenticationStateDeserializationOptions) = Nothing) As IServiceCollection
Parameters
- services
- IServiceCollection
The IServiceCollection to add the services to.
- configure
- Action<AuthenticationStateDeserializationOptions>
An action that will configure the AuthenticationStateDeserializationOptions.
Returns
Applies to
Feedback
Was this page helpful?
