Exemple #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 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;
 }
Exemple #3
0
 public GetTokenByResourceOwnerCredentialsGrantTypeAction(
     IGrantedTokenGeneratorHelper grantedTokenGeneratorHelper,
     IScopeValidator scopeValidator,
     IResourceOwnerAuthenticateHelper resourceOwnerAuthenticateHelper,
     IOAuthEventSource oauthEventSource,
     IAuthenticateClient authenticateClient,
     IJwtGenerator jwtGenerator,
     IAuthenticateInstructionGenerator authenticateInstructionGenerator,
     IClientRepository clientRepository,
     IClientHelper clientHelper,
     ITokenStore tokenStore,
     IGrantedTokenHelper grantedTokenHelper)
 {
     _grantedTokenGeneratorHelper = grantedTokenGeneratorHelper;
     _scopeValidator = scopeValidator;
     _resourceOwnerAuthenticateHelper = resourceOwnerAuthenticateHelper;
     _oauthEventSource   = oauthEventSource;
     _authenticateClient = authenticateClient;
     _jwtGenerator       = jwtGenerator;
     _authenticateInstructionGenerator = authenticateInstructionGenerator;
     _clientRepository   = clientRepository;
     _clientHelper       = clientHelper;
     _tokenStore         = tokenStore;
     _grantedTokenHelper = grantedTokenHelper;
 }
 public AuthorizationActions(
     IGetAuthorizationCodeOperation getAuthorizationCodeOperation,
     IGetTokenViaImplicitWorkflowOperation getTokenViaImplicitWorkflowOperation,
     IGetAuthorizationCodeAndTokenViaHybridWorkflowOperation getAuthorizationCodeAndTokenViaHybridWorkflowOperation,
     IAuthorizationCodeGrantTypeParameterAuthEdpValidator authorizationCodeGrantTypeParameterValidator,
     IParameterParserHelper parameterParserHelper,
     IOAuthEventSource oauthEventSource,
     IAuthorizationFlowHelper authorizationFlowHelper,
     IEventPublisher eventPublisher,
     IPayloadSerializer payloadSerializer,
     IAmrHelper amrHelper,
     IResourceOwnerAuthenticateHelper resourceOwnerAuthenticateHelper)
 {
     _getAuthorizationCodeOperation        = getAuthorizationCodeOperation;
     _getTokenViaImplicitWorkflowOperation = getTokenViaImplicitWorkflowOperation;
     _getAuthorizationCodeAndTokenViaHybridWorkflowOperation =
         getAuthorizationCodeAndTokenViaHybridWorkflowOperation;
     _authorizationCodeGrantTypeParameterValidator = authorizationCodeGrantTypeParameterValidator;
     _parameterParserHelper   = parameterParserHelper;
     _oauthEventSource        = oauthEventSource;
     _authorizationFlowHelper = authorizationFlowHelper;
     _eventPublisher          = eventPublisher;
     _payloadSerializer       = payloadSerializer;
     _amrHelper = amrHelper;
     _resourceOwnerAuthenticateHelper = resourceOwnerAuthenticateHelper;
 }
 public LocalOpenIdUserAuthenticationAction(
     IResourceOwnerAuthenticateHelper resourceOwnerAuthenticateHelper,
     IAuthenticateHelper authenticateHelper)
 {
     _resourceOwnerAuthenticateHelper = resourceOwnerAuthenticateHelper;
     _authenticateHelper = authenticateHelper;
 }
Exemple #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;
 }
Exemple #7
0
 private void InitializeFakeObjects()
 {
     _amrHelperStub = new Mock <IAmrHelper>();
     _resourceOwnerAuthenticateHelper = new ResourceOwnerAuthenticateHelper(null, _amrHelperStub.Object);
 }
 public LoginPwdAuthenticateAction(IResourceOwnerAuthenticateHelper resourceOwnerAuthenticateHelper, IAuthenticateHelper authenticateHelper)
 {
     _resourceOwnerAuthenticateHelper = resourceOwnerAuthenticateHelper;
     _authenticateHelper = authenticateHelper;
 }