-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
dev.soheilalizadeh
committed
Dec 19, 2018
1 parent
23362d2
commit 5db49c6
Showing
4 changed files
with
76 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using System.Collections.Generic; | ||
using App.Domain.Identity; | ||
using Microsoft.AspNetCore.Identity; | ||
using Microsoft.Extensions.Logging; | ||
|
||
namespace App.Services.Identity.Managers | ||
{ | ||
public class AppRoleManager : RoleManager<Role> | ||
{ | ||
public AppRoleManager( | ||
IRoleStore<Role> store, | ||
IEnumerable<IRoleValidator<Role>> roleValidators, | ||
ILookupNormalizer keyNormalizer, | ||
IdentityErrorDescriber errors, | ||
ILogger<RoleManager<Role>> logger | ||
) : base(store, roleValidators, keyNormalizer, errors, logger) | ||
{ | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using App.Domain.Identity; | ||
using Microsoft.AspNetCore.Authentication; | ||
using Microsoft.AspNetCore.Http; | ||
using Microsoft.AspNetCore.Identity; | ||
using Microsoft.Extensions.Logging; | ||
using Microsoft.Extensions.Options; | ||
|
||
namespace App.Services.Identity.Managers | ||
{ | ||
public class AppSignInManager : SignInManager<User> | ||
{ | ||
public AppSignInManager( | ||
UserManager<User> userManager, | ||
IHttpContextAccessor contextAccessor, | ||
IUserClaimsPrincipalFactory<User> claimsFactory, | ||
IOptions<IdentityOptions> optionsAccessor, | ||
ILogger<SignInManager<User>> logger, | ||
IAuthenticationSchemeProvider schemes | ||
) : base(userManager, contextAccessor, claimsFactory, optionsAccessor, logger, schemes) | ||
{ | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using App.Domain.Identity; | ||
using Microsoft.AspNetCore.Identity; | ||
using Microsoft.Extensions.Logging; | ||
using Microsoft.Extensions.Options; | ||
|
||
namespace App.Services.Identity.Managers | ||
{ | ||
public class AppUserManager : UserManager<User> | ||
{ | ||
public AppUserManager( | ||
IUserStore<User> store, | ||
IOptions<IdentityOptions> optionsAccessor, | ||
IPasswordHasher<User> passwordHasher, | ||
IEnumerable<IUserValidator<User>> userValidators, | ||
IEnumerable<IPasswordValidator<User>> passwordValidators, | ||
ILookupNormalizer keyNormalizer, | ||
IdentityErrorDescriber errors, | ||
IServiceProvider services, | ||
ILogger<UserManager<User>> logger | ||
) : base(store, optionsAccessor, passwordHasher, userValidators, passwordValidators, keyNormalizer, errors, | ||
services, logger) | ||
{ | ||
} | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters