public ApiOwinAuthConfig( ILoginSessionRepository loginSessionRepository, IAuthKeyRepository authKeyRepository, IUserRepository userRepository, IHashingService hashingService) { _loginSessionRepository = loginSessionRepository; _authKeyRepository = authKeyRepository; _userRepository = userRepository; _hashingService = hashingService; }
public ApiAuthorizationProvider( ILoginSessionRepository loginSessionRepository, IAuthKeyRepository authKeyRepository, IUserRepository userRepository, IHashingService hashingService, string publicClientId) { if (publicClientId == null) throw new ArgumentNullException("publicClientId"); _loginSessionRepository = loginSessionRepository; _authKeyRepository = authKeyRepository; _userRepository = userRepository; _hashingService = hashingService; _publicClientId = publicClientId; }
public ApiAuthorizationProvider( ILoginSessionRepository loginSessionRepository, IAuthKeyRepository authKeyRepository, IUserRepository userRepository, IHashingService hashingService, string publicClientId) { if (publicClientId == null) { throw new ArgumentNullException("publicClientId"); } _loginSessionRepository = loginSessionRepository; _authKeyRepository = authKeyRepository; _userRepository = userRepository; _hashingService = hashingService; _publicClientId = publicClientId; }
public LoginSessionService() { loginSessionRepository = new LoginSessionRepository(); }