Пример #1
0
 public AuthenticateClient(IJwsGenerator jwsGenerator, IJwtParser jwtParser, IOAuthClientQueryRepository oauthClientRepository, IEnumerable <IOAuthClientAuthenticationHandler> handlers)
 {
     _jwsGenerator          = jwsGenerator;
     _jwtParser             = jwtParser;
     _oauthClientRepository = oauthClientRepository;
     _handlers = handlers;
 }
Пример #2
0
 public CheckSessionController(IAuthenticationService authenticationService, IJwtParser jwtParser, IOAuthClientQueryRepository oAuthClientQueryRepository, IOptions <OpenIDHostOptions> options)
 {
     _authenticationService      = authenticationService;
     _jwtParser                  = jwtParser;
     _oauthClientQueryRepository = oAuthClientQueryRepository;
     _openidHostOptions          = options.Value;
 }
 public OpenBankingApiAccountConsentController(
     IOAuthUserQueryRepository oauthUserRepository,
     IOAuthUserCommandRepository oauthUserCommandRepository,
     IOAuthClientQueryRepository oauthClientRepository,
     IUserConsentFetcher userConsentFetcher,
     IDataProtectionProvider dataProtectionProvider,
     IAccountAccessConsentRepository accountAccessConsentRepository,
     IAccountRepository accountRepository,
     IMediator mediator,
     ILogger <OpenBankingApiAccountConsentController> logger,
     IOptions <OAuthHostOptions> oauthHostOptions,
     IOptions <OpenBankingApiOptions> openbankingApiOptions)
 {
     _oauthUserRepository        = oauthUserRepository;
     _oAuthUserCommandRepository = oauthUserCommandRepository;
     _oauthClientRepository      = oauthClientRepository;
     _userConsentFetcher         = userConsentFetcher;
     _dataProtector = dataProtectionProvider.CreateProtector("Authorization");
     _accountAccessConsentRepository = accountAccessConsentRepository;
     _accountRepository     = accountRepository;
     _mediator              = mediator;
     _logger                = logger;
     _oauthHostOptions      = oauthHostOptions.Value;
     _openbankingApiOptions = openbankingApiOptions.Value;
 }
Пример #4
0
 public UpdateOAuthClientHandler(
     IOAuthClientValidator oauthClientValidator,
     IOAuthClientQueryRepository oauthClientQueryRepository,
     IOAuthClientCommandRepository oAuthClientCommandRepository,
     ILogger <BaseOAuthClientHandler> logger) : base(oauthClientQueryRepository, oAuthClientCommandRepository, logger)
 {
     _oauthClientValidator = oauthClientValidator;
 }
Пример #5
0
 public ConsentsController(IOAuthUserQueryRepository oauthUserRepository, IOAuthUserCommandRepository oauthUserCommandRepository, IOAuthClientQueryRepository oauthClientRepository, IUserConsentFetcher userConsentFetcher, IDataProtectionProvider dataProtectionProvider, IOptions <OAuthHostOptions> opts)
 {
     _oauthUserRepository        = oauthUserRepository;
     _oAuthUserCommandRepository = oauthUserCommandRepository;
     _oauthClientRepository      = oauthClientRepository;
     _userConsentFetcher         = userConsentFetcher;
     _dataProtector    = dataProtectionProvider.CreateProtector("Authorization");
     _oauthHostOptions = opts.Value;
 }
Пример #6
0
 public UserInfoController(IJwtParser jwtParser, IJwtBuilder jwtBuilder, IOAuthScopeQueryRepository oauthScopeRepository, IOAuthUserQueryRepository oauthUserRepository, IOAuthClientQueryRepository oauthClientRepository, IEnumerable <IClaimsSource> claimsSources)
 {
     _jwtParser             = jwtParser;
     _jwtBuilder            = jwtBuilder;
     _oauthScopeRepository  = oauthScopeRepository;
     _oauthUserRepository   = oauthUserRepository;
     _oauthClientRepository = oauthClientRepository;
     _claimsSources         = claimsSources;
 }
 public BaseOAuthClientHandler(
     IOAuthClientQueryRepository oauthClientQueryRepository,
     IOAuthClientCommandRepository oAuthClientCommandRepository,
     ILogger <BaseOAuthClientHandler> logger)
 {
     OAuthClientQueryRepository   = oauthClientQueryRepository;
     OAuthClientCommandRepository = oAuthClientCommandRepository;
     Logger = logger;
 }
 public AuthenticateController(
     IDataProtectionProvider dataProtectionProvider,
     IOAuthClientQueryRepository oauthClientRepository,
     IOAuthUserCommandRepository oauthUserCommandRepository,
     IAmrHelper amrHelper,
     ISmsAuthService smsAuthService) : base(dataProtectionProvider, oauthClientRepository, oauthUserCommandRepository, amrHelper)
 {
     _smsAuthService = smsAuthService;
 }
 public AuthenticateController(
     IPasswordAuthService passwordAuthService,
     IDataProtectionProvider dataProtectionProvider,
     IAmrHelper amrHelper,
     IOAuthClientQueryRepository oauthClientRepository,
     IOAuthUserCommandRepository oauthUserCommandRepository) : base(dataProtectionProvider, oauthClientRepository, oauthUserCommandRepository, amrHelper)
 {
     _passwordAuthService = passwordAuthService;
 }
