13 references to AccountClaimsPrincipalFactory
Microsoft.AspNetCore.Components.WebAssembly.Authentication (13)
RemoteAuthenticationBuilderExtensions.cs (7)
16/// Replaces the existing <see cref="AccountClaimsPrincipalFactory{TAccount}"/> with the user factory defined by <typeparamref name="TAccountClaimsPrincipalFactory"/>. 27where TAccountClaimsPrincipalFactory : AccountClaimsPrincipalFactory<TAccount> 29builder.Services.Replace(ServiceDescriptor.Scoped<AccountClaimsPrincipalFactory<TAccount>, TAccountClaimsPrincipalFactory>()); 35/// Replaces the existing <see cref="AccountClaimsPrincipalFactory{Account}"/> with the user factory defined by <typeparamref name="TAccountClaimsPrincipalFactory"/>. 44where TAccountClaimsPrincipalFactory : AccountClaimsPrincipalFactory<RemoteUserAccount> => builder.AddAccountClaimsPrincipalFactory<TRemoteAuthenticationState, RemoteUserAccount, TAccountClaimsPrincipalFactory>(); 47/// Replaces the existing <see cref="AccountClaimsPrincipalFactory{TAccount}"/> with the user factory defined by <typeparamref name="TAccountClaimsPrincipalFactory"/>. 54where TAccountClaimsPrincipalFactory : AccountClaimsPrincipalFactory<RemoteUserAccount> => builder.AddAccountClaimsPrincipalFactory<RemoteAuthenticationState, RemoteUserAccount, TAccountClaimsPrincipalFactory>();
Services\AccountClaimsPrincipalFactory.cs (1)
19/// Initialize a new instance of <see cref="AccountClaimsPrincipalFactory{TAccount}"/>.
Services\RemoteAuthenticationService.cs (4)
51/// Gets the <see cref="AccountClaimsPrincipalFactory{TAccount}"/> to map accounts to <see cref="ClaimsPrincipal"/>. 53protected AccountClaimsPrincipalFactory<TAccount> AccountClaimsPrincipalFactory { get; } 66/// <param name="accountClaimsPrincipalFactory">The <see cref="AccountClaimsPrincipalFactory{TAccount}"/> used to generate the <see cref="ClaimsPrincipal"/> for the user.</param> 72AccountClaimsPrincipalFactory<TAccount> accountClaimsPrincipalFactory,
WebAssemblyAuthenticationServiceCollectionExtensions.cs (1)
75services.TryAddScoped<AccountClaimsPrincipalFactory<TAccount>>();