Exemplo n.º 1
0
 public ContactController(IDataHandler handler, IAuthTokenFactory factory)
 {
     _handler = handler;
     _factory = factory;
     //_dbProvider = new RedisDbProvider("localhost");
     //_handler = new GoogleResourceHandler();
     //_factory = new SingleAuthTokenFactory();
 }
Exemplo n.º 2
0
 public AppUserAuthorizationService(IAuthTokenFactory tokenFactory, UserManager <AppUser> userManager,
                                    WavesDbContext context, IRolePolicyService policyService, SignInManager <AppUser> signInManager) : base(tokenFactory)
 {
     _context       = context;
     _userManager   = userManager;
     _policyService = policyService;
     _signInManager = signInManager;
 }
Exemplo n.º 3
0
 public AppUserAuthorizationService(
     IAuthTokenFactory tokenFactory,
     UserManager <AppUser> userManager,
     SignInManager <AppUser> signInManager,
     ICompanyService companyService)
     : base(tokenFactory)
 {
     _userManager    = userManager;
     _signInManager  = signInManager;
     _companyService = companyService;
 }
Exemplo n.º 4
0
 public AuthService(AppUserRepository users, IAuthTokenFactory tokenFactory, IRefreshTokenFactory refreshTokenFactory)
 {
     this.usersRepository     = users;
     this.tokenFactory        = tokenFactory;
     this.refreshTokenFactory = refreshTokenFactory;
 }
Exemplo n.º 5
0
 public AuthController(IAuthService authService, IAuthTokenFactory tokenFactory, IMapper mapper)
 {
     this.authService  = authService;
     this.tokenFactory = tokenFactory;
     this.mapper       = mapper;
 }
 public BaseAuthorizationService(IAuthTokenFactory tokenFactory)
 {
     _tokenFactory = tokenFactory;
 }