.net - 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() //
};
解决方案
推荐阅读
- python - 从python中的制表符分隔的文本文件中选择列并将其添加到tsv文件
- android - 如何将gridview的高度wrap_content设置为recyclerview?
- php - Laravel:如何从同一张表返回父>子关系
- c# - 从 Web API c# 返回 XML
- java - 如何用可用的高分辨率图像参考替换 URL 字符串末尾的低分辨率图像参考
- php - Laravel 迁移似乎不适用于某些计算机
- css - 从 enavto 主题检查插件收到有关自定义 CSS 的警告
- .net-core - 如何在 dot net Core 2.0 中创建 Paytm CheckSum?
- sql - 如何在配置单元中使用 2 个分隔符连接列
- javascript - 如何在 Angular 6 的组件模板中呈现超链接?