Пример #10
0
 public DeleteOAuthClientHandler(IGrantedTokenHelper grantedTokenHelper,
                                 ITokenQueryRepository tokenQueryRepository,
                                 IOAuthClientQueryRepository oauthClientQueryRepository,
                                 IOAuthClientCommandRepository oAuthClientCommandRepository,
                                 ILogger <BaseOAuthClientHandler> logger) : base(oauthClientQueryRepository, oAuthClientCommandRepository, logger)
 {
     _grantedTokenHelper   = grantedTokenHelper;
     _tokenQueryRepository = tokenQueryRepository;
 }
 public AddOpenIdClientHandler(
     IOAuthClientQueryRepository oauthClientQueryRepository,
     IOAuthClientCommandRepository oAuthClientCommandRepository,
     IJwtParser jwtParser,
     IHttpClientFactory httpClientFactory,
     IOAuthClientValidator oauthClientValidator,
     IOptions <OAuthHostOptions> oauthHostOptions,
     IOptions <OpenIDHostOptions> openidHostOptions) : base(oauthClientQueryRepository, oAuthClientCommandRepository, jwtParser, httpClientFactory, oauthClientValidator, oauthHostOptions)
 {
     _openIDHostOptions = openidHostOptions.Value;
 }
 public BaseAuthenticateController(
     IDataProtectionProvider dataProtectionProvider,
     IOAuthClientQueryRepository oauthClientRepository,
     IOAuthUserCommandRepository oAuthUserCommandRepository,
     IAmrHelper amrHelper)
 {
     _dataProtector              = dataProtectionProvider.CreateProtector("Authorization");
     _oauthClientRepository      = oauthClientRepository;
     _oauthUserCommandRepository = oAuthUserCommandRepository;
     _amrHelper = amrHelper;
 }
Пример #13
0
 public JwtParser(
     IJweGenerator jweGenerator,
     IJwsGenerator jwsGenerator,
     IHttpClientFactory httpClientFactory,
     IOAuthClientQueryRepository oauthClientRepository,
     IJsonWebKeyQueryRepository jsonWebKeyRepository)
 {
     _jweGenerator          = jweGenerator;
     _jwsGenerator          = jwsGenerator;
     _httpClientFactory     = httpClientFactory;
     _oauthClientRepository = oauthClientRepository;
     _jsonWebKeyRepository  = jsonWebKeyRepository;
 }
Пример #14
0
 public AuthorizationRequestHandler(IEnumerable <IResponseTypeHandler> responseTypeHandlers,
                                    IEnumerable <IOAuthResponseMode> oauthResponseModes, IEnumerable <IAuthorizationRequestValidator> authorizationRequestValidators,
                                    IEnumerable <ITokenProfile> tokenProfiles, IAuthorizationRequestEnricher authorizationRequestEnricher, IOAuthClientQueryRepository oauthClientRepository, IOAuthUserQueryRepository oauthUserRepository,
                                    IHttpClientFactory httpClientFactory)
 {
     _responseTypeHandlers           = responseTypeHandlers;
     _oauthResponseModes             = oauthResponseModes;
     _authorizationRequestValidators = authorizationRequestValidators;
     _tokenProfiles = tokenProfiles;
     _authorizationRequestEnricher = authorizationRequestEnricher;
     _oauthClientRepository        = oauthClientRepository;
     _oauthUserRepository          = oauthUserRepository;
     _httpClientFactory            = httpClientFactory;
 }
Пример #15
0
 public AddOAuthClientHandler(
     IOAuthClientQueryRepository oauthClientQueryRepository,
     IOAuthClientCommandRepository oAuthClientCommandRepository,
     IJwtParser jwtParser,
     IHttpClientFactory httpClientFactory,
     IOAuthClientValidator oauthClientValidator,
     IOptions <OAuthHostOptions> oauthHostOptions)
 {
     OAuthClientQueryRepository   = oauthClientQueryRepository;
     OAuthClientCommandRepository = oAuthClientCommandRepository;
     _jwtParser            = jwtParser;
     _httpClientFactory    = httpClientFactory;
     _oauthClientValidator = oauthClientValidator;
     OauthHostOptions      = oauthHostOptions.Value;
 }
 public OAuthRegisterRequestHandler(IEnumerable <IGrantTypeHandler> grantTypeHandlers, IEnumerable <IResponseTypeHandler> responseTypeHandlers,
                                    IEnumerable <IOAuthClientAuthenticationHandler> oauthClientAuthenticationHandlers, IOAuthClientQueryRepository oauthClientQueryRepository,
                                    IOAuthClientCommandRepository oAuthClientCommandRepository, IOAuthScopeQueryRepository oauthScopeRepository, IJwtParser jwtParser, IHttpClientFactory httpClientFactory,
                                    IEnumerable <ISignHandler> signHandlers, IEnumerable <ICEKHandler> cekHandlers, IEnumerable <IEncHandler> encHandlers, IOptions <OAuthHostOptions> oauthHostOptions)
 {
     _grantTypeHandlers    = grantTypeHandlers;
     _responseTypeHandlers = responseTypeHandlers;
     _oauthClientAuthenticationHandlers = oauthClientAuthenticationHandlers;
     _oauthClientQueryRepository        = oauthClientQueryRepository;
     _oauthClientCommandRepository      = oAuthClientCommandRepository;
     _oauthScopeRepository = oauthScopeRepository;
     _jwtParser            = jwtParser;
     _httpClientFactory    = httpClientFactory;
     _signHandlers         = signHandlers;
     _cekHandlers          = cekHandlers;
     _encHandlers          = encHandlers;
     OauthHostOptions      = oauthHostOptions.Value;
 }
