Ejemplo n.º 1
0
 public UserRepository(BrewContext brewContext, IBrewViewAuthentication authentication,
                       ILogger <UserRepository> logger)
 {
     m_brewContext    = brewContext;
     m_authentication = authentication;
     m_logger         = logger;
     m_hasher         = new PasswordHasher();
 }
Ejemplo n.º 2
0
 public AuthenticationService(IGoogleAuthentication googleAuthentication,
                              IBrewViewAuthentication brewViewAuthentication, ILogger <AuthenticationService> logger)
 {
     m_googleAuthentication   = googleAuthentication;
     m_brewViewAuthentication = brewViewAuthentication;
     m_logger       = logger;
     m_tokenHandler = new JwtSecurityTokenHandler();
 }