Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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));
        }
Ejemplo n.º 25
0
 private void LogError(TelemetryScopedLogger scopedLogger, Exception ex)
 {
     scopedLogger.Error(ex);
     if (environment.IsDevelopment())
     {
         Debug.WriteLine(ex.ToString());
     }
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 28
0
 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }