Activities of "Frontis"

  • ABP Framework version: v5.1.4
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no

Dear,

For one of our customers, we want to include an extra identification column, to the (bearer) token claims. It has to be an user column.

For this, i've added the column wisch works so far

**DtoExtensions.cs ObjectExtensionManager.Instance.AddOrUpdateProperty<IdentityUserDto, long>("MonteursId");

**ModuleExtensionConfigurator.cs

private static void ConfigureExtraProperties()
    {
        ObjectExtensionManager.Instance.Modules()
            .ConfigureIdentity(identity =>
            {
                identity.ConfigureUser(user =>
                {
                    user.AddOrUpdateProperty<long>("MonteursId");
                });
            });
    }

**EfCoreEntityExtensionMappings.cs

OneTimeRunner.Run(() =>
        {

            ObjectExtensionManager.Instance.MapEfCoreProperty<IdentityUser, long>(
                "MonteursId",
                (entityBuilder, propertyBuilder) =>
                { });
        });

We want the value of "monteursid" to appear in the token, just like it does when you add a claim by the dropdown as shown below.

I've tried multiple things, but it doesn't appear in the token. What can i do to make it happen?

Showing 1 to 1 of 1 entries
Made with ❤️ on ABP v9.1.0-rc.1. Updated on January 17, 2025, 14:13