【发布时间】:2015-07-03 12:45:34
【问题描述】:
我开始使用this tutorial 创建一个使用刷新令牌的应用程序示例。但是在应用程序中,用户必须单击按钮才能访问令牌并使用新令牌刷新它。我希望我的应用程序在过期之前自动请求一个新的刷新令牌。我该怎么做?
【问题讨论】:
标签: angularjs asp.net-web-api asp.net-identity token owin
我开始使用this tutorial 创建一个使用刷新令牌的应用程序示例。但是在应用程序中,用户必须单击按钮才能访问令牌并使用新令牌刷新它。我希望我的应用程序在过期之前自动请求一个新的刷新令牌。我该怎么做?
【问题讨论】:
标签: angularjs asp.net-web-api asp.net-identity token owin
您通常应该跟踪令牌的到期时间,然后在到期前请求新令牌。在 OAuth2.0 早期请求是可以接受的。
【讨论】: