Activities of "maliming"

hi Ravisha

Can you share some screenshots about "my link user"? Thanks

hi lalitChougule

Please create a class that repleace IdentityUserManager in you test project instead of mock it.

[Dependency(ReplaceServices = true)]
[ExposeServices(typeof(IdentityUserManager))]
public class MyIdentityUserManager : IdentityUserManager
{
    public MyIdentityUserManager(IdentityUserStore store, IIdentityRoleRepository roleRepository,
        IIdentityUserRepository userRepository, IOptions<IdentityOptions> optionsAccessor,
        IPasswordHasher<IdentityUser> passwordHasher, IEnumerable<IUserValidator<IdentityUser>> userValidators,
        IEnumerable<IPasswordValidator<IdentityUser>> passwordValidators, ILookupNormalizer keyNormalizer,
        IdentityErrorDescriber errors, IServiceProvider services, ILogger<IdentityUserManager> logger,
        ICancellationTokenProvider cancellationTokenProvider,
        IOrganizationUnitRepository organizationUnitRepository, ISettingProvider settingProvider) : base(store,
        roleRepository, userRepository, optionsAccessor, passwordHasher, userValidators, passwordValidators,
        keyNormalizer, errors, services, logger, cancellationTokenProvider, organizationUnitRepository,
        settingProvider)
    {
    }

    public override Task<IdentityUser> FindByIdAsync(string userId)
    {
        if (userId == "39faa1bb-6509-6a7d-b17f-0deee2cf47db")
        {
            return Task.FromResult(new IdentityUser( //...))
        }

        return base.FindByIdAsync(userId);
    }
}
Answer

hi gvnuysal

Can you check if there is a bearer token in the request header?

hi

You can implementation your own AWSSESEmailSender, Just like MailKitSmtpEmailSender .

https://github.com/abpframework/abp/blob/dev/framework/src/Volo.Abp.MailKit/Volo/Abp/MailKit/MailKitSmtpEmailSender.cs#L15 https://github.com/abpframework/abp/blob/dev/framework/src/Volo.Abp.MailKit/Volo/Abp/MailKit/AbpMailKitModule.cs https://github.com/abpframework/abp/blob/dev/framework/src/Volo.Abp.MailKit/Volo/Abp/MailKit/IMailKitSmtpEmailSender.cs https://github.com/abpframework/abp/blob/dev/framework/src/Volo.Abp.MailKit/Volo/Abp/MailKit/AbpMailKitOptions.cs

services.Replace(ServiceDescriptor.Transient<IClientConfigurationValidator, AbpClientConfigurationValidator>()); There is no method called Replace() IcollectionService.

using Microsoft.Extensions.DependencyInjection.Extensions;

So I manually updated the database table and after that cors issue resolved.

You shouldn't do that, These extension methods will handle it. Please refer to the demo I provided above.

AddAbpStrictRedirectUriValidator
AddAbpClientConfigurationValidator
AddAbpWildcardSubdomainCorsPolicyService

now "my link user" feature is will not working between the tenants.

Can you explain? Is there any error or somthing?

We have requirement one user can login to multiple tenants with same user createntials or different credeantilas, how do we resolve this.

If this is a new question, please create a new thread.

hi Abdulhakim

Can you use the latest app-pro project to reproduce the problem and share detailed steps?

hi

Can you try to use different endpoint?

https://github.com/domaindrivendev/Swashbuckle.AspNetCore#list-multiple-swagger-documents

AllowedCorsOrigins contains invalid origin: https://{0}.AbpTest.com

This method should resolve this issue, Can you debug it? context.Services.AddAbpClientConfigurationValidator();

services.Replace(ServiceDescriptor.Transient<IClientConfigurationValidator, AbpClientConfigurationValidator>());
public class AbpClientConfigurationValidator : DefaultClientConfigurationValidator
{
    public AbpClientConfigurationValidator(IdentityServerOptions options)
        : base(options)
    {
    }

    protected override Task ValidateAllowedCorsOriginsAsync(ClientConfigurationValidationContext context)
    {
        context.Client.AllowedCorsOrigins = context.Client
            .AllowedCorsOrigins.Select(x => x.Replace("{0}.", string.Empty, StringComparison.OrdinalIgnoreCase))
            .ToHashSet();

        return base.ValidateAllowedCorsOriginsAsync(context);
    }
}

hi

You can try this:

var user = await UserManager.FindByIdAsync(UserId.ToString());
if (user != null)
{
    var isPersistent = (await HttpContext.AuthenticateAsync(IdentityConstants.ApplicationScheme))?.Properties?.IsPersistent ?? false;
    await SignInManager.SignOutAsync();

    var additionalClaims = new List<Claim>();
    await SignInManager.SignInWithClaimsAsync(user, new AuthenticationProperties
    {
        IsPersistent = isPersistent
    }, additionalClaims);
    
    //Or
    //await SignInManager.SignInAsync(user, isPersistent: true);
}

hi

I can't provide professional advice on SSL.

We have examples of using domain to resolve tenants.

https://github.com/abpframework/abp-samples/tree/master/DomainTenantResolver#angular

Showing 10661 to 10670 of 11559 entries
Learn More, Pay Less
33% OFF
All Trainings!
Get Your Deal
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.1.0-preview. Updated on December 25, 2025, 06:16
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.