Open Closed

The account pro tabs missing in angular( abp 5.2.0 Module template) #2888


User avatar
0
LinchArnold created

I use abp suite 5.2.0 to create a new module template, the angular project has import AccountAdminConfigModule.forRoot() by default, but I cannot find any related tabs for account pro:

  1. no account permission tab
  2. no account setting tab

I create a new project template by abp suite 5.2.0, the account related tabs is exist, this problem seems only exist in module template.

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

11 Answer(s)
  • User Avatar
    0
    gterdem created
    Senior .NET Developer

    Is it separate identity server or not?

  • User Avatar
    0
    LinchArnold created

    Is it separate identity server or not?

    The module template is seperate identity server

  • User Avatar
    0
    LinchArnold created

    This is not just happen in new module template of 5.2.0, when I upgrade my module from 5.1.3 to 5.2.0, the account tabs is also disappear.

  • User Avatar
    0
    gterdem created
    Senior .NET Developer

    In separate IdentityServer solutions, the Account module is served under IdentityServer. Nevertheless, the permissions should be available in the angular application.

    I will create an internal issue about this problem.

    Thank you, I have refunded your credit.

  • User Avatar
    0
    LinchArnold created

    In separate IdentityServer solutions, the Account module is served under IdentityServer. Nevertheless, the permissions should be available in the angular application.

    I will create an internal issue about this problem.

    Thank you, I have refunded your credit.

    Thank you.

  • User Avatar
    0
    EngincanV created
    Support Team .NET Developer

    Hi @LinchArnold, we've created an internal issue (#9763) for this problem and will fix it asap. Therefore, I close the question.

    Best regards.

  • User Avatar
    0
    gterdem created
    Senior .NET Developer

    We have investigated this issue with Angular and Blazor WASM for both versions 5.1.3 and 5.2.0 and couldn't reproduce the problem.

  • User Avatar
    0
    fatih.kilic created

    We have tried this issue with Angular like following step and no problem was found.

    For Angular Version 5.1.3 and Angular Version 5.2.0;

    1. Create your project by choosing which version to use with the command below.

    For v5.1.3 :

    • abp new ProjectName -u angular --separate-identity-server -t app-pro --version 5.1.3

    For v5.2.0 :

    • abp new ProjectName -u angular --separate-identity-server -t app-pro --version 5.2.0
    1. Run following command on ProjectName.DbMigrator folder at Terminal.
    • dotnet run
    1. Run following commads on ProjectName.IdentityServer folder at Terminal.
    • abp install-libs
    • dotnet run
    1. Run following commads on ProjectName.HttpApi.Host folder at Terminal.
    • dotnet run
    1. Run following commad on angular folder at Terminal.
    • yarn start

    When we check Account module is served under IdentityServer in Angular Version 5.1.3 and Angular Version 5.2.0.

    Angular Version 5.1.3 Settings : Permission : Angular Version 5.2.0 Settings : Permission :

  • User Avatar
    0
    LinchArnold created

    We have tried this issue with Angular like following step and no problem was found.

    For Angular Version 5.1.3 and Angular Version 5.2.0;

    1. Create your project by choosing which version to use with the command below.

    For v5.1.3 :

    • abp new ProjectName -u angular --separate-identity-server -t app-pro --version 5.1.3

    For v5.2.0 :

    • abp new ProjectName -u angular --separate-identity-server -t app-pro --version 5.2.0
    1. Run following command on ProjectName.DbMigrator folder at Terminal.
    • dotnet run
    1. Run following commads on ProjectName.IdentityServer folder at Terminal.
    • abp install-libs
    • dotnet run
    1. Run following commads on ProjectName.HttpApi.Host folder at Terminal.
    • dotnet run
    1. Run following commad on angular folder at Terminal.
    • yarn start

    When we check Account module is served under IdentityServer in Angular Version 5.1.3 and Angular Version 5.2.0.

    Angular Version 5.1.3 Settings : Permission : Angular Version 5.2.0 Settings : Permission :

    I had tried the project template, it does not have this problem. It's the module template has this problem. I had described it in my post: 1.

    2.

    As the commands you provide is the -t app-pro, it should be the project template, not the module template, would you give a try for module template?

  • User Avatar
    2
    enisn created
    Support Team .NET Developer

    Hi @LinchArnold

    We've investigated and verified the issue. In the module-pro template, sample/test projects are not the real applications, they're just for testing your custom module. If your module is dependent on the account module or you develop something related to the account module, you have to add the account module reference to your project. By doing it, you'll see the account permissions and that setting tab in your application.

    If your module doesn't depend on the account module but you still want to see the account in that test project, you can apply the following steps:

    1. Add Volo.Abp.Account.Pro.Admin.Application.Contracts to the IdentityServer project.
    2. Add dependson attribute in IdentityServer module file.
      typeof(AbpAccountAdminApplicationContractsModule)
      
    3. Clear Redis keys (If it runs on docker, you can remove the volume and re-run again)
    4. Re-run application. (Make sure IdentityServer is built after adding reference.)

    Then you can see account permissions and the account tab on the settings page.

  • User Avatar
    0
    LinchArnold created

    Hi @LinchArnold

    We've investigated and verified the issue. In the module-pro template, sample/test projects are not the real applications, they're just for testing your custom module. If your module is dependent on the account module or you develop something related to the account module, you have to add the account module reference to your project. By doing it, you'll see the account permissions and that setting tab in your application.

    If your module doesn't depend on the account module but you still want to see the account in that test project, you can apply the following steps:

    1. Add Volo.Abp.Account.Pro.Admin.Application.Contracts to the IdentityServer project.
    2. Add dependson attribute in IdentityServer module file.
      typeof(AbpAccountAdminApplicationContractsModule) 
      
    3. Clear Redis keys (If it runs on docker, you can remove the volume and re-run again)
    4. Re-run application. (Make sure IdentityServer is built after adding reference.)

    Then you can see account permissions and the account tab on the settings page.

    Hi, @enisn: Thanks for your reply. yes, my module depends on the account-pro module. When I start to develop my module on old version, in 5.1.1, I remeber the account tabs is show up there, and when I upgrade abp to 5.2.0, it's gone. but now I am not sure if I was wrong memory. Anyway, your detailed reply solved this.

    Thanks so much.

Made with ❤️ on ABP v9.1.0-preview. Updated on December 12, 2024, 07:15