public Fido2RecoveryCommand(IFido2 fido2, ICacheItemRepository cacheItemRepository,
                             IOwnIdCoreConfiguration configuration, IIdentitiesProvider identitiesProvider,
                             IEncodingService encodingService, IAccountRecoveryHandler recoveryHandler) : base(fido2,
                                                                                                               cacheItemRepository, configuration, identitiesProvider, encodingService)
 {
     _recoveryHandler = recoveryHandler;
 }
 public StartFlowWithPinTransitionHandler(StartFlowCommand startFlowCommand, StopFlowCommand stopFlowCommand,
                                          IJwtComposer jwtComposer, IIdentitiesProvider identitiesProvider, IUrlProvider urlProvider,
                                          SetPinCommand setPinCommand) : base(startFlowCommand, stopFlowCommand, jwtComposer, identitiesProvider,
                                                                              urlProvider)
 {
     _setPinCommand = setPinCommand;
 }
 public StartFlowTransitionHandler(StartFlowCommand startFlowCommand, StopFlowCommand stopFlowCommand,
                                   IJwtComposer jwtComposer, IIdentitiesProvider identitiesProvider, IUrlProvider urlProvider) : base(
         jwtComposer, stopFlowCommand, urlProvider, false)
 {
     StartFlowCommand   = startFlowCommand;
     IdentitiesProvider = identitiesProvider;
 }
示例#4
0
 public Fido2UpgradeConnectionCommand(IFido2 fido2, ICacheItemRepository cacheItemRepository,
                                      IOwnIdCoreConfiguration configuration, IIdentitiesProvider identitiesProvider,
                                      IEncodingService encodingService, IUserHandlerAdapter userHandlerAdapter) : base(fido2, cacheItemRepository,
                                                                                                                       configuration, identitiesProvider, encodingService)
 {
     _userHandlerAdapter = userHandlerAdapter;
 }
示例#5
0
 public Fido2LinkCommand(IFido2 fido2, ICacheItemRepository cacheItemRepository,
                         IOwnIdCoreConfiguration configuration, IIdentitiesProvider identitiesProvider,
                         IEncodingService encodingService, IAccountLinkHandler linkHandler) : base(fido2, cacheItemRepository,
                                                                                                   configuration, identitiesProvider, encodingService)
 {
     _linkHandler = linkHandler;
 }
 public Fido2RegisterCommand(IFido2 fido2, ICacheItemRepository cacheItemRepository,
                             IOwnIdCoreConfiguration configuration, IIdentitiesProvider identitiesProvider,
                             IEncodingService encodingService)
 {
     _fido2 = fido2;
     CacheItemRepository = cacheItemRepository;
     _configuration      = configuration;
     _identitiesProvider = identitiesProvider;
     _encodingService    = encodingService;
 }
 public CreateFlowCommand(ICacheItemRepository cacheItemRepository, IUrlProvider urlProvider,
                          IIdentitiesProvider identitiesProvider, IOwnIdCoreConfiguration configuration,
                          IAccountLinkHandler linkHandler = null, IMagicLinkConfiguration magicLinkConfiguration = null)
 {
     _cacheItemRepository = cacheItemRepository;
     _urlProvider         = urlProvider;
     _identitiesProvider  = identitiesProvider;
     _configuration       = configuration;
     _linkHandler         = linkHandler;
     _magicLinkEnabled    = magicLinkConfiguration?.RedirectUrl != null;
 }
 public AcceptStartTransitionHandler(IJwtComposer jwtComposer, StopFlowCommand stopFlowCommand,
                                     IUrlProvider urlProvider, IOwnIdCoreConfiguration coreConfiguration,
                                     TrySwitchToFido2FlowCommand trySwitchToFido2FlowCommand,
                                     SetNewEncryptionTokenCommand setNewEncryptionTokenCommand, IIdentitiesProvider identitiesProvider,
                                     VerifyFido2CredentialIdCommand verifyFido2CredentialIdCommand) : base(jwtComposer, stopFlowCommand,
                                                                                                           urlProvider)
 {
     _coreConfiguration              = coreConfiguration;
     _trySwitchToFido2FlowCommand    = trySwitchToFido2FlowCommand;
     _setNewEncryptionTokenCommand   = setNewEncryptionTokenCommand;
     _identitiesProvider             = identitiesProvider;
     _verifyFido2CredentialIdCommand = verifyFido2CredentialIdCommand;
 }
示例#9
0
 public SendMagicLinkCommand(ICacheItemRepository cacheItemRepository, IUserHandlerAdapter userHandlerAdapter,
                             IIdentitiesProvider identitiesProvider, IEmailService emailService,
                             IMagicLinkConfiguration magicLinkConfiguration, IOwnIdCoreConfiguration ownIdCoreConfiguration,
                             ILocalizationService localizationService)
 {
     _cacheItemRepository    = cacheItemRepository;
     _userHandlerAdapter     = userHandlerAdapter;
     _identitiesProvider     = identitiesProvider;
     _emailService           = emailService;
     _magicLinkConfiguration = magicLinkConfiguration;
     _ownIdCoreConfiguration = ownIdCoreConfiguration;
     _localizationService    = localizationService;
     _tokenExpiration        = TimeSpan.FromMilliseconds(magicLinkConfiguration.TokenLifetime);
 }
示例#10
0
 public RecoverAcceptStartTransitionHandler(IJwtComposer jwtComposer, StopFlowCommand stopFlowCommand,
                                            IUrlProvider urlProvider, IOwnIdCoreConfiguration coreConfiguration,
                                            TrySwitchToFido2FlowCommand trySwitchToFido2FlowCommand, RecoverAccountCommand recoverAccountCommand,
                                            SetNewEncryptionTokenCommand setNewEncryptionTokenCommand, IIdentitiesProvider identitiesProvider,
                                            VerifyFido2CredentialIdCommand verifyFido2CredentialIdCommand) : base(jwtComposer, stopFlowCommand,
                                                                                                                  urlProvider, coreConfiguration, trySwitchToFido2FlowCommand, setNewEncryptionTokenCommand,
                                                                                                                  identitiesProvider, verifyFido2CredentialIdCommand)
 {
     _recoverAccountCommand = recoverAccountCommand;
 }