Пример #1
0
 public SamlMetadataExposeLogic(FoxIDsSettings settings, TelemetryScopedLogger logger, ITenantRepository tenantRepository, Saml2ConfigurationLogic saml2ConfigurationLogic, IHttpContextAccessor httpContextAccessor) : base(httpContextAccessor)
 {
     this.settings                = settings;
     this.logger                  = logger;
     this.tenantRepository        = tenantRepository;
     this.saml2ConfigurationLogic = saml2ConfigurationLogic;
 }
Пример #2
0
 public TUserController(TelemetryScopedLogger logger, IMapper mapper, ITenantRepository tenantRepository, BaseAccountLogic accountLogic) : base(logger)
 {
     this.logger           = logger;
     this.mapper           = mapper;
     this.tenantRepository = tenantRepository;
     this.accountLogic     = accountLogic;
 }
Пример #3
0
 public SessionLogic(FoxIDsSettings settings, TelemetryScopedLogger logger, ITenantRepository tenantRepository, SingleCookieRepository <SessionCookie> sessionCookieRepository, IHttpContextAccessor httpContextAccessor) : base(httpContextAccessor)
 {
     this.settings                = settings;
     this.logger                  = logger;
     this.tenantRepository        = tenantRepository;
     this.sessionCookieRepository = sessionCookieRepository;
 }
Пример #4
0
 public GenericPartyApiController(TelemetryScopedLogger logger, IMapper mapper, ITenantRepository tenantRepository, ValidateGenericPartyLogic validateGenericPartyLogic) : base(logger)
 {
     this.logger                    = logger;
     this.mapper                    = mapper;
     this.tenantRepository          = tenantRepository;
     this.validateGenericPartyLogic = validateGenericPartyLogic;
 }
Пример #5
0
 public AccountLogic(TelemetryScopedLogger logger, ITenantRepository tenantRepository, IMasterRepository masterRepository, SecretHashLogic secretHashLogic, IHttpContextAccessor httpContextAccessor) : base(httpContextAccessor)
 {
     this.logger           = logger;
     this.tenantRepository = tenantRepository;
     this.masterRepository = masterRepository;
     this.secretHashLogic  = secretHashLogic;
 }
Пример #6
0
 public TTrackController(TelemetryScopedLogger logger, IMapper mapper, ITenantRepository tenantRepository, TrackLogic trackLogic) : base(logger)
 {
     this.logger           = logger;
     this.mapper           = mapper;
     this.tenantRepository = tenantRepository;
     this.trackLogic       = trackLogic;
 }
Пример #7
0
 public TTenantController(TelemetryScopedLogger logger, IMapper mapper, ITenantRepository tenantRepository, MasterTenantLogic masterTenantLogic) : base(logger)
 {
     this.logger            = logger;
     this.mapper            = mapper;
     this.tenantRepository  = tenantRepository;
     this.masterTenantLogic = masterTenantLogic;
 }
Пример #8
0
 public LoginUpLogic(TelemetryScopedLogger logger, IServiceProvider serviceProvider, SequenceLogic sequenceLogic, ClaimTransformationsLogic claimTransformationsLogic, IHttpContextAccessor httpContextAccessor) : base(httpContextAccessor)
 {
     this.logger                    = logger;
     this.serviceProvider           = serviceProvider;
     this.sequenceLogic             = sequenceLogic;
     this.claimTransformationsLogic = claimTransformationsLogic;
 }
Пример #9
0
 public TenantClientSecretDownPartyController(TelemetryScopedLogger logger, IMapper mapper, ITenantRepository tenantService, SecretHashLogic secretHashLogic) : base(logger)
 {
     this.logger          = logger;
     this.mapper          = mapper;
     this.tenantService   = tenantService;
     this.secretHashLogic = secretHashLogic;
 }
Пример #10
0
 public SamlMetadataLogic(TelemetryScopedLogger logger, IServiceProvider serviceProvider, ITenantRepository tenantRepository, Saml2ConfigurationLogic saml2ConfigurationLogic, IHttpContextAccessor httpContextAccessor) : base(httpContextAccessor)
 {
     this.logger                  = logger;
     this.serviceProvider         = serviceProvider;
     this.tenantRepository        = tenantRepository;
     this.saml2ConfigurationLogic = saml2ConfigurationLogic;
 }
