Activities of "nhontran"

ABP Framework version: v3.3.2 UI type: Angular DB provider: EF Core Identity Server Separated: yes

Hi, I found an issue when user does first login with external login provider, the security log has logged one record with Action = 'LoginFailed' even I had logged in successfully.

Another question, after I completed the registration for new user, the new user has been inserted into AbpUsers table but the flag IsExternal = 0, it should be 1, right?

ABP Framework version: v3.3.2 UI type: Angular DB provider: EF Core Tiered (MVC) or Identity Server Separated (Angular): yes

Hi, I have installed the file management module as guided:

Backend:

  • Using Abp suite to add it as package into our solution

Angular UI:

  • run the command: "yarn add @volo/abp.ng.file-management"

but the "File Management" is not displayed in the menu section:

any idea?

Hi @maliming, yup, it works now.

Thanks for your support!!!

Hi @maliming, thanks for your prompt reply.

I just tried, the [DisableValidation] works in controller method but not in AppService method, the validation is still triggered.

Hi @alper, I tried to put [DisableValidation] to CreateAsync in both Controller and AppService, it still does not work.

if the Password field has value, it hits the method -> the override is succesfully

if the Password is null/empty, the validation is triggered -> the [DisableValidation] is not working

    [Dependency(ReplaceServices = true)]
    [ExposeServices(typeof(IdentityUserController))]
    public class CustomIdentityUserController : IdentityUserController
    {
        public CustomIdentityUserController(IIdentityUserAppService userAppService) : base(userAppService)
        {
        }

        [DisableValidation]
        public override Task<IdentityUserDto> CreateAsync(IdentityUserCreateDto input)
        {
            return UserAppService.CreateAsync(input);
        }
    }
    [Dependency(ReplaceServices = true)]
    [ExposeServices(typeof(IdentityUserAppService))]
    public class CustomIdentityUserAppService : IdentityUserAppService
    {
        public CustomIdentityUserAppService(
            IdentityUserManager userManager,
            IIdentityUserRepository userRepository,
            IIdentityRoleRepository roleRepository,
            IOrganizationUnitRepository organizationUnitRepository,
            IIdentityClaimTypeRepository identityClaimTypeRepository,
            IdentityTwoFactorManager identityTwoFactorManager
        ) : base(userManager,
            userRepository,
            roleRepository,
            organizationUnitRepository,
            identityClaimTypeRepository,
            identityTwoFactorManager)
        {
        }

        [DisableValidation]
        public override async Task<IdentityUserDto> CreateAsync(IdentityUserCreateDto input)
        {
            var user = new IdentityUser(
                GuidGenerator.Create(),
                input.UserName,
                input.Email,
                CurrentTenant.Id
            );

            input.MapExtraPropertiesTo(user);

            (await UserManager.CreateAsync(user)).CheckErrors();
            await UpdateUserByInput(user, input);

            await CurrentUnitOfWork.SaveChangesAsync();

            var userDto = ObjectMapper.Map<IdentityUser, IdentityUserDto>(user);

            return userDto;
        }
    }

Hi @alper, yes, it hits the breakpoint inside the method.

Regarding fluent validation, can give me some insights how to by pass the [Required] data annotation validation? As I know, it still triggers the data annotation validation before hit the FluentValidation.

Thanks for your support.

  • ABP Framework version: v3.3.2
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:

I want to remove/disable the [Required] attribute for "Password" field in IdentityUserCreateDto

It seems could not achieve it so I disabled the validation by putting [DisableValidation] in the CreateAsync method, but it does not work:

[Dependency(ReplaceServices = true)]
    [ExposeServices(typeof(IdentityUserController))]
    public class CustomIdentityUserController : IdentityUserController
    {
        public CustomIdentityUserController(IIdentityUserAppService userAppService) : base(userAppService)
        {
        }

        [DisableValidation]
        public override Task<IdentityUserDto> CreateAsync(IdentityUserCreateDto input)
        {
            return UserAppService.CreateAsync(input);
        }
    }

Any advice woule be appreciated much, thank you.

Hi @maliming, I found it under Saas -> Tenants -> Manage Host Features", thank you.

  • ABP Framework version: v3.3.2
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:

Hi, I am using abp version 3.3.2 and could not find LDAP setting in the 'Account' section

I checked the release notes, it has been released on 3.1:

https://docs.abp.io/en/commercial/latest/release-notes

Is there any required step to enable it, I could not find it in this article:

https://github.com/abpio/abp-commercial-docs/blob/dev/en/modules/account/ldap.md

Hi @maliming, thanks for your prompt reply.

With the coding solution, we need to add a quite number of policies and update the Authorize("new_policy") for all the AppService that we want to share the tenant data. If we introduce a new table then need to update code again.

can we achieve it without coding, or do we have any other alternative solution to configure permission to let another party securely retrieve/update our tenant data without using IS4 client?

Showing 131 to 140 of 199 entries
Made with ❤️ on ABP v9.0.0-preview Updated on September 20, 2024, 05:21