public OpenIDAccessTokenBuilder(IClaimsJwsPayloadEnricher claimsJwsPayloadEnricher,
                                 IGrantedTokenHelper grantedTokenHelper,
                                 IJwtBuilder jwtBuilder,
                                 IOptions <OAuthHostOptions> options) : base(grantedTokenHelper, jwtBuilder, options)
 {
     _claimsJwsPayloadEnricher = claimsJwsPayloadEnricher;
 }
示例#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,
     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;
 }
示例#4
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;
 }
示例#5
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;
 }
示例#6
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 AuthorizationCodeHandler(IAuthorizationCodeGrantTypeValidator authorizationCodeGrantTypeValidator, IGrantedTokenHelper grantedTokenHelper, IEnumerable <ITokenProfile> tokenProfiles,
                                 IEnumerable <ITokenBuilder> tokenBuilders, IClientAuthenticationHelper clientAuthenticationHelper) : base(clientAuthenticationHelper)
 {
     _authorizationCodeGrantTypeValidator = authorizationCodeGrantTypeValidator;
     _grantedTokenHelper = grantedTokenHelper;
     _tokenProfiles      = tokenProfiles;
     _tokenBuilders      = tokenBuilders;
 }
 private void InitializeFakeObjects()
 {
     _grantedTokenRepositoryStub = new Mock <ITokenStore>();
     _grantedTokenValidatorStub  = new Mock <IGrantedTokenValidator>();
     _grantedTokenHelper         = new GrantedTokenHelper(
         _grantedTokenRepositoryStub.Object,
         _grantedTokenValidatorStub.Object);
 }
 public DeleteOAuthClientHandler(IGrantedTokenHelper grantedTokenHelper,
                                 ITokenRepository tokenQueryRepository,
                                 IOAuthClientRepository oAuthClientRepository,
                                 ILogger <BaseOAuthClientHandler> logger) : base(oAuthClientRepository, logger)
 {
     _grantedTokenHelper = grantedTokenHelper;
     _tokenRepository    = tokenQueryRepository;
 }
 public OpenBankingApiAccessTokenBuilder(
     IGrantedTokenHelper grantedTokenHelper,
     IJwtBuilder jwtBuilder,
     IOptions <OAuthHostOptions> options,
     IOpenBankingApiAuthRequestEnricher openBankingApiAuthRequestEnricher) : base(grantedTokenHelper, jwtBuilder, options)
 {
     _openBankingApiAuthRequestEnricher = openBankingApiAuthRequestEnricher;
 }
 public RefreshTokenHandler(IRefreshTokenGrantTypeValidator refreshTokenGrantTypeValidator, IGrantedTokenHelper grantedTokenHelper, IEnumerable <ITokenProfile> tokenProfiles,
                            IEnumerable <ITokenBuilder> tokenBuilders, IClientAuthenticationHelper clientAuthenticationHelper, IOAuthUserQueryRepository oauthUserQueryRepository) : base(clientAuthenticationHelper)
 {
     _refreshTokenGrantTypeValidator = refreshTokenGrantTypeValidator;
     _grantedTokenHelper             = grantedTokenHelper;
     _tokenProfiles       = tokenProfiles;
     _tokenBuilders       = tokenBuilders;
     _oauthUserRepository = oauthUserQueryRepository;
 }
 public RevokeTokenRequestHandler(
     IRevokeTokenValidator revokeTokenValidator,
     IGrantedTokenHelper grantedTokenHelper,
     IClientAuthenticationHelper clientAuthenticationHelper,
     ILogger <RevokeTokenRequestHandler> logger)
 {
     _revokeTokenValidator       = revokeTokenValidator;
     _grantedTokenHelper         = grantedTokenHelper;
     _clientAuthenticationHelper = clientAuthenticationHelper;
     _logger = logger;
 }
 public RefreshTokenHandler(
     IRefreshTokenGrantTypeValidator refreshTokenGrantTypeValidator,
     IGrantedTokenHelper grantedTokenHelper,
     IEnumerable <ITokenProfile> tokenProfiles,
     IEnumerable <ITokenBuilder> tokenBuilders,
     IClientAuthenticationHelper clientAuthenticationHelper,
     ILogger <RefreshTokenHandler> logger) : base(clientAuthenticationHelper)
 {
     _refreshTokenGrantTypeValidator = refreshTokenGrantTypeValidator;
     _grantedTokenHelper             = grantedTokenHelper;
     _tokenProfiles = tokenProfiles;
     _tokenBuilders = tokenBuilders;
     _logger        = logger;
 }
 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 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;
 }
 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;
 }
