View Source
Class IdentityBuilderExtensions
Extension methods for Microsoft.AspNetCore.Identity.IdentityBuilder
Inheritance
System.Object
Assembly: Umbraco.Web.Common.dll
Syntax
public static class IdentityBuilderExtensions
Methods
View Source
AddMemberManager<TInterface, TUserManager>(IdentityBuilder)
Declaration
public static IdentityBuilder AddMemberManager<TInterface, TUserManager>(this IdentityBuilder identityBuilder)
where TUserManager : UserManager<MemberIdentityUser>, TInterface
Parameters
Type |
Name |
Description |
Microsoft.AspNetCore.Identity.IdentityBuilder |
identityBuilder |
|
Returns
Type |
Description |
Microsoft.AspNetCore.Identity.IdentityBuilder |
The current Microsoft.AspNetCore.Identity.IdentityBuilder instance.
|
Type Parameters
Name |
Description |
TInterface |
The member manager interface
|
TUserManager |
The member manager type
|
View Source
AddRoleManager<TInterface, TRoleManager>(IdentityBuilder)
Declaration
public static IdentityBuilder AddRoleManager<TInterface, TRoleManager>(this IdentityBuilder identityBuilder)
where TRoleManager : RoleManager<UmbracoIdentityRole>, TInterface
Parameters
Type |
Name |
Description |
Microsoft.AspNetCore.Identity.IdentityBuilder |
identityBuilder |
|
Returns
Type |
Description |
Microsoft.AspNetCore.Identity.IdentityBuilder |
|
Type Parameters
Name |
Description |
TInterface |
|
TRoleManager |
|
View Source
AddSignInManager<TInterface, TSignInManager>(IdentityBuilder)
Adds a Microsoft.AspNetCore.Identity.SignInManager<TUser> implementation for MemberIdentityUser
Declaration
public static IdentityBuilder AddSignInManager<TInterface, TSignInManager>(this IdentityBuilder identityBuilder)
where TSignInManager : SignInManager<MemberIdentityUser>, TInterface
Parameters
Type |
Name |
Description |
Microsoft.AspNetCore.Identity.IdentityBuilder |
identityBuilder |
The Microsoft.AspNetCore.Identity.IdentityBuilder
|
Returns
Type |
Description |
Microsoft.AspNetCore.Identity.IdentityBuilder |
The current Microsoft.AspNetCore.Identity.IdentityBuilder instance.
|
Type Parameters
Name |
Description |
TInterface |
The sign in manager interface
|
TSignInManager |
The sign in manager type
|
View Source
AddTwoFactorProvider<T>(MemberIdentityBuilder, String)
Declaration
public static MemberIdentityBuilder AddTwoFactorProvider<T>(this MemberIdentityBuilder identityBuilder, string providerName)
where T : class, ITwoFactorProvider
Parameters
Returns
Type Parameters
View Source
AddUserStore<TInterface, TStore>(IdentityBuilder, Func<IServiceProvider, TStore>)
Declaration
public static IdentityBuilder AddUserStore<TInterface, TStore>(this IdentityBuilder identityBuilder, Func<IServiceProvider, TStore> implementationFactory)
where TStore : class, TInterface
Parameters
Type |
Name |
Description |
Microsoft.AspNetCore.Identity.IdentityBuilder |
identityBuilder |
|
Func<IServiceProvider, TStore> |
implementationFactory |
|
Returns
Type |
Description |
Microsoft.AspNetCore.Identity.IdentityBuilder |
|
Type Parameters
Name |
Description |
TInterface |
|
TStore |
|