小编Kos*_*tyn的帖子

Azure AD在有效访问令牌上返回Authentication_ExpiredToken

Your access token has expired. Please renew it before submitting the request.当我呼叫https://graph.windows.net/myorganization/oauth2PermissionGrants?api-version=1.5端点时,我正在接收.

为了防止任何愚蠢的问题 - 是的,我知道Microsoft Graph建议使用而不是Azure AD Graph.我知道它,我正在使用它.但对于我目前的情况,我需要完全要求Azure AD Graph.

测试案例:

  1. 我成功登录https://login.microsoftonline.com/common/oauth2/v2.0/authorize?client_id=....并获得code响应.
  2. 我成功交换code并继续access_token前进https://login.microsoftonline.com/common/oauth2/v2.0/token.
  3. 我成功地向任何Microsoft Graph端点发出请求(即https://graph.microsoft.com/education/me/classes).
  4. 我打电话https://graph.windows.net/myorganization/oauth2PermissionGrants?api-version=1.5.
  5. 我收到了错误 Authentication_ExpiredToken Your access token has expired. Please renew it before submitting the request.
  6. 我成功地向任何Microsoft Graph端点发出请求,因此它access_token是有效的.

根据这篇文章:https://docs.microsoft.com/azure/active-directory/develop/active-directory-appmodel-v2-overview,我可以使用此访问令牌来访问Microsoft Graph API以及Azure AD …

azure access-token oauth-2.0 azure-active-directory

4
推荐指数
1
解决办法
3873
查看次数

如何使用新的 Google Identity JS 库来处理工作表?

gsiGoogle很久以前就引入了新的 Sign In JS 库( ),但 Google Sheets 文档仍然显示了使用gapi. 将gapi 与gsi 结合/替换的最佳方法是什么?我可以举个例子吗?

javascript google-sheets google-api-js-client google-identity

3
推荐指数
1
解决办法
5156
查看次数