Activities of "maliming"

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

The response of api is Status Code: 403 Forbidden

Can not find the given email address:Ish @s.com

It will throw an UserFriendlyException exception when the GetUserByEmail method cannot find user, and its status code will be 403, which is by design.

protected virtual async Task<IdentityUser> GetUserByEmail(string email)
{
    var user = await UserManager.FindByEmailAsync(email);
    if (user == null)
    {
        throw new UserFriendlyException(L["Volo.Account:InvalidEmailAddress", email]);
    }

    return user;
}

https://github.com/abpframework/abp/blob/dev/framework/src/Volo.Abp.AspNetCore/Volo/Abp/AspNetCore/ExceptionHandling/DefaultHttpExceptionStatusCodeFinder.cs#L72

Answer

hi

  • Your Package version.

Can you check the browser's console and app logs? Are you using HTTPS?

hi

it started working. but I don't see tenant swith(I hope is expected behavior)

This is expected. The application always tries to resolve the tenant from the domain name.

  1. If I create/add user in teant say t1. user is created in both tenant t1(t1.abptest.com) and also main site(abptest.com). because of this mylinkuser functionality is breaking and it redirecting to abptest.com always.
  2. Register is not working
  3. My User Links is also not working

Can you share some screenshots or log info?

Can you check if the current tenant is a domain name? Maybe it is not working properly.

We have related sample. https://github.com/abpframework/abp-samples/tree/master/DomainTenantResolver#angular https://github.com/abpframework/abp-samples/tree/master/DomainTenantResolver/NG

Is there no way of doing this?

This is not a standard practice, and the design of the framework did not consider it.

hi

I will check asap. sorry for that.

hi Leonardo

This problem may have to wait for v4.4 to resolve. Sorry for that.

Showing 10671 to 10680 of 11567 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.