Asp.net web api IdentityServer 3:AccessTokenLifetime最大值

Asp.net web api IdentityServer 3:AccessTokenLifetime最大值,asp.net-web-api,identityserver3,Asp.net Web Api,Identityserver3,我使用IdentityServer3。 是否有关于设置“AccessTokenLifetime”以及是否有最大值的更多信息 我试图将其设置为“int.MaxValue” 新客户端 { ClientName=“ClientName”, ClientId=“ClientId”, Flow=Flows.ResourceOwner, ClientSecrets=新列表 { 新密码(“Secret.Sha256()) }, AllowedScopes=新列表 { “openid”, “我的框架” }, A

我使用IdentityServer3。 是否有关于设置“AccessTokenLifetime”以及是否有最大值的更多信息

我试图将其设置为“int.MaxValue”

新客户端
{
ClientName=“ClientName”,
ClientId=“ClientId”,
Flow=Flows.ResourceOwner,
ClientSecrets=新列表
{
新密码(“Secret.Sha256())
},
AllowedScopes=新列表
{
“openid”,
“我的框架”
},
AccessTokenType=AccessTokenType.Jwt,
AccessTokenLifetime=int.MaxValue,
},
这告诉我没有关于过期时间的规定。但是如果我配置int.max,它将不起作用

客户端得到的结果是“无效的\u令牌”,没有详细解释。启动服务器时,IdentityServer3不会告诉我此设置无效

                     new Client
                     {
                          ClientName = "ClientName ",
                          ClientId = "ClientId",
                          Flow = Flows.ResourceOwner,

                          ClientSecrets = new List<Secret>
                          {
                                new Secret("secret".Sha256())
                          },

                          AllowedScopes = new List<string>
                          {
                                "openid",
                                "MyFramework"
                          },
                          AccessTokenType = AccessTokenType.Jwt,
                          AccessTokenLifetime = int.MaxValue,                     
                     },