Activities of "maliming"

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

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.

Showing 12041 to 12050 of 12939 entries
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.8.0-preview. Updated on November 16, 2026, 06:26
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.