2

我在 windows docker 上运行 asp.net 核心应用程序。简单地说,应用程序通过 Google API 进行身份验证以上传和下载文件。

该应用程序在带有 IIS Express 的 localhost 上运行良好。但在 windows docker 容器上,它填充了一个错误

Google.Apis.Auth.OAuth2.Responses.TokenResponseException: Error:"invalid_grant", Description:"Invalid JWT: Token must be a short-lived token (60 minutes) and in a reasonable timeframe. Check your iat and exp values and use a clock with a skew to account for clock differences between systems."

我看了一下“docker系统信息”时间还可以。但是我进入容器查看时间比“docker系统时间”晚了10个小时。

我遇到了这个错误,请帮忙。

4

0 回答 0