public ApplicationRegistrationRequest(
     ConfigurationDbContext configContext,
     IHttpContextAccessor contextAccessor,
     ISecurityUtils securityUtils)
 {
     this.configContext   = configContext;
     this.securityUtils   = securityUtils;
     this.contextAccessor = contextAccessor;
     this.user            = contextAccessor.HttpContext.User;
 }
Exemplo n.º 2
0
 public AuthService(
     PitcherContext context,
     IConfiguration config,
     ISecurityUtils secUtils,
     UserManager <IdentityUser> userManager,
     SignInManager <IdentityUser> signInManager)
 {
     this.context       = context;
     this.config        = config;
     this.secUtils      = secUtils;
     this.userManager   = userManager;
     this.signInManager = signInManager;
 }
 public ProjectService(PitcherContext context, IUserService userService, ISecurityUtils secUtils)
 {
     _userService = userService;
     _context     = context;
     _secUtils    = secUtils;
 }
Exemplo n.º 4
0
 public UserService(PitcherContext context, ISecurityUtils secUtils)
 {
     _context  = context;
     _secUtils = secUtils;
 }
Exemplo n.º 5
0
 public string?CreateHash(
     [Service] ISecurityUtils securityUtils,
     CreateHashInput input)
 {
     return(securityUtils.CreateHash(input.Value, input.Alg));
 }