首页 > 其他 > 详细

ABP框架使用(版本3.3.1) - IdentityServer

时间:2020-12-12 09:32:08      阅读:30      评论:0      收藏:0      [点我收藏+]

1.IdentityServerClientScopes 分配的Scope太多,会报错
“Scope parameter exceeds max allowed length”

在Domain.Shared层改MyAppModuleExtensionConfigurator可以改abp identityserver定义的const值

private static void ConfigureExistingProperties()
{
  ClientScopeConsts.ScopeMaxLength = 1000;
} 

这表里面字段长度,而Scope parameter validation是identityserver4的包里做的,这样改并没有效果

应该在Host层改变IdentityServerOptions , PreConfigureServices 和 PostConfigureServices 都可以

        public override void PreConfigureServices(ServiceConfigurationContext context)
        {
            PreConfigure<IdentityServerOptions>(options =>
            {
                options.InputLengthRestrictions.Scope = 2000;
            });

            PreConfigure<IdentityBuilder>(identityBuilder =>
            {
                identityBuilder.AddSignInManager<CustomSignInManager>();
            });
        }

  

ABP框架使用(版本3.3.1) - IdentityServer

原文:https://www.cnblogs.com/sui84/p/14123634.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!