Пример #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;
 }
Пример #2
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;
 }
Пример #3
0
 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;
 }
Пример #4
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;
 }
 public RevokeTokenAction(
     IAuthenticateInstructionGenerator authenticateInstructionGenerator,
     IAuthenticateClient authenticateClient,
     IGrantedTokenRepository grantedTokenRepository,
     IClientRepository clientRepository)
 {
     _authenticateInstructionGenerator = authenticateInstructionGenerator;
     _authenticateClient     = authenticateClient;
     _grantedTokenRepository = grantedTokenRepository;
     _clientRepository       = clientRepository;
 }
Пример #6
0
 public RevokeTokenAction(
     IAuthenticateInstructionGenerator authenticateInstructionGenerator,
     IAuthenticateClient authenticateClient,
     ITokenStore tokenStore,
     IClientRepository clientRepository)
 {
     _authenticateInstructionGenerator = authenticateInstructionGenerator;
     _authenticateClient = authenticateClient;
     _tokenStore         = tokenStore;
     _clientRepository   = clientRepository;
 }
Пример #7
0
 public GetTokenByTicketIdAction(ITicketStore ticketStore, IUmaConfigurationService configurationService,
                                 IUmaServerEventSource umaServerEventSource, IAuthorizationPolicyValidator authorizationPolicyValidator, IAuthenticateInstructionGenerator authenticateInstructionGenerator,
                                 IAuthenticateClient authenticateClient, IJwtGenerator jwtGenerator, IClientHelper clientHelper, ITokenStore tokenStore)
 {
     _ticketStore                      = ticketStore;
     _configurationService             = configurationService;
     _umaServerEventSource             = umaServerEventSource;
     _authorizationPolicyValidator     = authorizationPolicyValidator;
     _authenticateInstructionGenerator = authenticateInstructionGenerator;
     _authenticateClient               = authenticateClient;
     _jwtGenerator                     = jwtGenerator;
     _clientHelper                     = clientHelper;
     _tokenStore = tokenStore;
 }
 public GetTokenByRefreshTokenGrantTypeAction(
     IClientHelper clientHelper,
     IOAuthEventSource oauthEventSource,
     IGrantedTokenGeneratorHelper grantedTokenGeneratorHelper,
     ITokenStore tokenStore,
     IJwtGenerator jwtGenerator,
     IAuthenticateInstructionGenerator authenticateInstructionGenerator,
     IAuthenticateClient authenticateClient)
 {
     _clientHelper                = clientHelper;
     _oauthEventSource            = oauthEventSource;
     _grantedTokenGeneratorHelper = grantedTokenGeneratorHelper;
     _tokenStore   = tokenStore;
     _jwtGenerator = jwtGenerator;
     _authenticateInstructionGenerator = authenticateInstructionGenerator;
     _authenticateClient = authenticateClient;
 }
 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 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;
 }
 private void InitializeFakeObjects()
 {
     _authenticateInstructionGenerator = new AuthenticateInstructionGenerator();
 }