コード例 #1
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;
 }
コード例 #2
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;
 }
コード例 #3
0
 public GetTokenByClientCredentialsGrantTypeAction(
     IAuthenticateInstructionGenerator authenticateInstructionGenerator,
     IAuthenticateClient authenticateClient,
     IClientValidator clientValidator,
     IGrantedTokenGeneratorHelper grantedTokenGeneratorHelper,
     IScopeValidator scopeValidator,
     ISimpleIdentityServerEventSource simpleIdentityServerEventSource,
     IClientCredentialsGrantTypeParameterValidator clientCredentialsGrantTypeParameterValidator,
     IClientHelper clientHelper,
     IJwtGenerator jwtGenerator,
     ITokenStore tokenStore,
     IGrantedTokenHelper grantedTokenHelper)
 {
     _authenticateInstructionGenerator = authenticateInstructionGenerator;
     _authenticateClient          = authenticateClient;
     _clientValidator             = clientValidator;
     _grantedTokenGeneratorHelper = grantedTokenGeneratorHelper;
     _scopeValidator = scopeValidator;
     _simpleIdentityServerEventSource = simpleIdentityServerEventSource;
     _clientCredentialsGrantTypeParameterValidator = clientCredentialsGrantTypeParameterValidator;
     _clientHelper       = clientHelper;
     _jwtGenerator       = jwtGenerator;
     _tokenStore         = tokenStore;
     _grantedTokenHelper = grantedTokenHelper;
 }
コード例 #4
0
 public TokenActions(
     IGetTokenByResourceOwnerCredentialsGrantTypeAction getTokenByResourceOwnerCredentialsGrantType,
     IGetTokenByAuthorizationCodeGrantTypeAction getTokenByAuthorizationCodeGrantTypeAction,
     IResourceOwnerGrantTypeParameterValidator resourceOwnerGrantTypeParameterValidator,
     IAuthorizationCodeGrantTypeParameterTokenEdpValidator authorizationCodeGrantTypeParameterTokenEdpValidator,
     IRefreshTokenGrantTypeParameterValidator refreshTokenGrantTypeParameterValidator,
     IGetTokenByRefreshTokenGrantTypeAction getTokenByRefreshTokenGrantTypeAction,
     IGetTokenByClientCredentialsGrantTypeAction getTokenByClientCredentialsGrantTypeAction,
     IClientCredentialsGrantTypeParameterValidator clientCredentialsGrantTypeParameterValidator,
     ISimpleIdentityServerEventSource simpleIdentityServerEventSource,
     IRevokeTokenAction revokeTokenAction,
     IEventPublisher eventPublisher,
     IPayloadSerializer payloadSerializer)
 {
     _getTokenByResourceOwnerCredentialsGrantType          = getTokenByResourceOwnerCredentialsGrantType;
     _getTokenByAuthorizationCodeGrantTypeAction           = getTokenByAuthorizationCodeGrantTypeAction;
     _resourceOwnerGrantTypeParameterValidator             = resourceOwnerGrantTypeParameterValidator;
     _authorizationCodeGrantTypeParameterTokenEdpValidator = authorizationCodeGrantTypeParameterTokenEdpValidator;
     _refreshTokenGrantTypeParameterValidator      = refreshTokenGrantTypeParameterValidator;
     _getTokenByRefreshTokenGrantTypeAction        = getTokenByRefreshTokenGrantTypeAction;
     _simpleIdentityServerEventSource              = simpleIdentityServerEventSource;
     _getTokenByClientCredentialsGrantTypeAction   = getTokenByClientCredentialsGrantTypeAction;
     _clientCredentialsGrantTypeParameterValidator = clientCredentialsGrantTypeParameterValidator;
     _revokeTokenAction = revokeTokenAction;
     _eventPublisher    = eventPublisher;
     _payloadSerializer = payloadSerializer;
 }
コード例 #5
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;
 }
コード例 #6
0
 public PostIntrospectionAction(
     ISimpleIdentityServerEventSource simpleIdentityServerEventSource,
     IAuthenticateClient authenticateClient,
     IIntrospectionParameterValidator introspectionParameterValidator,
     ITokenStore tokenStore)
 {
     _simpleIdentityServerEventSource = simpleIdentityServerEventSource;
     _authenticateClient = authenticateClient;
     _introspectionParameterValidator = introspectionParameterValidator;
     _tokenStore = tokenStore;
 }
コード例 #7
0
 public GetAuthorizationCodeAndTokenViaHybridWorkflowOperation(
     ISimpleIdentityServerEventSource simpleIdentityServerEventSource,
     IProcessAuthorizationRequest processAuthorizationRequest,
     IClientValidator clientValidator,
     IGenerateAuthorizationResponse generateAuthorizationResponse)
 {
     _simpleIdentityServerEventSource = simpleIdentityServerEventSource;
     _processAuthorizationRequest     = processAuthorizationRequest;
     _clientValidator = clientValidator;
     _generateAuthorizationResponse = generateAuthorizationResponse;
 }
