Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ScopeAccessHandler"/> class.
 /// </summary>
 /// <param name="pepSettings"> The settings for PEP.</param>
 public ScopeAccessHandler(
     IOptions <PepSettings> pepSettings,
     ILogger <ScopeAccessHandler> logger)
 {
     _pepSettings = pepSettings.Value;
     _logger      = logger;
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AuthorizationAppSI"/> class
 /// </summary>
 /// <param name="httpClientAccessor">The Http client accessor</param>
 /// <param name="logger">the handler for logger service</param>
 /// /// <param name="pepSettings">The settings for pep</param>
 public PDPAppSI(
     IHttpClientAccessor httpClientAccessor,
     ILogger <PDPAppSI> logger,
     IOptions <PepSettings> pepSettings)
 {
     _authClient  = httpClientAccessor.AuthorizationClient;
     _logger      = logger;
     _pepSettings = pepSettings.Value;
 }
Beispiel #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AuthorizationAppSI"/> class
 /// </summary>
 /// <param name="httpClientAccessor">The Http client accessor</param>
 /// <param name="logger">the handler for logger service</param>
 /// /// <param name="pepSettings">The settings for pep</param>
 public PDPAppSI(
     ILogger <PDPAppSI> logger,
     IOptions <PepSettings> pepSettings,
     AuthorizationApiClient authorizationApiClient)
 {
     _logger                 = logger;
     _pepSettings            = pepSettings.Value;
     _authorizationApiClient = authorizationApiClient;
 }
Beispiel #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AppAccessHandler"/> class.
 /// </summary>
 /// <param name="httpContextAccessor">The http context accessor</param>
 /// <param name="pdp">The pdp</param>
 /// <param name="pepSettings">The settings for pep</param>
 public AppAccessHandler(
     IHttpContextAccessor httpContextAccessor,
     IPDP pdp,
     IOptions <PepSettings> pepSettings,
     ILogger <AppAccessHandler> logger)
 {
     _httpContextAccessor = httpContextAccessor;
     _pdp         = pdp;
     _pepSettings = pepSettings.Value;
     _logger      = logger;
 }
Beispiel #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="StorageAccessHandler"/> class.
 /// </summary>
 /// <param name="httpContextAccessor">The http context accessor</param>
 /// <param name="pdp">The pdp</param>
 /// <param name="pepSettings">The settings for pep</param>
 /// <param name="logger">The logger. </param>
 /// <param name="instanceRepository">The instance repository</param>
 /// <param name="memoryCache">The memory cache</param>
 public StorageAccessHandler(
     IHttpContextAccessor httpContextAccessor,
     IPDP pdp,
     IOptions <PepSettings> pepSettings,
     ILogger <StorageAccessHandler> logger,
     IInstanceRepository instanceRepository,
     IMemoryCache memoryCache)
 {
     _httpContextAccessor = httpContextAccessor;
     _pdp                = pdp;
     _logger             = logger;
     _pepSettings        = pepSettings.Value;
     _instanceRepository = instanceRepository;
     _memoryCache        = memoryCache;
 }
Beispiel #6
0
 public PepWithPDPAuthorizationMockSI(IInstance instanceService, IOptions <PepSettings> pepSettings)
 {
     this._instanceService = instanceService;
     _pepSettings          = pepSettings.Value;
 }
 public PepWithPDPAuthorizationMockSI(IInstanceRepository instanceRepository, IOptions <PepSettings> pepSettings)
 {
     this._instanceRepository = instanceRepository;
     _pepSettings             = pepSettings.Value;
 }