hi
Configure<AbpDataSeedOptions>(options =>
{
options.Contributors.RemoveAll(x => x == typeof(PermissionDataSeedContributor))
});```
hi
I will share a such sample asap.
CLI will write secrets in appsettings.secrets.json
Make sure you've logged in.
Usage:
abp login <username>
abp login <username> -p <password>
abp login <username> --device
Example:
abp login john
abp login john -p 1234
See the documentation for more info: https://docs.abp.io/en/abp/latest/CLI
You can try to override the OnPostAsync of OpenIddictSupportedLoginModel
In this method, you can get username and ClientId. It can complete the login or deny the login
Please refer to our upgrade documentation,
https://docs.abp.io/en/abp/latest/Migration-Guides/Index https://docs.abp.io/en/commercial/latest/migration-guides/index
It is difficult for me to determine the cause of the problem if I cannot reproduce the problem
"Actually, the project is created with the ABP Suite. Should I wait for ABP to be upgraded for this?
OK, How can I reproduce this exception?
Please share the steps and code. Thanks
hi
How can I reproduce this in a new project? Please steps and code. Thanks
If other projects refer to high-version packages, you can only wait for abp to upgrade
You can try to add <PackageReference Include="System.Linq.Dynamic.Core" Version="1.2.18" /> to your project.
You can get the current clientid. Then you can execute custom logic
public async Task<string> MyMethodAsync()
{
var clientIdClaim = CurrentUser.GetAllClaims().FirstOrDefault(x => x.Type == AbpClaimTypes.ClientId);
if (clientIdClaim != null)
{
if (clientIdClaim.Value == "public")
{
}
if (clientIdClaim.Value == "private")
{
}
}
}