【问题标题】:IdentityServer4 Client Secret Max Length Default Client_Invalid Error MessageIdentityServer4 客户端密钥最大长度默认 Client_Invalid 错误消息
【发布时间】:2021-12-17 08:21:42
【问题描述】:

客户端 Secret 默认值似乎是 101 个字符。如何发送不同长度> 101的client_secret?

【问题讨论】:

    标签: c# identityserver4 .net-5


    【解决方案1】:

    在 startup.cs 文件中添加 IdentityServer 时,可以选择更改客户端密码和其他参数的默认值。默认值为 101 个字符限制

     var builder = services.AddIdentityServer(
    options=> options.InputLengthRestrictions.ClientSecret=750)
    

    【讨论】:

      猜你喜欢
      • 2021-08-08
      • 2012-08-04
      • 1970-01-01
      • 2017-03-13
      • 1970-01-01
      • 2012-02-11
      • 1970-01-01
      • 2017-04-30
      • 2020-07-25
      相关资源
      最近更新 更多