Activities of "liangshiwei"

Hi,

Yes we can.

You need to reference the AbpIdentityHttpApiClientModule module.

See https://docs.abp.io/en/abp/latest/API/Dynamic-CSharp-API-Clients#usage

Like:

{
  "RemoteServices": {
    "AbpIdentity": {
      "BaseUrl": "http://localhost:48392/"
    } 
  } 
}

Can I check it remotely? shiwei.liang@volosoft.com

Cannot resolve parameter 'Volo.Abp.Identity.IIdentityRoleRepository roleRepository' of constructor

Did you add module dependencies?

 [DependsOn(
        typeof(AbpIdentityApplicationModule)
    )]

Hi,

Example:

public class MyAbpClaimsPrincipalContributor : IAbpClaimsPrincipalContributor, ITransientDependency
{
    public Task ContributeAsync(AbpClaimsPrincipalContributorContext context)
    {
        var claimsIdentity = new ClaimsIdentity();
        claimsIdentity.AddIfNotContains(new Claim("Organization", "OrganizationValue"));
        context.ClaimsPrincipal.AddIdentity(claimsIdentity);

        return Task.CompletedTask;
    }
}

public class MyAbpClaimsService : AbpClaimsService
{
    public MyAbpClaimsService(IProfileService profile, ILogger<DefaultClaimsService> logger) : base(profile, logger)
    {
    }

    protected override IEnumerable<string> FilterRequestedClaimTypes(IEnumerable<string> claimTypes)
    {
        return base.FilterRequestedClaimTypes(claimTypes)
            .Union(new []{
                AbpClaimTypes.TenantId,
                AbpClaimTypes.EditionId,
                "Organization"
            });
    }
}


context.Services.Replace(ServiceDescriptor.Transient<IClaimsService, MyAbpClaimsService>());

Hi,

You need to reference Identity module.

e.g: Account module: https://github.com/abpframework/abp/blob/12d92700a0396367a7e749d662e92c167b7f260d/modules/account/src/Volo.Abp.Account.Application/Volo/Abp/Account/AbpAccountApplicationModule.cs#L16

Then you can inject the repository to get the user list.

If you deploy identity as a separate service and use a separate database. You need to set the connection string:

{
    "ConnectionStrings": {
        "MyModuleNameService": "Server=localhost;Database=MyProjectName_MyModuleNameService;Trusted_Connection=True",
        "AbpIdentity": "Server=localhost;Database=MyProjectName_IdentityService;Trusted_Connection=True"
  }
}

Hi,

Try

update IdentityServerClientRedirectUris set RedirectUri = 'https://avalancheocp.tvdinc.com/authentication/login-callback' where RedirectUri = 'https://localhost:44307/authentication/login-callback'

HI,

Yes, you need to update your project version to latest.

See https://docs.abp.io/en/abp/latest/Migration-Guides/Abp-4_0, https://docs.abp.io/en/abp/latest/Migration-Guides/Abp-4_2

Hi,

https://avalancheocp.tvdinc.com/authentication/login-callback

https://localhost:44307/authentication/login-callback

You need to change the client's redirect_uri in the database table.

The easy way:

  1. remove database( be careful, if you have real production data)
  2. Change RootUrl in file appsettings.json of .DbMigrator project. https://localhost:44307/ to https://avalancheocp.tvdinc.com/
  3. Rebuild the database

Hi,

In deployment environement, you can ignore them. because the code block uses try catch.

Hi,

Put the _ViewImports.cshtml file in the Pages\Account folder of your .HttpApi.Host

@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
@addTagHelper *, Volo.Abp.AspNetCore.Mvc.UI
@addTagHelper *, Volo.Abp.AspNetCore.Mvc.UI.Bootstrap
@addTagHelper *, Volo.Abp.AspNetCore.Mvc.UI.Bundling
@addTagHelper *, Owl.reCAPTCHA
Showing 5961 to 5970 of 6693 entries
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.1.0-preview. Updated on December 17, 2025, 07:08
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.