public TenantToClaimIdentityServerProfileService(UserManager <TUser> userManager,
                                                  IUserClaimsPrincipalFactory <TUser> claimsFactory,
                                                  ILogger <TenantToClaimIdentityServerProfileService <TUser> > logger,
                                                  TenantConfigurations tenantConfigurations,
                                                  IExternalClaimsService externalClaimsService = null) : base(userManager, claimsFactory, logger)
 {
     _tenantClaimName       = tenantConfigurations.TenantClaimName();
     _externalClaimsService = externalClaimsService;
 }
        public ClaimsStrategy(ILogger <ClaimsStrategy> logger, TenantConfigurations tenantConfigurations)
        {
            _logger          = logger;
            _tenantClaimName = tenantConfigurations.TenantClaimName();

            if (_tenantClaimName == null)
            {
                _tenantClaimName = ContribClaimTypes.TenantId;
            }
        }
Пример #3
0
 public MultiTenantUserClaimsPrincipalFactory(
     UserManager <TUser> userManager,
     RoleManager <TUserRole> roleManager,
     IOptions <IdentityOptions> options,
     TenantConfigurations tenantConfigurations,
     IExternalClaimsService externalClaimsService = null) : base(userManager, roleManager, options)
 {
     _tenantClaimName       = tenantConfigurations.TenantClaimName();
     _externalClaimsService = externalClaimsService;
 }
Пример #4
0
 public GenerateApplicationIdClaimFromUser(TenantConfigurations tenantConfigurations)
 {
     _tenantClaimName = tenantConfigurations.TenantClaimName();
 }