Пример #11
0
 public TenantPartyApiController(TelemetryScopedLogger logger, IMapper mapper, ITenantRepository tenantService, ValidatePartyLogic validatePartyLogic) : base(logger)
 {
     this.logger             = logger;
     this.mapper             = mapper;
     this.tenantService      = tenantService;
     this.validatePartyLogic = validatePartyLogic;
 }
Пример #12
0
 public JwtLogic(TelemetryScopedLogger logger, TrackKeyLogic trackKeyLogic, ClaimsLogic <TClient, TScope, TClaim> claimsLogic, OAuthResourceScopeLogic <TClient, TScope, TClaim> oauthResourceScopeLogic, IHttpContextAccessor httpContextAccessor) : base(httpContextAccessor)
 {
     this.logger                  = logger;
     this.trackKeyLogic           = trackKeyLogic;
     this.claimsLogic             = claimsLogic;
     this.oauthResourceScopeLogic = oauthResourceScopeLogic;
 }
Пример #13
0
 public AccountTwoFactorLogic(TelemetryScopedLogger logger, ITenantRepository tenantRepository, ExternalSecretLogic externalSecretLogic, SecretHashLogic secretHashLogic, IHttpContextAccessor httpContextAccessor) : base(httpContextAccessor)
 {
     this.logger              = logger;
     this.tenantRepository    = tenantRepository;
     this.externalSecretLogic = externalSecretLogic;
     this.secretHashLogic     = secretHashLogic;
 }
 public OidcFrontChannelLogoutUpLogic(TelemetryScopedLogger logger, ITenantRepository tenantRepository, SessionUpPartyLogic sessionUpPartyLogic, SingleLogoutDownLogic singleLogoutDownLogic, OAuthRefreshTokenGrantDownLogic <OAuthDownClient, OAuthDownScope, OAuthDownClaim> oauthRefreshTokenGrantLogic, IHttpContextAccessor httpContextAccessor) : base(httpContextAccessor)
 {
     this.logger                      = logger;
     this.tenantRepository            = tenantRepository;
     this.sessionUpPartyLogic         = sessionUpPartyLogic;
     this.singleLogoutDownLogic       = singleLogoutDownLogic;
     this.oauthRefreshTokenGrantLogic = oauthRefreshTokenGrantLogic;
 }
Пример #15
0
 public OAuthTokenDownLogic(TelemetryScopedLogger logger, ITenantRepository tenantRepository, JwtLogic <TClient, TScope, TClaim> jwtLogic, SecretHashLogic secretHashLogic, OAuthResourceScopeLogic <TClient, TScope, TClaim> oauthResourceScopeLogic, IHttpContextAccessor httpContextAccessor) : base(httpContextAccessor)
 {
     this.logger                  = logger;
     this.tenantRepository        = tenantRepository;
     this.jwtLogic                = jwtLogic;
     this.secretHashLogic         = secretHashLogic;
     this.oauthResourceScopeLogic = oauthResourceScopeLogic;
 }
Пример #16
0
 public SingleLogoutDownLogic(TelemetryScopedLogger logger, IServiceProvider serviceProvider, ITenantRepository tenantRepository, SequenceLogic sequenceLogic, SecurityHeaderLogic securityHeaderLogic, IHttpContextAccessor httpContextAccessor) : base(httpContextAccessor)
 {
     this.logger              = logger;
     this.serviceProvider     = serviceProvider;
     this.tenantRepository    = tenantRepository;
     this.sequenceLogic       = sequenceLogic;
     this.securityHeaderLogic = securityHeaderLogic;
 }
Пример #17
0
 public TTrackKeyTypeController(TelemetryScopedLogger logger, FoxIDsControlSettings settings, IMapper mapper, ITenantRepository tenantRepository, TokenCredential tokenCredential) : base(logger)
 {
     this.logger           = logger;
     this.settings         = settings;
     this.mapper           = mapper;
     this.tenantRepository = tenantRepository;
     this.tokenCredential  = tokenCredential;
 }
