mirror of https://github.com/abpframework/abp.git
6 changed files with 74 additions and 2 deletions
@ -0,0 +1,27 @@ |
|||||
|
using System.Collections.Generic; |
||||
|
using Microsoft.AspNetCore.Http; |
||||
|
using Microsoft.AspNetCore.Identity; |
||||
|
using Microsoft.Extensions.Logging; |
||||
|
|
||||
|
namespace Volo.Abp.Identity |
||||
|
{ |
||||
|
public class IdentityRoleManager : RoleManager<IdentityRole> |
||||
|
{ |
||||
|
public IdentityRoleManager( |
||||
|
IRoleStore<IdentityRole> store, |
||||
|
IEnumerable<IRoleValidator<IdentityRole>> roleValidators, |
||||
|
ILookupNormalizer keyNormalizer, |
||||
|
IdentityErrorDescriber errors, |
||||
|
ILogger<IdentityRoleManager> logger, |
||||
|
IHttpContextAccessor contextAccessor) |
||||
|
: base( |
||||
|
store, |
||||
|
roleValidators, |
||||
|
keyNormalizer, |
||||
|
errors, |
||||
|
logger, |
||||
|
contextAccessor) |
||||
|
{ |
||||
|
} |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,35 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using Microsoft.AspNetCore.Builder; |
||||
|
using Microsoft.AspNetCore.Identity; |
||||
|
using Microsoft.Extensions.Logging; |
||||
|
using Microsoft.Extensions.Options; |
||||
|
|
||||
|
namespace Volo.Abp.Identity |
||||
|
{ |
||||
|
public class IdentityUserManager : UserManager<IdentityUser> |
||||
|
{ |
||||
|
public IdentityUserManager( |
||||
|
IUserStore<IdentityUser> store, |
||||
|
IOptions<IdentityOptions> optionsAccessor, |
||||
|
IPasswordHasher<IdentityUser> passwordHasher, |
||||
|
IEnumerable<IUserValidator<IdentityUser>> userValidators, |
||||
|
IEnumerable<IPasswordValidator<IdentityUser>> passwordValidators, |
||||
|
ILookupNormalizer keyNormalizer, IdentityErrorDescriber errors, |
||||
|
IServiceProvider services, |
||||
|
ILogger<IdentityUserManager> logger) |
||||
|
: base( |
||||
|
store, |
||||
|
optionsAccessor, |
||||
|
passwordHasher, |
||||
|
userValidators, |
||||
|
passwordValidators, |
||||
|
keyNormalizer, |
||||
|
errors, |
||||
|
services, |
||||
|
logger) |
||||
|
{ |
||||
|
|
||||
|
} |
||||
|
} |
||||
|
} |
||||
Loading…
Reference in new issue