Exemplo n.º 1
0
 public CompleteRegistrationResponseGenerator(
     IDevicePasswordHasher devicePasswordHasher,
     ISystemClock systemClock,
     IUserDeviceStore userDeviceStore
 ) {
     UserDeviceStore = userDeviceStore ?? throw new ArgumentNullException(nameof(userDeviceStore));
     DevicePasswordHasher = devicePasswordHasher;
     SystemClock = systemClock ?? throw new ArgumentNullException(nameof(systemClock));
 }
Exemplo n.º 2
0
 public TrustedDeviceExtensionGrantValidator(
     IAuthorizationCodeChallengeStore codeChallengeStore,
     IDevicePasswordHasher devicePasswordHasher,
     ISystemClock systemClock,
     IUserDeviceStore userDeviceStore
     )
 {
     CodeChallengeStore   = codeChallengeStore ?? throw new ArgumentNullException(nameof(codeChallengeStore));
     DevicePasswordHasher = devicePasswordHasher ?? throw new ArgumentNullException(nameof(devicePasswordHasher));
     SystemClock          = systemClock ?? throw new ArgumentNullException(nameof(systemClock));
     UserDeviceStore      = userDeviceStore ?? throw new ArgumentNullException(nameof(userDeviceStore));
 }