Example #1
0
 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;
 }
Example #2
0
 public GetTokenByResourceOwnerCredentialsGrantTypeAction(
     IGrantedTokenRepository grantedTokenRepository,
     IGrantedTokenGeneratorHelper grantedTokenGeneratorHelper,
     IScopeValidator scopeValidator,
     IAuthenticateResourceOwnerService authenticateResourceOwnerService,
     ISimpleIdentityServerEventSource simpleIdentityServerEventSource,
     IAuthenticateClient authenticateClient,
     IJwtGenerator jwtGenerator,
     IAuthenticateInstructionGenerator authenticateInstructionGenerator,
     IClientRepository clientRepository,
     IClientHelper clientHelper,
     IGrantedTokenHelper grantedTokenHelper)
 {
     _grantedTokenRepository      = grantedTokenRepository;
     _grantedTokenGeneratorHelper = grantedTokenGeneratorHelper;
     _scopeValidator = scopeValidator;
     _authenticateResourceOwnerService = authenticateResourceOwnerService;
     _simpleIdentityServerEventSource  = simpleIdentityServerEventSource;
     _authenticateClient = authenticateClient;
     _jwtGenerator       = jwtGenerator;
     _authenticateInstructionGenerator = authenticateInstructionGenerator;
     _clientRepository   = clientRepository;
     _clientHelper       = clientHelper;
     _grantedTokenHelper = grantedTokenHelper;
 }
Example #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 DeviceAuthorizationRequestValidator(
     IdentityServerOptions options,
     IScopeValidator scopeValidator,
     ILogger <DeviceAuthorizationRequestValidator> logger)
 {
     _options        = options;
     _scopeValidator = scopeValidator;
     _logger         = logger;
 }
Example #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TokenRequestValidator" /> class.
 /// </summary>
 /// <param name="options">The options.</param>
 /// <param name="authorizationCodeStore">The authorization code store.</param>
 /// <param name="resourceOwnerValidator">The resource owner validator.</param>
 /// <param name="profile">The profile.</param>
 /// <param name="deviceCodeValidator">The device code validator.</param>
 /// <param name="extensionGrantValidator">The extension grant validator.</param>
 /// <param name="customRequestValidator">The custom request validator.</param>
 /// <param name="scopeValidator">The scope validator.</param>
 /// <param name="tokenValidator">The token validator.</param>
 /// <param name="events">The events.</param>
 /// <param name="clock">The clock.</param>
 /// <param name="logger">The logger.</param>
 public TokenRequestValidator(IdentityServerOptions options, IAuthorizationCodeStore authorizationCodeStore, IResourceOwnerPasswordValidator resourceOwnerValidator, IProfileService profile, IDeviceCodeValidator deviceCodeValidator, ExtensionGrantValidator extensionGrantValidator, ICustomTokenRequestValidator customRequestValidator, IScopeValidator scopeValidator, ITokenValidator tokenValidator, IEventService events, ISystemClock clock, ILogger <TokenRequestValidator> logger)
 {
     _logger  = logger;
     _options = options;
     _clock   = clock;
     _authorizationCodeStore = authorizationCodeStore;
     _resourceOwnerValidator = resourceOwnerValidator;
     _profile                 = profile;
     _deviceCodeValidator     = deviceCodeValidator;
     _extensionGrantValidator = extensionGrantValidator;
     _customRequestValidator  = customRequestValidator;
     _scopeValidator          = scopeValidator;
     _tokenValidator          = tokenValidator;
     _events = events;
 }
 public AuthorizeRequestValidator(
     IdentityServerOptions options,
     IClientStore clients,
     ICustomAuthorizeRequestValidator customValidator,
     IRedirectUriValidator uriValidator,
     IScopeValidator scopeValidator,
     IUserSession userSession,
     ILogger <AuthorizeRequestValidator> logger)
 {
     _options         = options;
     _clients         = clients;
     _customValidator = customValidator;
     _uriValidator    = uriValidator;
     _scopeValidator  = scopeValidator;
     _userSession     = userSession;
     _logger          = logger;
 }
 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 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;
 }