我使用IdentityServer4和Asp.NET核心身份在Asp.NET核心上构建了一个身份服务器。我希望将ApplicationUser的属性映射到客户端访问UserInfoEndpoint时发送的声明。
我尝试实现IUserClaimsPrincipalFactory,如下所示:
public class CustomUserClaimsPrincipalFactory : IUserClaimsPrincipalFactory<ApplicationUser>
{
public async Task<ClaimsPrincipal> CreateAs
我已经在asp.net mvc中编写了htmlhelper复选框,但是当我想使用it.It时,会显示一个异常。System.StackOverflowException' was thrown如何解决it.and,实际上,我还想将复选框值提交给htmlhelper,实际上,我希望将值复选框提交给我的htmlhelper。
public static class HelperUI
{
public static MvcHtmlString CheckBoxSimple(this HtmlHelper htmlHelper, bool IsCheck, strin