首页 > 解决方案 > Xamarin web api等平台时间问题

问题描述

我通过 .NET、webform 和 xamarin mobile 创建了一个 api。当我检查令牌过期时间时,我看到了不同的时间,但它们都在同一台计算机上工作。有什么问题,我该如何解决这些问题。当我与 Fidler 核对时,我看到时间是 .issued=Sun,2020 年 5 月 24 日 20:38:34 GMT,而我的计算机时间是 23:58 怎么可能......它们都在同一个计算机上运行 WEB API 时间电脑和电脑时间

OAuthAuthorizationServerOptions oAuthAuthorizationServerOptions = new 
OAuthAuthorizationServerOptions()
        {
            TokenEndpointPath = new Microsoft.Owin.PathString("/token"),
            AccessTokenExpireTimeSpan = TimeSpan.FromHours(1),
            AllowInsecureHttp = true,
            Provider = new Saglayici() // 
        };

标签: .netxamarintokenwebapi

解决方案


推荐阅读