示例#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;
 }
 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;
 }