Esempio n. 1
0
 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,
     IResourceOwnerAuthenticateHelper resourceOwnerAuthenticateHelper,
     ITwoFactorAuthenticationHandler twoFactorAuthenticationHandler,
     BasicAuthenticateOptions basicAuthenticateOptions) : base(authenticateActions, profileActions, dataProtectionProvider, encoder,
                                                               translationManager, simpleIdentityServerEventSource, urlHelperFactory, actionContextAccessor, eventPublisher,
                                                               authenticationService, authenticationSchemeProvider, userActions, payloadSerializer, configurationService,
                                                               authenticateHelper, twoFactorAuthenticationHandler, basicAuthenticateOptions)
 {
     _resourceOwnerAuthenticateHelper = resourceOwnerAuthenticateHelper;
 }
 public BaseAuthenticateController(
     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,
     BasicAuthenticateOptions basicAuthenticateOptions) : base(authenticationService)
 {
     _authenticateActions             = authenticateActions;
     _profileActions                  = profileActions;
     _dataProtector                   = dataProtectionProvider.CreateProtector("Request");
     _encoder                         = encoder;
     _translationManager              = translationManager;
     _simpleIdentityServerEventSource = simpleIdentityServerEventSource;
     _urlHelper                       = urlHelperFactory.GetUrlHelper(actionContextAccessor.ActionContext);
     _eventPublisher                  = eventPublisher;
     _payloadSerializer               = payloadSerializer;
     _authenticationSchemeProvider    = authenticationSchemeProvider;
     _userActions                     = userActions;
     _configurationService            = configurationService;
     _authenticateHelper              = authenticateHelper;
     _basicAuthenticateOptions        = basicAuthenticateOptions;
     _twoFactorAuthenticationHandler  = twoFactorAuthenticationHandler;
 }
 public AuthenticateController(IAuthenticateActions authenticateActions, IDataProtectionProvider dataProtectionProvider,
                               IUrlHelperFactory urlHelperFactory, IActionContextAccessor actionContextAccessor)
 {
     _authenticateActions = authenticateActions;
     _dataProtector       = dataProtectionProvider.CreateProtector("Request");
     _urlHelper           = urlHelperFactory.GetUrlHelper(actionContextAccessor.ActionContext);
 }
Esempio n. 4
0
 public AuthenticateController(
     IAuthenticateActions authenticateActions,
     IDataProtectionProvider dataProtectionProvider,
     IEncoder encoder,
     ITranslationManager translationManager,
     ISimpleIdentityServerEventSource simpleIdentityServerEventSource,
     IUrlHelperFactory urlHelperFactory,
     IActionContextAccessor actionContextAccessor,
     IEventAggregateRepository eventAggregateRepository,
     IEventPublisher eventPublisher,
     IAuthenticationService authenticationService,
     IAuthenticationSchemeProvider authenticationSchemeProvider,
     IUserActions userActions,
     IPayloadSerializer payloadSerializer,
     AuthenticateOptions authenticateOptions,
     IConfigurationService configurationService,
     ILoginActions loginActions,
     EidAuthenticateOptions eidAuthenticateOptions) : base(authenticationService, userActions, authenticateOptions)
 {
     _authenticateActions             = authenticateActions;
     _dataProtector                   = dataProtectionProvider.CreateProtector("Request");
     _encoder                         = encoder;
     _translationManager              = translationManager;
     _simpleIdentityServerEventSource = simpleIdentityServerEventSource;
     _urlHelper                       = urlHelperFactory.GetUrlHelper(actionContextAccessor.ActionContext);
     _eventAggregateRepository        = eventAggregateRepository;
     _eventPublisher                  = eventPublisher;
     _payloadSerializer               = payloadSerializer;
     _authenticationSchemeProvider    = authenticationSchemeProvider;
     _configurationService            = configurationService;
     _loginActions                    = loginActions;
     _eidAuthenticateOptions          = eidAuthenticateOptions;
 }
Esempio n. 5
0
 public AuthenticateController(
     IAuthenticateActions authenticateActions,
     IDataProtectionProvider dataProtectionProvider,
     ITranslationManager translationManager)
 {
     _dataProtector       = dataProtectionProvider.CreateProtector("Request");
     _authenticateActions = authenticateActions;
 }
Esempio n. 6
0
 private void InitializeFakeObjects()
 {
     _authenticateResourceOwnerActionFake     = new Mock <IAuthenticateResourceOwnerOpenIdAction>();
     _localOpenIdUserAuthenticationActionFake = new Mock <ILocalOpenIdUserAuthenticationAction>();
     _generateAndSendCodeActionStub           = new Mock <IGenerateAndSendCodeAction>();
     _validateConfirmationCodeActionStub      = new Mock <IValidateConfirmationCodeAction>();
     _removeConfirmationCodeActionStub        = new Mock <IRemoveConfirmationCodeAction>();
     _authenticateActions = new AuthenticateActions(
         _authenticateResourceOwnerActionFake.Object,
         _localOpenIdUserAuthenticationActionFake.Object,
         _generateAndSendCodeActionStub.Object,
         _validateConfirmationCodeActionStub.Object,
         _removeConfirmationCodeActionStub.Object);
 }
 public AuthenticateController(
     IAuthenticateActions authenticateActions,
     IDataProtectionProvider dataProtectionProvider,
     IEncoder encoder,
     ITranslationManager translationManager,
     ISimpleIdentityServerEventSource simpleIdentityServerEventSource,
     IUrlHelperFactory urlHelperFactory,
     IActionContextAccessor actionContextAccessor,
     IEventAggregateRepository eventAggregateRepository,
     IEventPublisher eventPublisher)
 {
     _authenticateActions             = authenticateActions;
     _dataProtector                   = dataProtectionProvider.CreateProtector("Request");
     _encoder                         = encoder;
     _translationManager              = translationManager;
     _simpleIdentityServerEventSource = simpleIdentityServerEventSource;
     _urlHelper                       = urlHelperFactory.GetUrlHelper(actionContextAccessor.ActionContext);
     _eventAggregateRepository        = eventAggregateRepository;
     _eventPublisher                  = eventPublisher;
 }