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"/>.
27
where TAccountClaimsPrincipalFactory :
AccountClaimsPrincipalFactory
<TAccount>
29
builder.Services.Replace(ServiceDescriptor.Scoped<
AccountClaimsPrincipalFactory
<TAccount>, TAccountClaimsPrincipalFactory>());
35
/// Replaces the existing <see cref="
AccountClaimsPrincipalFactory
{Account}"/> with the user factory defined by <typeparamref name="TAccountClaimsPrincipalFactory"/>.
44
where 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"/>.
54
where 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"/>.
53
protected
AccountClaimsPrincipalFactory
<TAccount> AccountClaimsPrincipalFactory { get; }
66
/// <param name="accountClaimsPrincipalFactory">The <see cref="
AccountClaimsPrincipalFactory
{TAccount}"/> used to generate the <see cref="ClaimsPrincipal"/> for the user.</param>
72
AccountClaimsPrincipalFactory
<TAccount> accountClaimsPrincipalFactory,
WebAssemblyAuthenticationServiceCollectionExtensions.cs (1)
75
services.TryAddScoped<
AccountClaimsPrincipalFactory
<TAccount>>();