Пример #17
0
 public UserInfoController(
     IJwtParser jwtParser,
     IJwtBuilder jwtBuilder,
     IOAuthScopeQueryRepository oauthScopeRepository,
     IOAuthUserQueryRepository oauthUserRepository,
     IOAuthClientQueryRepository oauthClientRepository,
     IEnumerable <IClaimsSource> claimsSources,
     ITokenQueryRepository tokenQueryRepository,
     IClaimsJwsPayloadEnricher claimsJwsPayloadEnricher,
     ILogger <UserInfoController> logger)
 {
     _jwtParser                = jwtParser;
     _jwtBuilder               = jwtBuilder;
     _oauthScopeRepository     = oauthScopeRepository;
     _oauthUserRepository      = oauthUserRepository;
     _oauthClientRepository    = oauthClientRepository;
     _claimsSources            = claimsSources;
     _tokenQueryRepository     = tokenQueryRepository;
     _claimsJwsPayloadEnricher = claimsJwsPayloadEnricher;
     _logger = logger;
 }
Пример #18
0
 public GetOAuthClientHandler(IOAuthClientQueryRepository oauthClientQueryRepository, IOAuthClientCommandRepository oAuthClientCommandRepository, ILogger <BaseOAuthClientHandler> logger) : base(oauthClientQueryRepository, oAuthClientCommandRepository, logger)
 {
 }
 public OpenIDRegisterRequestHandler(IEnumerable <IGrantTypeHandler> grantTypeHandlers, IEnumerable <IResponseTypeHandler> responseTypeHandlers,
                                     IEnumerable <IOAuthClientAuthenticationHandler> oauthClientAuthenticationHandlers, IOAuthClientQueryRepository oauthClientQueryRepository,
                                     IOAuthClientCommandRepository oAuthClientCommandRepository, IOAuthScopeQueryRepository oauthScopeRepository, IJwtParser jwtParser, IHttpClientFactory httpClientFactory, IEnumerable <ISubjectTypeBuilder> subjectTypeBuilders, IEnumerable <ISignHandler> signHandlers,
                                     IEnumerable <ICEKHandler> cekHandlers, IEnumerable <IEncHandler> encHandlers, IOptions <OAuthHostOptions> oauthHostOptions, IOptions <OpenIDHostOptions> openidHostOptions)
     : base(grantTypeHandlers, responseTypeHandlers, oauthClientAuthenticationHandlers, oauthClientQueryRepository, oAuthClientCommandRepository, oauthScopeRepository, jwtParser, httpClientFactory, signHandlers, cekHandlers, encHandlers, oauthHostOptions)
 {
     _subjectTypeBuilders = subjectTypeBuilders;
     _openIDHostOptions   = openidHostOptions.Value;
 }
 public OpenIDAuthorizationRequestHandler(IEnumerable <IResponseTypeHandler> responseTypeHandlers, IEnumerable <IOAuthResponseMode> oauthResponseModes, IEnumerable <IAuthorizationRequestValidator> authorizationRequestValidators, IEnumerable <ITokenProfile> tokenProfiles, IAuthorizationRequestEnricher authorizationRequestEnricher, IOAuthClientQueryRepository oauthClientRepository, IOAuthUserQueryRepository oauthUserRepository, IHttpClientFactory httpClientFactory, IOptions <OpenIDHostOptions> options) : base(responseTypeHandlers, oauthResponseModes, authorizationRequestValidators, tokenProfiles, authorizationRequestEnricher, oauthClientRepository, oauthUserRepository, httpClientFactory)
 {
     _openidHostOptions = options.Value;
 }
Пример #21
0
 public ManagementController(IOAuthClientQueryRepository oauthClientQueryRepository, IOAuthScopeQueryRepository oAuthScopeQueryRepository)
 {
     _oauthClientQueryRepository = oauthClientQueryRepository;
     _oauthScopeQueryRepository  = oAuthScopeQueryRepository;
 }