Activities of "maliming"

These components are not commonly used, and there is no documentation yet.

Not yet.

The class tenant does not have Navigation property: public virtual Edition Edition { get; set; } So this is the limitation for the different commercial level? Thanks but default could get edition navigation property

An aggregate root can be referenced by it's Id. Do not reference it by it's navigation property.

https://docs.abp.io/en/abp/latest/Entities#aggregateroot-class

You can continue to find the Edition entity after finding the Tenant entity.

But commercial do not have phone registration. Right? So we have to implement by ourself. Right?

Yes, Phone number in some countries may not be unique.

hi

Did you override the WithDetailsAsync and WithDetails methods?

https://github.com/abpframework/abp/blob/dev/modules/identity/src/Volo.Abp.Identity.EntityFrameworkCore/Volo/Abp/Identity/EntityFrameworkCore/EfCoreIdentityRoleRepository.cs#L86

https://github.com/abpframework/abp/blob/dev/modules/identity/src/Volo.Abp.Identity.EntityFrameworkCore/Volo/Abp/Identity/EntityFrameworkCore/IdentityEfCoreQueryableExtensions.cs#L8

https://docs.abp.io/en/abp/latest/Best-Practices/Entity-Framework-Core-Integration#repository-implementation https://docs.abp.io/en/abp/4.2/Entity-Framework-Core#loading-related-entities

hi

You can inject the ICurrentPrincipalAccessor service. then check its claims. PrincipalAccessor.Principal?.FindEditionId() If there is no EditionId claims, you shuold CurrentPrincipalAccessor.Change to set is as tenant's EditionId.

using (CurrentPrincipalAccessor.Change(new Claim(AbpClaimTypes.EditionId, currentTenant.EditionId)))
{
   
}

if one Editon has the feature Trial checked, it is returning false anyway.

Can you confirm the EditionId is exists?


using (CurrentPrincipalAccessor.Change(new Claim(AbpClaimTypes.EditionId, currentTenant.EditionId)))
{
   
}

hi RonaldR

You should use abp.ajax in javascript, it automatically adds anti forgery token to the HTTP header to satisfy CSRF protection validation on the server side.

https://docs.abp.io/en/abp/latest/UI/AspNetCore/JavaScript-API/Ajax

hi please check this https://github.com/abpframework/abp/issues/8073#issuecomment-799999030

hi

when I try to get the claim value through a microservice it doesn't exists in the CurrentUser.

Can you check the claims in your jwt(https://jwt.io/)? You can also try the following configuration.

Configure<AbpClaimsServiceOptions>(options=>
{
    options.RequestedClaims.Add("tenantname")
})
Showing 7171 to 7180 of 7741 entries
Made with ❤️ on ABP v9.0.0-preview Updated on September 23, 2024, 13:33