Esempio n. 1
0
 public GenerateAndSendSmsCodeOperation(IConfirmationCodeStore confirmationCodeStore, SmsAuthenticationOptions smsAuthenticationOptions, ITwilioClient twilioClient, IOpenIdEventSource eventSource)
 {
     _confirmationCodeStore    = confirmationCodeStore;
     _smsAuthenticationOptions = smsAuthenticationOptions;
     _twilioClient             = twilioClient;
     _eventSource = eventSource;
 }
 private void InitializeFakeObjects()
 {
     _generateAndSendSmsCodeOperationStub = new Mock <IGenerateAndSendSmsCodeOperation>();
     _userActionsStub            = new Mock <IUserActions>();
     _smsAuthenticationOptions   = new SmsAuthenticationOptions();
     _smsAuthenticationOperation = new SmsAuthenticationOperation(_generateAndSendSmsCodeOperationStub.Object, _userActionsStub.Object, _smsAuthenticationOptions);
 }
Esempio n. 3
0
 public SmsAuthenticationOperation(IGenerateAndSendSmsCodeOperation generateAndSendSmsCodeOperation, IResourceOwnerRepository resourceOwnerRepository, IUserActions userActions, ISubjectBuilder subjectBuilder,
                                   SmsAuthenticationOptions smsAuthenticationOptions)
 {
     _generateAndSendSmsCodeOperation = generateAndSendSmsCodeOperation;
     _resourceOwnerRepository         = resourceOwnerRepository;
     _userActions = userActions;
 }
 public AuthenticateController(
     IAuthenticateActions authenticateActions,
     IProfileActions profileActions,
     IDataProtectionProvider dataProtectionProvider,
     IEncoder encoder,
     ITranslationManager translationManager,
     IOpenIdEventSource simpleIdentityServerEventSource,
     IUrlHelperFactory urlHelperFactory,
     IActionContextAccessor actionContextAccessor,
     IEventPublisher eventPublisher,
     IAuthenticationService authenticationService,
     IAuthenticationSchemeProvider authenticationSchemeProvider,
     IUserActions userActions,
     IPayloadSerializer payloadSerializer,
     IConfigurationService configurationService,
     IAuthenticateHelper authenticateHelper,
     ITwoFactorAuthenticationHandler twoFactorAuthenticationHandler,
     ISmsAuthenticationOperation smsAuthenticationOperation,
     IGenerateAndSendSmsCodeOperation generateAndSendSmsCodeOperation,
     SmsAuthenticationOptions basicAuthenticateOptions) : base(authenticateActions, profileActions, dataProtectionProvider, encoder,
                                                               translationManager, simpleIdentityServerEventSource, urlHelperFactory, actionContextAccessor, eventPublisher,
                                                               authenticationService, authenticationSchemeProvider, userActions, payloadSerializer, configurationService,
                                                               authenticateHelper, twoFactorAuthenticationHandler, basicAuthenticateOptions)
 {
     _smsAuthenticationOperation      = smsAuthenticationOperation;
     _generateAndSendSmsCodeOperation = generateAndSendSmsCodeOperation;
 }
 private void InitializeFakeObjects()
 {
     _generateAndSendSmsCodeOperationStub = new Mock <IGenerateAndSendSmsCodeOperation>();
     _resourceOwnerRepositoryStub         = new Mock <IResourceOwnerRepository>();
     _subjectBuilderStub         = new Mock <ISubjectBuilder>();
     _userActionsStub            = new Mock <IUserActions>();
     _smsAuthenticationOptions   = new SmsAuthenticationOptions();
     _smsAuthenticationOperation = new SmsAuthenticationOperation(
         _generateAndSendSmsCodeOperationStub.Object,
         _resourceOwnerRepositoryStub.Object, _userActionsStub.Object, _subjectBuilderStub.Object, _smsAuthenticationOptions);
 }
 private void InitializeFakeObjects()
 {
     _confirmationCodeStoreStub = new Mock <IConfirmationCodeStore>();
     _smsAuthenticationOptions  = new SmsAuthenticationOptions
     {
         Message = _message
     };
     _twilioClientStub = new Mock <ITwilioClient>();
     _eventSourceStub  = new Mock <IOpenIdEventSource>();
     _generateAndSendSmsCodeOperation = new GenerateAndSendSmsCodeOperation(_confirmationCodeStoreStub.Object,
                                                                            _smsAuthenticationOptions,
                                                                            _twilioClientStub.Object,
                                                                            _eventSourceStub.Object);
 }
 public SmsAuthenticationOperation(IGenerateAndSendSmsCodeOperation generateAndSendSmsCodeOperation, IUserActions userActions, SmsAuthenticationOptions smsAuthenticationOptions)
 {
     _generateAndSendSmsCodeOperation = generateAndSendSmsCodeOperation;
     _userActions = userActions;
     _smsAuthenticationOptions = smsAuthenticationOptions;
 }