Пример #18
0
 public ActionController(TelemetryScopedLogger logger, IStringLocalizer localizer, ITenantRepository tenantRepository, AccountLogic userAccountLogic, AccountActionLogic accountActionLogic) : base(logger)
 {
     this.logger             = logger;
     this.localizer          = localizer;
     this.tenantRepository   = tenantRepository;
     this.userAccountLogic   = userAccountLogic;
     this.accountActionLogic = accountActionLogic;
 }
Пример #19
0
 public SamlMetadataReadUpLogic(FoxIDsSettings settings, TelemetryScopedLogger logger, IConnectionMultiplexer redisConnectionMultiplexer, ITenantRepository tenantRepository, SamlMetadataReadLogic samlMetadataReadLogic, IHttpContextAccessor httpContextAccessor) : base(httpContextAccessor)
 {
     this.settings = settings;
     this.logger   = logger;
     this.redisConnectionMultiplexer = redisConnectionMultiplexer;
     this.tenantRepository           = tenantRepository;
     this.samlMetadataReadLogic      = samlMetadataReadLogic;
 }
Пример #20
0
 public OidcFrontChannelLogoutDownLogic(TelemetryScopedLogger logger, TrackIssuerLogic trackIssuerLogic, ITenantRepository tenantRepository, SecurityHeaderLogic securityHeaderLogic, SingleLogoutDownLogic singleLogoutDownLogic, IHttpContextAccessor httpContextAccessor) : base(httpContextAccessor)
 {
     this.logger                = logger;
     this.trackIssuerLogic      = trackIssuerLogic;
     this.tenantRepository      = tenantRepository;
     this.securityHeaderLogic   = securityHeaderLogic;
     this.singleLogoutDownLogic = singleLogoutDownLogic;
 }
Пример #21
0
 public TTrackKeyTypeController(TelemetryScopedLogger logger, FoxIDsControlSettings settings, IMapper mapper, ITenantRepository tenantRepository, ExternalKeyLogic externalKeyLogic) : base(logger)
 {
     this.logger           = logger;
     this.settings         = settings;
     this.mapper           = mapper;
     this.tenantRepository = tenantRepository;
     this.externalKeyLogic = externalKeyLogic;
 }
Пример #22
0
 public SequenceLogic(FoxIDsSettings settings, TelemetryScopedLogger logger, IDataProtectionProvider dataProtectionProvider, IDistributedCache distributedCache, LocalizationLogic localizationLogic, IHttpContextAccessor httpContextAccessor) : base(httpContextAccessor)
 {
     this.settings = settings;
     this.logger   = logger;
     this.dataProtectionProvider = dataProtectionProvider;
     this.distributedCache       = distributedCache;
     this.localizationLogic      = localizationLogic;
 }
Пример #23
0
 public OidcTokenDownLogic(TelemetryScopedLogger logger, ITenantRepository tenantRepository, JwtDownLogic <TClient, TScope, TClaim> jwtDownLogic, OAuthAuthCodeGrantDownLogic <TClient, TScope, TClaim> oauthAuthCodeGrantDownLogic, OAuthRefreshTokenGrantDownLogic <TClient, TScope, TClaim> oauthRefreshTokenGrantDownLogic, SecretHashLogic secretHashLogic, ClaimTransformLogic claimTransformLogic, OAuthResourceScopeDownLogic <TClient, TScope, TClaim> oauthResourceScopeDownLogic, IHttpContextAccessor httpContextAccessor) : base(logger, tenantRepository, jwtDownLogic, secretHashLogic, claimTransformLogic, oauthResourceScopeDownLogic, httpContextAccessor)
 {
     this.logger                          = logger;
     this.tenantRepository                = tenantRepository;
     this.jwtDownLogic                    = jwtDownLogic;
     this.oauthAuthCodeGrantDownLogic     = oauthAuthCodeGrantDownLogic;
     this.oauthRefreshTokenGrantDownLogic = oauthRefreshTokenGrantDownLogic;
 }
