Example #1
0
 public SessionController(IHttpContextAccessor accessor, ITimeService time, MilvanethDbContext context, IAuthentication auth, IApiKeySignService api, ITokenSignService token)
 {
     _accessor    = accessor;
     _time        = time;
     _context     = context;
     _auth        = auth;
     _api         = api;
     _token       = token;
     _changeToken = _context.KeyUsage.Single(x => x.Name == "Password Change Token");
     _renewToken  = _context.KeyUsage.Single(x => x.Name == "Renew Token");
 }
Example #2
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");
 }
Example #3
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");
 }
Example #4
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;
 }