0
我將令牌的過期時間設置爲200天。它在本地運行良好,但是在將其上傳到服務器後,它似乎只保持默認值20分鐘。採用可變ASP.NET web api令牌過期時間在服務器上不起作用
OAuthOptions = new OAuthAuthorizationServerOptions
{
TokenEndpointPath = new PathString("/Token"),
Provider = new ApplicationOAuthProvider(PublicClientId),
AuthorizeEndpointPath = new
PathString("/api/Account/ExternalLogin"),
AccessTokenExpireTimeSpan = TimeSpan.FromDays(200),
// In production mode set AllowInsecureHttp = false
AllowInsecureHttp = true
};
解釋什麼你做得更多請嘗試 – GGO