public ApiOwinAuthConfig(
     ILoginSessionRepository loginSessionRepository,
     IAuthKeyRepository authKeyRepository,
     IUserRepository userRepository,
     IHashingService hashingService)
 {
     _loginSessionRepository = loginSessionRepository;
     _authKeyRepository = authKeyRepository;
     _userRepository = userRepository;
     _hashingService = hashingService;
 }
예제 #2
0
 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;
        }
예제 #4
0
        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();
 }