Ejemplo n.º 1
0
 public OpenBankingApiAccountConsentController(
     IOAuthUserRepository oauthUserRepository,
     IOAuthClientRepository oauthClientRepository,
     IUserConsentFetcher userConsentFetcher,
     IDataProtectionProvider dataProtectionProvider,
     IAccountAccessConsentRepository accountAccessConsentRepository,
     IAccountRepository accountRepository,
     IExtractRequestHelper extractRequestHelper,
     IResponseModeHandler responseModeHandler,
     IMediator mediator,
     ILogger <OpenBankingApiAccountConsentController> logger,
     IOptions <OAuthHostOptions> oauthHostOptions,
     IOptions <OpenBankingApiOptions> openbankingApiOptions)
 {
     _oauthUserRepository            = oauthUserRepository;
     _oauthClientRepository          = oauthClientRepository;
     _userConsentFetcher             = userConsentFetcher;
     _dataProtector                  = dataProtectionProvider.CreateProtector("Authorization");
     _accountAccessConsentRepository = accountAccessConsentRepository;
     _accountRepository              = accountRepository;
     _responseModeHandler            = responseModeHandler;
     _extractRequestHelper           = extractRequestHelper;
     _mediator              = mediator;
     _logger                = logger;
     _oauthHostOptions      = oauthHostOptions.Value;
     _openbankingApiOptions = openbankingApiOptions.Value;
 }
Ejemplo n.º 2
0
 public ConsentsController(
     IOAuthUserRepository oauthUserRepository,
     IOAuthClientRepository oauthClientRepository,
     IOAuthScopeRepository oauthScopeRepository,
     IUserConsentFetcher userConsentFetcher,
     IDataProtectionProvider dataProtectionProvider,
     IResponseModeHandler responseModeHandler,
     ITranslationHelper translationHelper,
     IExtractRequestHelper extractRequestHelper)
 {
     _oauthUserRepository   = oauthUserRepository;
     _oauthClientRepository = oauthClientRepository;
     _oauthScopeRepository  = oauthScopeRepository;
     _userConsentFetcher    = userConsentFetcher;
     _responseModeHandler   = responseModeHandler;
     _dataProtector         = dataProtectionProvider.CreateProtector("Authorization");
     _translationHelper     = translationHelper;
     _extractRequestHelper  = extractRequestHelper;
 }
Ejemplo n.º 3
0
 public AuthorizationController(IAuthorizationRequestHandler authorizationRequestHandler, IResponseModeHandler responseModeHandler, IDataProtectionProvider dataProtectionProvider)
 {
     _authorizationRequestHandler = authorizationRequestHandler;
     _responseModeHandler         = responseModeHandler;
     _dataProtector = dataProtectionProvider.CreateProtector("Authorization");
 }