Activities of "EngincanV"

Hi @Spospisil, you need to override LogoReverseUrl in YourProjectBrandingProvider on your *.Web layer.

[Dependency(ReplaceServices = true)]
public class YourProjectBrandingProvider : DefaultBrandingProvider
{
  public override string AppName => "YourProjectName";

  public override string LogoReverseUrl => "/images/logo/abp-purple.png"; //override LogoReverseUrl
}

I've added an image under wwwroot/images/logo named abp-purple.png. And I've also cleared the cache to see the result.

There are some restrictions to implement impersonation for Blazor WASM.

Related issue: https://github.com/abpframework/abp/issues/9997

Answer

Hi @kresimirm, There can be more than one value for Role claim (AbpClaimTypes.Role).

A claims identity can have multiple claims with the same ClaimType. AbpClaimTypes.Role in our situation.

  • You can use Roles property of ICurrentUser interface to get all distinct role names. And then you can create an extension method to query the user is in multiple roles or not like below.
public static class CurrentUserExtensions
{
    public static bool IsInSpecifiedRoles(this ICurrentUser currentUser, string[] roles)
    {
        var userRoles = currentUser.Roles;
        return userRoles.All(userRole => roles.Contains(userRole));
    }
}        

I can see you've released 4.4.3. Could you tell me whether this version contains impersonation feature for Angular?

Hi @rafal.woznicki, I'm sorry this feature is not included in 4.4.3. because the PR is still under review.

Hi @Neozz, I've made one small change to the code and create a PR. Please examine it, it should be fixed now.

Can you share the relevant logs?

Hi @Neozzz, I've made the necessary changes on your repo and send a pull-request. You can examine the PR and if your problem is resolved you can close the question.

Hi engincan, The names are different. I did not want to put the exact name out in the public domain. Are you free for a remote session? or please share your mail id. Thanks :)

You can send an email to engin.veske@volosoft.com. Thanks.

Hi @Neozzz, I've accepted your invitation and examine the project but I could not see the related entities (Employee, Contact and Address).

Sure, my github account: https://github.com/EngincanV

Showing 371 to 380 of 456 entries
Made with ❤️ on ABP v9.2.0-preview. Updated on January 14, 2025, 14:54