コード例 #8
0
 public GetTokenViaImplicitWorkflowOperation(
     IProcessAuthorizationRequest processAuthorizationRequest,
     IGenerateAuthorizationResponse generateAuthorizationResponse,
     IClientValidator clientValidator,
     ISimpleIdentityServerEventSource simpleIdentityServerEventSource)
 {
     _processAuthorizationRequest     = processAuthorizationRequest;
     _generateAuthorizationResponse   = generateAuthorizationResponse;
     _simpleIdentityServerEventSource = simpleIdentityServerEventSource;
     _clientValidator = clientValidator;
 }
コード例 #9
0
 public PostIntrospectionAction(
     ISimpleIdentityServerEventSource simpleIdentityServerEventSource,
     IAuthenticateClient authenticateClient,
     IIntrospectionParameterValidator introspectionParameterValidator,
     IGrantedTokenRepository grantedTokenRepository)
 {
     _simpleIdentityServerEventSource = simpleIdentityServerEventSource;
     _authenticateClient = authenticateClient;
     _introspectionParameterValidator = introspectionParameterValidator;
     _grantedTokenRepository          = grantedTokenRepository;
 }
コード例 #10
0
 public RegisterClientAction(
     ISimpleIdentityServerEventSource simpleIdentityServerEventSource,
     IClientRepository clientRepository,
     IGenerateClientFromRegistrationRequest generateClientFromRegistrationRequest,
     IPasswordService encryptedPasswordFactory)
 {
     _simpleIdentityServerEventSource = simpleIdentityServerEventSource;
     _clientRepository = clientRepository;
     _generateClientFromRegistrationRequest = generateClientFromRegistrationRequest;
     _encryptedPasswordFactory = encryptedPasswordFactory;
 }
コード例 #11
0
 public GetTokenByRefreshTokenGrantTypeAction(
     IGrantedTokenRepository grantedTokenRepository,
     IClientHelper clientHelper,
     ISimpleIdentityServerEventSource simpleIdentityServerEventSource,
     IGrantedTokenGeneratorHelper grantedTokenGeneratorHelper)
 {
     _grantedTokenRepository          = grantedTokenRepository;
     _clientHelper                    = clientHelper;
     _simpleIdentityServerEventSource = simpleIdentityServerEventSource;
     _grantedTokenGeneratorHelper     = grantedTokenGeneratorHelper;
 }
コード例 #12
0
 public GetTokenByRefreshTokenGrantTypeAction(
     IClientHelper clientHelper,
     ISimpleIdentityServerEventSource simpleIdentityServerEventSource,
     IGrantedTokenGeneratorHelper grantedTokenGeneratorHelper,
     ITokenStore tokenStore,
     IJwtGenerator jwtGenerator)
 {
     _clientHelper = clientHelper;
     _simpleIdentityServerEventSource = simpleIdentityServerEventSource;
     _grantedTokenGeneratorHelper     = grantedTokenGeneratorHelper;
     _tokenStore   = tokenStore;
     _jwtGenerator = jwtGenerator;
 }
コード例 #13
0
 public AuthenticateClient(
     IClientSecretBasicAuthentication clientSecretBasicAuthentication,
     IClientSecretPostAuthentication clientSecretPostAuthentication,
     IClientAssertionAuthentication clientAssertionAuthentication,
     IClientTlsAuthentication clientTlsAuthentication,
     IClientRepository clientRepository,
     ISimpleIdentityServerEventSource simpleIdentityServerEventSource)
 {
     _clientSecretBasicAuthentication = clientSecretBasicAuthentication;
     _clientSecretPostAuthentication  = clientSecretPostAuthentication;
     _clientAssertionAuthentication   = clientAssertionAuthentication;
     _clientTlsAuthentication         = clientTlsAuthentication;
     _clientRepository = clientRepository;
     _simpleIdentityServerEventSource = simpleIdentityServerEventSource;
 }
コード例 #14
0
 public ProcessAuthorizationRequest(
     IParameterParserHelper parameterParserHelper,
     IClientValidator clientValidator,
     IScopeValidator scopeValidator,
     IActionResultFactory actionResultFactory,
     IConsentHelper consentHelper,
     IJwtParser jwtParser,
     IConfigurationService configurationService,
     ISimpleIdentityServerEventSource simpleIdentityServerEventSource)
 {
     _parameterParserHelper           = parameterParserHelper;
     _clientValidator                 = clientValidator;
     _scopeValidator                  = scopeValidator;
     _actionResultFactory             = actionResultFactory;
     _consentHelper                   = consentHelper;
     _jwtParser                       = jwtParser;
     _configurationService            = configurationService;
     _simpleIdentityServerEventSource = simpleIdentityServerEventSource;
 }
