public GetTokenByAuthorizationCodeGrantTypeAction( IClientValidator clientValidator, IAuthorizationCodeStore authorizationCodeStore, IConfigurationService configurationService, IGrantedTokenGeneratorHelper grantedTokenGeneratorHelper, IAuthenticateClient authenticateClient, IClientHelper clientHelper, ISimpleIdentityServerEventSource simpleIdentityServerEventSource, IAuthenticateInstructionGenerator authenticateInstructionGenerator, ITokenStore tokenStore, IGrantedTokenHelper grantedTokenHelper, IJwtGenerator jwtGenerator) { _clientValidator = clientValidator; _authorizationCodeStore = authorizationCodeStore; _configurationService = configurationService; _grantedTokenGeneratorHelper = grantedTokenGeneratorHelper; _authenticateClient = authenticateClient; _clientHelper = clientHelper; _simpleIdentityServerEventSource = simpleIdentityServerEventSource; _authenticateInstructionGenerator = authenticateInstructionGenerator; _tokenStore = tokenStore; _grantedTokenHelper = grantedTokenHelper; _jwtGenerator = jwtGenerator; }
public DefaultAuthServer( IClientValidator clientValidator , ITokenGenerator tokenGenerator , IAuthCodeStore authCodeStore , ITokenInfoStore tokenStore , IStateStore stateStore , IAuthCodeGenerator authCodeGenerator , IResourceOwnerValidator resourceOwnerValidator , ILogger <DefaultAuthServer> logger , AuthServerOptions options , IPkceValidator pkceValidator , IConfiguration configuration ) { _clientValidator = clientValidator; _tokenGenerator = tokenGenerator; _resourceOwnerValidator = resourceOwnerValidator; _logger = logger; _authCodeStore = authCodeStore; _tokenStore = tokenStore; _stateStore = stateStore; _authCodeGenerator = authCodeGenerator; _pkceValidator = pkceValidator; _configuration = configuration; TokenRequestHandler = HandleTokenRequestAsync; AuthorizeRequestHandler = HandleAuthorizeRequestAsync; EndSessionRequestHandler = HandleEndSessionRequestAsync; ClearTokenRequestHandler = HandleClearTokenRequestAsync; AuthServerOptions = options; }
public GetTokenByClientCredentialsGrantTypeAction( IAuthenticateInstructionGenerator authenticateInstructionGenerator, IAuthenticateClient authenticateClient, IClientValidator clientValidator, IGrantedTokenGeneratorHelper grantedTokenGeneratorHelper, IScopeValidator scopeValidator, IOAuthEventSource oauthEventSource, IClientCredentialsGrantTypeParameterValidator clientCredentialsGrantTypeParameterValidator, IClientHelper clientHelper, IJwtGenerator jwtGenerator, ITokenStore tokenStore, IGrantedTokenHelper grantedTokenHelper) { _authenticateInstructionGenerator = authenticateInstructionGenerator; _authenticateClient = authenticateClient; _clientValidator = clientValidator; _grantedTokenGeneratorHelper = grantedTokenGeneratorHelper; _scopeValidator = scopeValidator; _oauthEventSource = oauthEventSource; _clientCredentialsGrantTypeParameterValidator = clientCredentialsGrantTypeParameterValidator; _clientHelper = clientHelper; _jwtGenerator = jwtGenerator; _tokenStore = tokenStore; _grantedTokenHelper = grantedTokenHelper; }
public AuthorizationCodeGrantTypeParameterAuthEdpValidator( IParameterParserHelper parameterParserHelper, IClientRepository clientRepository, IClientValidator clientValidator) { _parameterParserHelper = parameterParserHelper; _clientRepository = clientRepository; _clientValidator = clientValidator; }
public override void SetUp() { this.context = this.Stub <IValidationContext>(); this.clientValidator = this.Stub <IClientValidator>(); this.contextFactory = this.Stub <IValidationContextFactory>(); this.target = new ValidationFacade(); this.target.ClientValidator = this.clientValidator; this.target.ContextFactory = this.contextFactory; }
public GetAuthorizationCodeAndTokenViaHybridWorkflowOperation( ISimpleIdentityServerEventSource simpleIdentityServerEventSource, IProcessAuthorizationRequest processAuthorizationRequest, IClientValidator clientValidator, IGenerateAuthorizationResponse generateAuthorizationResponse) { _simpleIdentityServerEventSource = simpleIdentityServerEventSource; _processAuthorizationRequest = processAuthorizationRequest; _clientValidator = clientValidator; _generateAuthorizationResponse = generateAuthorizationResponse; }
public GetTokenViaImplicitWorkflowOperation( IProcessAuthorizationRequest processAuthorizationRequest, IGenerateAuthorizationResponse generateAuthorizationResponse, IClientValidator clientValidator, ISimpleIdentityServerEventSource simpleIdentityServerEventSource) { _processAuthorizationRequest = processAuthorizationRequest; _generateAuthorizationResponse = generateAuthorizationResponse; _simpleIdentityServerEventSource = simpleIdentityServerEventSource; _clientValidator = clientValidator; }
public GetTokenViaImplicitWorkflowOperation( IProcessAuthorizationRequest processAuthorizationRequest, IGenerateAuthorizationResponse generateAuthorizationResponse, IClientValidator clientValidator, IOAuthEventSource oAuthEventSource) { _processAuthorizationRequest = processAuthorizationRequest; _generateAuthorizationResponse = generateAuthorizationResponse; _oAuthEventSource = oAuthEventSource; _clientValidator = clientValidator; }
public GetAuthorizationCodeOperation( IProcessAuthorizationRequest processAuthorizationRequest, IClientValidator clientValidator, IGenerateAuthorizationResponse generateAuthorizationResponse, IOAuthEventSource oAuthEventSource) { _processAuthorizationRequest = processAuthorizationRequest; _clientValidator = clientValidator; _generateAuthorizationResponse = generateAuthorizationResponse; _oAuthEventSource = oAuthEventSource; }
public GetAuthorizationCodeAndTokenViaHybridWorkflowOperation( IOAuthEventSource oauthEventSource, IProcessAuthorizationRequest processAuthorizationRequest, IClientValidator clientValidator, IGenerateAuthorizationResponse generateAuthorizationResponse) { _oauthEventSource = oauthEventSource; _processAuthorizationRequest = processAuthorizationRequest; _clientValidator = clientValidator; _generateAuthorizationResponse = generateAuthorizationResponse; }
public ClientApplicationService( ILogManager logManager, IClientRepository clientRepository, IClientValidator clientValidator, IAddressApplicationService addressApplicationService, IContactApplicationService contactApplicationService ) { _logManager = logManager; _clientRepository = clientRepository; _clientValidator = clientValidator; _addressApplicationService = addressApplicationService; _contactApplicationService = contactApplicationService; }
/// <summary> /// 初始化一个<see cref="OsharpAuthorizationServerProvider"/>类型的新实例 /// </summary> public OsharpAuthorizationServerProvider(IServiceProvider serviceProvider) { serviceProvider.CheckNotNull("serviceProvider"); _clientValidator = serviceProvider.GetService <IClientValidator>(); if (_clientValidator == null) { throw new InvalidOperationException(Resources.ClientValidatorIsNull); } _passwordValidator = serviceProvider.GetService <IPasswordValidator>(); if (_passwordValidator == null) { throw new InvalidOperationException(Resources.PasswordValidatorIsNull); } }
/// <summary> /// 初始化一个<see cref="OsharpAuthorizationServerProvider"/>类型的新实例 /// </summary> public OsharpAuthorizationServerProvider(IServiceProvider serviceProvider) { serviceProvider.CheckNotNull("serviceProvider"); _clientValidator = serviceProvider.GetService<IClientValidator>(); if (_clientValidator == null) { throw new InvalidOperationException(Resources.ClientValidatorIsNull); } _passwordValidator = serviceProvider.GetService<IPasswordValidator>(); if (_passwordValidator == null) { throw new InvalidOperationException(Resources.PasswordValidatorIsNull); } }
public Repo1ClientBase1(string configKey, int checkIntervalMins) { _cfgKey = configKey; _cfg = ParseDownloaderCfg(configKey); _intervalMins = checkIntervalMins; _validr = GetClientValidator(); _postr = GetPosterClient(); _updatr = GetLocalFileUpdater(configKey); _sessionr = GetSessionClient(checkIntervalMins); _downloadr = GetDownloadClient(); _sessionr.PropertyChanged += (s, e) => { if (e.PropertyName == nameof(_sessionr.Status)) { Status = _sessionr.Status; } }; }
public ProcessAuthorizationRequest( IParameterParserHelper parameterParserHelper, IClientValidator clientValidator, IScopeValidator scopeValidator, IActionResultFactory actionResultFactory, IConsentHelper consentHelper, IJwtParser jwtParser, IConfigurationService configurationService, IOAuthEventSource oauthEventSource) { _parameterParserHelper = parameterParserHelper; _clientValidator = clientValidator; _scopeValidator = scopeValidator; _actionResultFactory = actionResultFactory; _consentHelper = consentHelper; _jwtParser = jwtParser; _configurationService = configurationService; _oauthEventSource = oauthEventSource; }
public JwtGenerator( IConfigurationService configurationService, IClientRepository clientRepository, IClientValidator clientValidator, IJsonWebKeyRepository jsonWebKeyRepository, IScopeRepository scopeRepository, IClaimsMapping claimsMapping, IParameterParserHelper parameterParserHelper, IJwsGenerator jwsGenerator, IJweGenerator jweGenerator) { _configurationService = configurationService; _clientRepository = clientRepository; _clientValidator = clientValidator; _jsonWebKeyRepository = jsonWebKeyRepository; _scopeRepository = scopeRepository; _claimsMapping = claimsMapping; _parameterParserHelper = parameterParserHelper; _jwsGenerator = jwsGenerator; _jweGenerator = jweGenerator; }
public GetTokenByClientCredentialsGrantTypeAction( IAuthenticateInstructionGenerator authenticateInstructionGenerator, IAuthenticateClient authenticateClient, IClientValidator clientValidator, IGrantedTokenGeneratorHelper grantedTokenGeneratorHelper, IScopeValidator scopeValidator, IGrantedTokenRepository grantedTokenRepository, ISimpleIdentityServerEventSource simpleIdentityServerEventSource, IClientCredentialsGrantTypeParameterValidator clientCredentialsGrantTypeParameterValidator, IClientHelper clientHelper, IGrantedTokenHelper grantedTokenHelper) { _authenticateInstructionGenerator = authenticateInstructionGenerator; _authenticateClient = authenticateClient; _clientValidator = clientValidator; _grantedTokenGeneratorHelper = grantedTokenGeneratorHelper; _scopeValidator = scopeValidator; _grantedTokenRepository = grantedTokenRepository; _simpleIdentityServerEventSource = simpleIdentityServerEventSource; _clientCredentialsGrantTypeParameterValidator = clientCredentialsGrantTypeParameterValidator; _clientHelper = clientHelper; _grantedTokenHelper = grantedTokenHelper; }
public GetTokenByAuthorizationCodeGrantTypeAction( IClientValidator clientValidator, IAuthorizationCodeRepository authorizationCodeRepository, IConfigurationService configurationService, IGrantedTokenGeneratorHelper grantedTokenGeneratorHelper, IGrantedTokenRepository grantedTokenRepository, IAuthenticateClient authenticateClient, IClientHelper clientHelper, ISimpleIdentityServerEventSource simpleIdentityServerEventSource, IAuthenticateInstructionGenerator authenticateInstructionGenerator, IGrantedTokenHelper grantedTokenHelper) { _clientValidator = clientValidator; _authorizationCodeRepository = authorizationCodeRepository; _configurationService = configurationService; _grantedTokenGeneratorHelper = grantedTokenGeneratorHelper; _grantedTokenRepository = grantedTokenRepository; _authenticateClient = authenticateClient; _clientHelper = clientHelper; _simpleIdentityServerEventSource = simpleIdentityServerEventSource; _authenticateInstructionGenerator = authenticateInstructionGenerator; _grantedTokenHelper = grantedTokenHelper; }
public OrdersController(IOrdersRepository ordersRepository, IClientValidator certificateValidator) { log.DebugEx("OrdersController created"); _ordersRepository = ordersRepository; _clientValidator = certificateValidator; }
public TendersController(ITendersRepository tendersRepository, IClientValidator certificateValidator) { log.DebugEx("TendersController created"); _tendersRepository = tendersRepository; _clientValidator = certificateValidator; }
public EFTPOSController(IEFTPOSRepository eftposRepository, IClientValidator certificateValidator) { log.DebugEx("EFTPOSController created"); _eftposRepository = eftposRepository; _clientValidator = certificateValidator; }
public void SetClientValidator(IClientValidator validator) { m_ClientValidator = validator; }
public SettingsController(ISettingsRepository settingsRepository, IClientValidator certificateValidator) { log.DebugEx("SettingsController created"); _settingsRepository = settingsRepository; _clientValidator = certificateValidator; }
public void InitializeMockingObjects() { _clientValidator = new ClientValidator(); }
public TablesController(ITablesRepository tablesRepository, IClientValidator certificateValidator) { log.DebugEx("TablesController created"); _tablesRepository = tablesRepository; _clientValidator = certificateValidator; }