Activities of "moinahmed"

I think you must be interested in the two files:

public class Auth0UsersManagementModule : AbpModule
    {
        public override void ConfigureServices(ServiceConfigurationContext context)
        {
            var configuration = context.Services.GetConfiguration();

            Configure<Auth0ConnectionOptions>(
                configuration.GetSection("Auth0"));
        }

        public override void OnApplicationInitialization(ApplicationInitializationContext context)
        {
            var service = context
                .ServiceProvider
                .GetRequiredService<Auth0UsersManagementInit>();
            service.Initialize();
        }
    }
public class Auth0UsersManagementModuleAutoMapperProfile : Profile
    {
        public Auth0UsersManagementModuleAutoMapperProfile()
        {
            CreateMap<UserDto, UserCreateRequest>()                
              //.ForMember(dest => dest.Prop, opt => opt.Ignore())
              //.ForMember(dest => dest.Prop, opt => opt.MapFrom(src => src.Prop))
                .AfterMap((src, dest) => {
                    dest.Connection = "Username-Password-Authentication";
                });

            CreateMap<UserDto, UserUpdateRequest>()
                .ForMember(dest => dest.Password, opt => opt.Ignore())
                .AfterMap((src, dest) => {
                    dest.Connection = "Username-Password-Authentication";
                });

            CreateMap<User, UserDto>()
                .ForMember(dest => dest.Password, opt => opt.Ignore())
                .ForMember(dest => dest.Id,       opt => opt.MapFrom(src => src.UserId));
            
            CreateMap<User, UserUpdateRequest>();
        }
    }

Mapping is called as: var request = ObjectMapper.Map<UserDto, UserCreateRequest>(user);

Yes, already added; as I said it was working like a charm and then suddenly stopped working.

Hi Mahmut,

I'm talking about here extending an existing with new functionality, precisely in this case, adding another tab to User update modal. Can you provide some more concrete example how to do it without the source code?

Thanks

Hi,

I checked that the source code is not available to us on our license tier; is there any other way to accomplish this without buying the source code?

Thanks

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