Exemplo 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;
 }
Exemplo n.º 2
0
 public BaseAuthenticateController(
     IOpenidAuthenticateResourceOwnerAction openidAuthenticateResourceOwnerAction,
     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,
     BasicAuthenticateOptions basicAuthenticateOptions) : base(authenticationService)
 {
     _openidAuthenticateResourceOwnerAction = openidAuthenticateResourceOwnerAction;
     _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;
 }
 public AuthenticateController(
     IOpenidAuthenticateResourceOwnerAction openidAuthenticateResourceOwnerAction,
     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,
     IChangePasswordAction changePasswordAction,
     ILoginPwdAuthenticateAction loginPwdAuthenticateAction,
     LoginPasswordOptions basicAuthenticateOptions) : base(openidAuthenticateResourceOwnerAction, profileActions, dataProtectionProvider, encoder,
                                                           translationManager, simpleIdentityServerEventSource, urlHelperFactory, actionContextAccessor, eventPublisher,
                                                           authenticationService, authenticationSchemeProvider, userActions, payloadSerializer, configurationService,
                                                           authenticateHelper, basicAuthenticateOptions)
 {
     _resourceOwnerAuthenticateHelper = resourceOwnerAuthenticateHelper;
     _changePasswordAction            = changePasswordAction;
     _loginPwdAuthenticateAction      = loginPwdAuthenticateAction;
 }
Exemplo n.º 4
0
 public AuthenticateController(
     IAuthenticateActions authenticateActions,
     IDataProtectionProvider dataProtectionProvider,
     IEncoder encoder,
     ITranslationManager translationManager,
     ISimpleIdentityServerEventSource simpleIdentityServerEventSource,
     IUrlHelperFactory urlHelperFactory,
     IActionContextAccessor actionContextAccessor,
     IEventPublisher eventPublisher,
     IAuthenticationService authenticationService,
     IAuthenticationSchemeProvider authenticationSchemeProvider,
     IUserActions userActions,
     IPayloadSerializer payloadSerializer,
     AuthenticateOptions authenticateOptions,
     IConfigurationService configurationService,
     IAuthenticateHelper authenticateHelper) : base(authenticationService, authenticateOptions)
 {
     _authenticateActions             = authenticateActions;
     _dataProtector                   = dataProtectionProvider.CreateProtector("Request");
     _encoder                         = encoder;
     _translationManager              = translationManager;
     _simpleIdentityServerEventSource = simpleIdentityServerEventSource;
     _urlHelper                       = urlHelperFactory.GetUrlHelper(actionContextAccessor.ActionContext);
     _eventPublisher                  = eventPublisher;
     _payloadSerializer               = payloadSerializer;
     _authenticationSchemeProvider    = authenticationSchemeProvider;
     _configurationService            = configurationService;
     _authenticateHelper              = authenticateHelper;
 }
 public LocalOpenIdUserAuthenticationAction(
     IResourceOwnerAuthenticateHelper resourceOwnerAuthenticateHelper,
     IAuthenticateHelper authenticateHelper)
 {
     _resourceOwnerAuthenticateHelper = resourceOwnerAuthenticateHelper;
     _authenticateHelper = authenticateHelper;
 }
Exemplo n.º 6
0
 public AuthenticateController(
     IOpenidAuthenticateResourceOwnerAction openidAuthenticateResourceOwnerAction,
     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,
     ISmsAuthenticationOperation smsAuthenticationOperation,
     IGenerateAndSendSmsCodeOperation generateAndSendSmsCodeOperation,
     IResourceOwnerAuthenticateHelper resourceOwnerAuthenticateHelper,
     SmsAuthenticationOptions basicAuthenticateOptions) : base(openidAuthenticateResourceOwnerAction, profileActions, dataProtectionProvider, encoder,
                                                               translationManager, simpleIdentityServerEventSource, urlHelperFactory, actionContextAccessor, eventPublisher,
                                                               authenticationService, authenticationSchemeProvider, userActions, payloadSerializer, configurationService,
                                                               authenticateHelper, basicAuthenticateOptions)
 {
     _smsAuthenticationOperation      = smsAuthenticationOperation;
     _generateAndSendSmsCodeOperation = generateAndSendSmsCodeOperation;
     _resourceOwnerAuthenticateHelper = resourceOwnerAuthenticateHelper;
 }
 public LocalOpenIdUserAuthenticationAction(
     IAuthenticateResourceOwnerService authenticateResourceOwnerService,
     IResourceOwnerRepository resourceOwnerRepository,
     IAuthenticateHelper authenticateHelper)
 {
     _authenticateResourceOwnerService = authenticateResourceOwnerService;
     _resourceOwnerRepository          = resourceOwnerRepository;
     _authenticateHelper = authenticateHelper;
 }
 public AuthenticateResourceOwnerOpenIdAction(
     IParameterParserHelper parameterParserHelper,
     IActionResultFactory actionResultFactory,
     IAuthenticateHelper authenticateHelper)
 {
     _parameterParserHelper = parameterParserHelper;
     _actionResultFactory   = actionResultFactory;
     _authenticateHelper    = authenticateHelper;
 }
Exemplo n.º 9
0
 public ExternalOpenIdUserAuthenticationAction(
     IAuthenticateHelper authenticateHelper,
     IResourceOwnerRepository resourceOwnerRepository,
     IAuthenticateResourceOwnerService authenticateResourceOwnerService,
     IClaimRepository claimRepository)
 {
     _authenticateHelper               = authenticateHelper;
     _resourceOwnerRepository          = resourceOwnerRepository;
     _authenticateResourceOwnerService = authenticateResourceOwnerService;
     _claimRepository = claimRepository;
 }
 private void InitializeFakeObjects()
 {
     _parameterParserHelperFake         = new Mock <IParameterParserHelper>();
     _actionResultFactoryFake           = new Mock <IActionResultFactory>();
     _consentHelperFake                 = new Mock <IConsentHelper>();
     _generateAuthorizationResponseFake = new Mock <IGenerateAuthorizationResponse>();
     _clientRepositoryStub              = new Mock <IClientRepository>();
     _authenticateHelper                = new AuthenticateHelper(
         _parameterParserHelperFake.Object,
         _actionResultFactoryFake.Object,
         _consentHelperFake.Object,
         _generateAuthorizationResponseFake.Object,
         _clientRepositoryStub.Object);
 }
 public UserProfileController(IOptions <AppSettings> _appSettings, IAuthenticateHelper _authHelper)
 {
     appSettings = _appSettings.Value;
     facade      = new UserProfileFacade(appSettings.VotingPlatformConnectionString, appSettings.KunciRahasiaAES);
     authHelper  = _authHelper;
 }
 public LoginPwdAuthenticateAction(IResourceOwnerAuthenticateHelper resourceOwnerAuthenticateHelper, IAuthenticateHelper authenticateHelper)
 {
     _resourceOwnerAuthenticateHelper = resourceOwnerAuthenticateHelper;
     _authenticateHelper = authenticateHelper;
 }
Exemplo n.º 13
0
 public CategoryController(IOptions <AppSettings> _appSettings, IAuthenticateHelper _authHelper)
 {
     appSettings = _appSettings.Value;
     facade      = new CategoryFacade(appSettings.VotingPlatformConnectionString);
     authHelper  = _authHelper;
 }
 public OpenIdLocalAuthenticateAction(ILocalAuthenticateAction localAuthenticateAction, IAuthenticateHelper authenticateHelper)
 {
     _localAuthenticateAction = localAuthenticateAction;
     _authenticateHelper      = authenticateHelper;
 }