如何修改 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
hi
Can you try to remove Layout = ThemeManager.CurrentTheme.GetAccountLayout();?
Thanks.
hi
Due to the current limitations of blazor, it cannot be resolved.
Sorry about that, I have refunded your ticket.
hi
Can you share a test project and steps?
I will download and debug it.
liming.ma@volosoft.com
Thanks
hi
Is there an AbpLicenseCode in your project's appsettings.secret.json?
What is the output of the abp login-info command?
Thanks.
hi
Can you set a breakpoint to check the current user claims?
The access token seems no problem
Thanks.