Esempio n. 1
0
 public GenerateAuthorizationResponse(
     IAuthorizationCodeStore authorizationCodeStore,
     ITokenStore tokenStore,
     IParameterParserHelper parameterParserHelper,
     IJwtGenerator jwtGenerator,
     IGrantedTokenGeneratorHelper grantedTokenGeneratorHelper,
     IConsentHelper consentHelper,
     IOAuthEventSource oauthEventSource,
     IAuthorizationFlowHelper authorizationFlowHelper,
     IClientHelper clientHelper,
     IGrantedTokenHelper grantedTokenHelper,
     IResourceOwnerRepository resourceOwnerRepository)
 {
     _authorizationCodeStore      = authorizationCodeStore;
     _tokenStore                  = tokenStore;
     _parameterParserHelper       = parameterParserHelper;
     _jwtGenerator                = jwtGenerator;
     _grantedTokenGeneratorHelper = grantedTokenGeneratorHelper;
     _consentHelper               = consentHelper;
     _oauthEventSource            = oauthEventSource;
     _authorizationFlowHelper     = authorizationFlowHelper;
     _clientHelper                = clientHelper;
     _grantedTokenHelper          = grantedTokenHelper;
     _resourceOwnerRepository     = resourceOwnerRepository;
 }
 private void InitializeFakeObjects()
 {
     _consentRepositoryFake     = new Mock <IConsentRepository>();
     _parameterParserHelperFake = new Mock <IParameterParserHelper>();
     _consentHelper             = new ConsentHelper(
         _consentRepositoryFake.Object,
         _parameterParserHelperFake.Object);
 }
Esempio n. 3
0
 public AuthenticateHelper(IParameterParserHelper parameterParserHelper, IActionResultFactory actionResultFactory, IConsentHelper consentHelper, IGenerateAuthorizationResponse generateAuthorizationResponse, IClientRepository clientRepository, IAmrHelper amrHelper)
 {
     _parameterParserHelper         = parameterParserHelper;
     _actionResultFactory           = actionResultFactory;
     _consentHelper                 = consentHelper;
     _generateAuthorizationResponse = generateAuthorizationResponse;
     _clientRepository              = clientRepository;
     _amrHelper = amrHelper;
 }
 public DisplayConsentAction(
     IScopeRepository scopeRepository,
     IClientRepository clientRepository,
     IConsentHelper consentHelper,
     IGenerateAuthorizationResponse generateAuthorizationResponse,
     IParameterParserHelper parameterParserHelper,
     IActionResultFactory actionResultFactory)
 {
     _scopeRepository  = scopeRepository;
     _clientRepository = clientRepository;
     _consentHelper    = consentHelper;
     _generateAuthorizationResponse = generateAuthorizationResponse;
     _parameterParserHelper         = parameterParserHelper;
     _actionResultFactory           = actionResultFactory;
 }
 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 ConfirmConsentAction(
     IConsentRepository consentRepository,
     IClientRepository clientRepository,
     IScopeRepository scopeRepository,
     IResourceOwnerRepository resourceOwnerRepository,
     IParameterParserHelper parameterParserHelper,
     IActionResultFactory actionResultFactory,
     IGenerateAuthorizationResponse generateAuthorizationResponse,
     IConsentHelper consentHelper,
     IOpenIdEventSource openidEventSource)
 {
     _consentRepository             = consentRepository;
     _clientRepository              = clientRepository;
     _scopeRepository               = scopeRepository;
     _resourceOwnerRepository       = resourceOwnerRepository;
     _parameterParserHelper         = parameterParserHelper;
     _actionResultFactory           = actionResultFactory;
     _generateAuthorizationResponse = generateAuthorizationResponse;
     _consentHelper     = consentHelper;
     _openidEventSource = openidEventSource;
 }
Esempio n. 7
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 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;
 }