コード例 #15
0
 public AuthenticateController(
     IAuthenticateActions authenticateActions,
     IDataProtectionProvider dataProtectionProvider,
     IEncoder encoder,
     ITranslationManager translationManager,
     ISimpleIdentityServerEventSource simpleIdentityServerEventSource,
     IUrlHelperFactory urlHelperFactory,
     IActionContextAccessor actionContextAccessor,
     IEventAggregateRepository eventAggregateRepository,
     IEventPublisher eventPublisher)
 {
     _authenticateActions             = authenticateActions;
     _dataProtector                   = dataProtectionProvider.CreateProtector("Request");
     _encoder                         = encoder;
     _translationManager              = translationManager;
     _simpleIdentityServerEventSource = simpleIdentityServerEventSource;
     _urlHelper                       = urlHelperFactory.GetUrlHelper(actionContextAccessor.ActionContext);
     _eventAggregateRepository        = eventAggregateRepository;
     _eventPublisher                  = eventPublisher;
 }
コード例 #16
0
 public AuthorizationActions(
     IGetAuthorizationCodeOperation getAuthorizationCodeOperation,
     IGetTokenViaImplicitWorkflowOperation getTokenViaImplicitWorkflowOperation,
     IGetAuthorizationCodeAndTokenViaHybridWorkflowOperation getAuthorizationCodeAndTokenViaHybridWorkflowOperation,
     IAuthorizationCodeGrantTypeParameterAuthEdpValidator authorizationCodeGrantTypeParameterValidator,
     IParameterParserHelper parameterParserHelper,
     ISimpleIdentityServerEventSource simpleIdentityServerEventSource,
     IAuthorizationFlowHelper authorizationFlowHelper,
     IEventPublisher eventPublisher)
 {
     _getAuthorizationCodeOperation        = getAuthorizationCodeOperation;
     _getTokenViaImplicitWorkflowOperation = getTokenViaImplicitWorkflowOperation;
     _getAuthorizationCodeAndTokenViaHybridWorkflowOperation =
         getAuthorizationCodeAndTokenViaHybridWorkflowOperation;
     _authorizationCodeGrantTypeParameterValidator = authorizationCodeGrantTypeParameterValidator;
     _parameterParserHelper           = parameterParserHelper;
     _simpleIdentityServerEventSource = simpleIdentityServerEventSource;
     _authorizationFlowHelper         = authorizationFlowHelper;
     _eventPublisher = eventPublisher;
 }
コード例 #17
0
 public ConfirmConsentAction(
     IConsentRepository consentRepository,
     IClientRepository clientRepository,
     IScopeRepository scopeRepository,
     IResourceOwnerRepository resourceOwnerRepository,
     IParameterParserHelper parameterParserHelper,
     IActionResultFactory actionResultFactory,
     IGenerateAuthorizationResponse generateAuthorizationResponse,
     IConsentHelper consentHelper,
     ISimpleIdentityServerEventSource simpleIdentityServerEventSource,
     IAuthenticateResourceOwnerService authenticateResourceOwnerService)
 {
     _consentRepository             = consentRepository;
     _clientRepository              = clientRepository;
     _scopeRepository               = scopeRepository;
     _resourceOwnerRepository       = resourceOwnerRepository;
     _parameterParserHelper         = parameterParserHelper;
     _actionResultFactory           = actionResultFactory;
     _generateAuthorizationResponse = generateAuthorizationResponse;
     _consentHelper = consentHelper;
     _simpleIdentityServerEventSource  = simpleIdentityServerEventSource;
     _authenticateResourceOwnerService = authenticateResourceOwnerService;
 }
 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;
 }
コード例 #19
0
 public GenerateAuthorizationResponse(
     IAuthorizationCodeStore authorizationCodeStore,
     ITokenStore tokenStore,
     IParameterParserHelper parameterParserHelper,
     IJwtGenerator jwtGenerator,
     IGrantedTokenGeneratorHelper grantedTokenGeneratorHelper,
     IConsentHelper consentHelper,
     ISimpleIdentityServerEventSource simpleIdentityServerEventSource,
     IAuthorizationFlowHelper authorizationFlowHelper,
     IClientHelper clientHelper,
     IGrantedTokenHelper grantedTokenHelper)
 {
     _authorizationCodeStore          = authorizationCodeStore;
     _tokenStore                      = tokenStore;
     _parameterParserHelper           = parameterParserHelper;
     _jwtGenerator                    = jwtGenerator;
     _grantedTokenGeneratorHelper     = grantedTokenGeneratorHelper;
     _consentHelper                   = consentHelper;
     _simpleIdentityServerEventSource = simpleIdentityServerEventSource;
     _authorizationFlowHelper         = authorizationFlowHelper;
     _clientHelper                    = clientHelper;
     _grantedTokenHelper              = grantedTokenHelper;
 }