【发布时间】:2018-07-18 08:41:57
【问题描述】:
当客户端应用程序(例如使用我们的 api 的网页)连接到受 Azure AD OAuth2.0 保护的 Web api 时
为了获取访问令牌,客户端应用程序对此进行 POST https://login.microsoftonline.com/{租户}/oauth2/token
但是客户端应用程序没有获得刷新令牌。在“客户端应用程序”场景中不需要吗?
这就是他们得到的
"token_type": "Bearer",
"expires_in": "3600",
"ext_expires_in": "0",
"expires_on": "1531906803",
"not_before": "1531902903",
"resource": "https://our-api.azurewebsites.net",
"access_token": "YtNGEzZi1hZGYyLTExNjU4N......rdFqQ"
令牌工作正常,而且它似乎永不过期。
【问题讨论】:
标签: azure asp.net-web-api oauth-2.0 azure-active-directory