Пример #24
0
        protected async Task SetSequanceAndCulture(HttpContext httpContext, TelemetryScopedLogger scopedLogger, string routeAction)
        {
            var culture = await SetSequanceAndGetSupportedCultureAsync(httpContext, scopedLogger, routeAction);

            var requestCulture = new RequestCulture(culture);

            httpContext.Features.Set <IRequestCultureFeature>(new RequestCultureFeature(requestCulture, null));
        }
Пример #25
0
 private void LogError(TelemetryScopedLogger scopedLogger, Exception ex)
 {
     scopedLogger.Error(ex);
     if (environment.IsDevelopment())
     {
         Debug.WriteLine(ex.ToString());
     }
 }
Пример #26
0
 public OidcDiscoveryReadUpLogic(FoxIDsSettings settings, TelemetryScopedLogger logger, IConnectionMultiplexer redisConnectionMultiplexer, ITenantRepository tenantRepository, OidcDiscoveryReadLogic oidcDiscoveryReadLogic, IHttpContextAccessor httpContextAccessor) : base(httpContextAccessor)
 {
     this.settings = settings;
     this.logger   = logger;
     this.redisConnectionMultiplexer = redisConnectionMultiplexer;
     this.tenantRepository           = tenantRepository;
     this.oidcDiscoveryReadLogic     = oidcDiscoveryReadLogic;
 }
Пример #27
0
 public SamlLogoutUpLogic(TelemetryScopedLogger logger, IServiceProvider serviceProvider, ITenantRepository tenantRepository, SequenceLogic sequenceLogic, FormActionLogic formActionLogic, Saml2ConfigurationLogic saml2ConfigurationLogic, IHttpContextAccessor httpContextAccessor) : base(httpContextAccessor)
 {
     this.logger                  = logger;
     this.serviceProvider         = serviceProvider;
     this.tenantRepository        = tenantRepository;
     this.sequenceLogic           = sequenceLogic;
     this.formActionLogic         = formActionLogic;
     this.saml2ConfigurationLogic = saml2ConfigurationLogic;
 }
 public OidcRpInitiatedLogoutDownLogic(TelemetryScopedLogger logger, IServiceProvider serviceProvider, ITenantRepository tenantRepository, SequenceLogic sequenceLogic, SecurityHeaderLogic securityHeaderLogic, JwtDownLogic <TClient, TScope, TClaim> jwtDownLogic, IHttpContextAccessor httpContextAccessor) : base(httpContextAccessor)
 {
     this.logger              = logger;
     this.serviceProvider     = serviceProvider;
     this.tenantRepository    = tenantRepository;
     this.sequenceLogic       = sequenceLogic;
     this.securityHeaderLogic = securityHeaderLogic;
     this.jwtDownLogic        = jwtDownLogic;
 }
Пример #29
0
 public TMyTenantController(TelemetryScopedLogger logger, IMapper mapper, ITenantRepository tenantRepository, MasterTenantLogic masterTenantLogic, TenantCacheLogic tenantCacheLogic, ExternalKeyLogic externalKeyLogic) : base(logger)
 {
     this.logger            = logger;
     this.mapper            = mapper;
     this.tenantRepository  = tenantRepository;
     this.masterTenantLogic = masterTenantLogic;
     this.tenantCacheLogic  = tenantCacheLogic;
     this.externalKeyLogic  = externalKeyLogic;
 }
Пример #30
0
 public SamlAuthnUpLogic(TelemetryScopedLogger logger, IServiceProvider serviceProvider, ITenantRepository tenantRepository, SequenceLogic sequenceLogic, ClaimTransformationsLogic claimTransformationsLogic, Saml2ConfigurationLogic saml2ConfigurationLogic, IHttpContextAccessor httpContextAccessor) : base(httpContextAccessor)
 {
     this.logger                    = logger;
     this.serviceProvider           = serviceProvider;
     this.tenantRepository          = tenantRepository;
     this.sequenceLogic             = sequenceLogic;
     this.claimTransformationsLogic = claimTransformationsLogic;
     this.saml2ConfigurationLogic   = saml2ConfigurationLogic;
 }