示例#17
0
 public RefreshTokenBuilder(IGrantedTokenHelper grantedTokenHelper)
 {
     _grantedTokenHelper = grantedTokenHelper;
 }
示例#18
0
 public AuthorizationCodeResponseTypeHandler(IGrantedTokenHelper grantedTokenHelper, IEnumerable <ICodeChallengeMethodHandler> codeChallengeMethodHandlers, IOptions <OAuthHostOptions> options)
 {
     _grantedTokenHelper          = grantedTokenHelper;
     _codeChallengeMethodHandlers = codeChallengeMethodHandlers;
     _options = options.Value;
 }
示例#19
0
 public AccessTokenBuilder(IGrantedTokenHelper grantedTokenHelper, IJwtBuilder jwtBuilder)
 {
     _grantedTokenHelper = grantedTokenHelper;
     _jwtBuilder         = jwtBuilder;
 }
示例#20
0
 public OpenIDAccessTokenBuilder(IGrantedTokenHelper grantedTokenHelper,
                                 IJwtBuilder jwtBuilder,
                                 IOptions <OAuthHostOptions> options) : base(grantedTokenHelper, jwtBuilder, options)
 {
 }
 public AuthorizationCodeResponseTypeHandler(IGrantedTokenHelper grantedTokenHelper, IEnumerable <ITokenBuilder> tokenBuilders)
 {
     _grantedTokenHelper = grantedTokenHelper;
     _tokenBuilders      = tokenBuilders;
 }
示例#22
0
 public OpenIDRefreshTokenBuilder(IGrantedTokenHelper grantedTokenHelper) : base(grantedTokenHelper)
 {
 }
示例#23
0
 public OpenIDAccessTokenBuilder(IGrantedTokenHelper grantedTokenHelper, IJwtBuilder jwtBuilder) : base(grantedTokenHelper, jwtBuilder)
 {
 }
示例#24
0
 public OAuthPKCEAuthenticationHandler(IGrantedTokenHelper grantedTokenHelper, IEnumerable <ICodeChallengeMethodHandler> codeChallengeMethodHandlers)
 {
     _grantedTokenHelper          = grantedTokenHelper;
     _codeChallengeMethodHandlers = codeChallengeMethodHandlers;
 }
 public AuthorizationCodeResponseTypeHandler(IGrantedTokenHelper grantedTokenHelper, IEnumerable <ITokenBuilder> tokenBuilders, IOptions <OAuthHostOptions> options)
 {
     _grantedTokenHelper = grantedTokenHelper;
     _tokenBuilders      = tokenBuilders;
     _options            = options.Value;
 }
示例#26
0
 public AuthorizationCodeResponseTypeHandler(IGrantedTokenHelper grantedTokenHelper, IEnumerable <ICodeChallengeMethodHandler> codeChallengeMethodHandlers)
 {
     _grantedTokenHelper          = grantedTokenHelper;
     _codeChallengeMethodHandlers = codeChallengeMethodHandlers;
 }
示例#27
0
 public AccessTokenBuilder(IGrantedTokenHelper grantedTokenHelper, IJwtBuilder jwtBuilder, IOptions <OAuthHostOptions> options)
 {
     _grantedTokenHelper = grantedTokenHelper;
     _jwtBuilder         = jwtBuilder;
     _oauthHostOptions   = options.Value;
 }