hi
Can you share the XXXEntityFrameworkCoreModule
code of your module?
Thanks.
hi
Can you share the JSON output of https://your_api_wesite/api/abp/application-localization?cultureName=en&onlyDynamics=false
You can also check the UsersSearch
info in it.
liming.ma@volosoft.com
Thanks.
hi
I think this is a claim-type problem.
The claim type and value in your access token don't match the API website.
https://abp.io/community/articles/how-claim-type-works-in-asp-net-core-and-abp-framework-km5dw6g1
Thanks.
下载Studio, 登录开发者账号, 然后创建一个项目
https://abp.io/studio
你可以试试使用开发者登录. 创建一个Pro模版项目
如何修改 appsettings.secret.json 中 AbpLicenseCode 值,变更过一次Organization?
请创建一个相同类型的项目, 然后复制新的项目的Code到当前项目在试试.
hi
Try [ExposeServices(typeof (LoginModel), typeof(OpenIddictSupportedLoginModel), typeof(CustomLoginModel))]
using Microsoft.AspNetCore.Authentication;
using Microsoft.AspNetCore.Identity;
using Microsoft.Extensions.Options;
using Owl.reCAPTCHA;
using Volo.Abp.Account.ExternalProviders;
using Volo.Abp.Account.Public.Web;
using Volo.Abp.Account.Public.Web.Pages.Account;
using Volo.Abp.Account.Security.Recaptcha;
using Volo.Abp.Account.Web.Pages.Account;
using Volo.Abp.DependencyInjection;
using Volo.Abp.OpenIddict;
using Volo.Abp.Security.Claims;
namespace AbpSolution9.Pages.Account;
[ExposeServices(typeof (LoginModel), typeof(OpenIddictSupportedLoginModel), typeof(CustomLoginModel))]
public class CustomLoginModel : OpenIddictSupportedLoginModel
{
public CustomLoginModel(IAuthenticationSchemeProvider schemeProvider, IOptions<AbpAccountOptions> accountOptions,
IAbpRecaptchaValidatorFactory recaptchaValidatorFactory,
IAccountExternalProviderAppService accountExternalProviderAppService,
ICurrentPrincipalAccessor currentPrincipalAccessor, IOptions<IdentityOptions> identityOptions,
IOptionsSnapshot<reCAPTCHAOptions> reCaptchaOptions, AbpOpenIddictRequestHelper openIddictRequestHelper) : base(
schemeProvider, accountOptions, recaptchaValidatorFactory, accountExternalProviderAppService,
currentPrincipalAccessor, identityOptions, reCaptchaOptions, openIddictRequestHelper)
{
}
}
hi
Most of the time, we are unable to reproduce the issue. That is why we need you to provide the test project.
Thanks.
hi
Can you share a test project?
liming.ma@volosoft.com
Thanks