Activities of "maliming"

HI

You can try to use CurrentPrincipalAccessor.Change.

//ICurrentPrincipalAccessor CurrentPrincipalAccessor;

await SignInManager.SignInAsync(user, isPersistent: false);
using (CurrentPrincipalAccessor.Change(await SignInManager.CreateUserPrincipalAsync(user)))
{
    var profile = await ProfileAppService.GetAsync();
}



Answer

hi

I think you need change all DbProperties.DbTablePrefix to string.Empty

hi

Can you share a simple project with me? liming.ma@volosoft.com

hi

The GetTenantIdOrNameFromHttpContextOrNullAsync method not in a uow because the middleware order.

And the AccessTokenTenantResolver is created by new instead of DI, so the [UnitOfWork] won't work

In this case you need to create uow manually.

hi

https://support.abp.io/QA/Questions/1558#answer-c761af8c-e5de-7517-0ff2-39fd922c3805

hi

Have you tried using mongodb's API in the repository?

We are not as familiar with Mongodb as we are familiar with EF Core, you can try it.

hi

We will check this. : )

In ABP document we couldn't see any information about refresh token implementation.

hi

This belongs to Identity Server. You can check its related documents. http://docs.identityserver.io/en/latest/topics/refresh_tokens.html https://leastprivilege.com/2020/06/29/refresh-tokens-in-identityserver4-v4/

hi

Sorry, I was wrong, Can you change the DbTablePrefix instead of DbSchema?

hi Mohammad

Can you try this:

using (var uow = _unitOfWorkManager.Begin()
{
    var client = await clientCredentialRepository.SingleOrDefaultAsync(x => x.ClientId == client_id);
    await uow.CompleteAsync();
}

Showing 9501 to 9510 of 10674 entries
Learn More, Pay Less
33% OFF
All Trainings!
Get Your Deal
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.0.0-preview. Updated on September 16, 2025, 10:35