Esempio n. 1
0
 public AuthController(IHttpContextAccessor accessor, ITimeService time, MilvanethDbContext context, IAuthentication auth, IPowService pow, ISrp6Service srp, IApiKeySignService api)
 {
     _accessor  = accessor;
     _time      = time;
     _context   = context;
     _auth      = auth;
     _pow       = pow;
     _srp       = srp;
     _api       = api;
     _authToken = _context.KeyUsage.Single(x => x.Name == "Auth Token");
 }
Esempio n. 2
0
 public AccountController(IHttpContextAccessor accessor, ITimeService time, MilvanethDbContext context, IAuthentication auth, IPowService pow, ISrp6Service srp, IApiKeySignService api, ITokenSignService token, IVerifyMailService mail, IRepository repo)
 {
     _accessor      = accessor;
     _time          = time;
     _context       = context;
     _auth          = auth;
     _pow           = pow;
     _srp           = srp;
     _api           = api;
     _token         = token;
     _mail          = mail;
     _repo          = repo;
     _userPrivilege = _context.PrivilegeConfig.Single(x => x.Name == "User");
     _changeToken   = _context.KeyUsage.Single(x => x.Name == "Password Change Token");
 }
Esempio n. 3
0
 public DataController(IHttpContextAccessor accessor, ITimeService time, MilvanethDbContext context, IAuthentication auth, IPowService pow, ISrp6Service srp, IApiKeySignService api, ITokenSignService token, IVerifyMailService mail, IRepository repo)
 {
     _time    = time;
     _context = context;
     _auth    = auth;
     _token   = token;
     _repo    = repo;
 }