[英]Office365APIs : How to handle and expired Access Token
The Office365API provides a nice way to get an access token but there are no example on how to handle the situation when the token expires. Office365API提供了一种获取访问令牌的好方法,但是没有关于令牌过期时如何处理情况的示例。 Moreover, there does not seem to be a refresh token. 而且,似乎没有刷新令牌。
On the blog "How to: Integrate Office 365 with a web server app using Common Consent Framework" [ http://msdn.microsoft.com/en-us/library/office/dn605894(v=office.15).aspx ] there is the notion of getting a refresh token along with the access token. 在博客“如何:使用Common Consent Framework将Office 365与Web服务器应用程序集成”中[ http://msdn.microsoft.com/zh-cn/library/office/dn605894(v=office.15).aspx ]这里有获取刷新令牌和访问令牌的概念。 When the access token expires the refresh token can be used to get another access token / refresh token set without requiring the user to log into their office 365 account again. 当访问令牌到期时,刷新令牌可用于获取另一个访问令牌/刷新令牌集,而无需用户再次登录其Office 365帐户。
Does anyone know how to handle the expired access token using the Office365APIs? 有谁知道如何使用Office365API处理过期的访问令牌?
我的方式是
await _outAuthenticationInfo.ReauthenticateAsync(ExchangeResourceId);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.