从 Microsoft Azure ActiveDirectory 中,我得到了一个响应,其中包含refresh_token
对/token
端点 (OAuth2) 的请求,它看起来像这样:
{
"access_token":"eyJ0eXAiOiJKV1QiLCJhb....",
"token_type":"Bearer",
"expires_in":"3599",
"expires_on":"1396069299",
"resource":"https://management.core.windows.net/",
"refresh_token":"AwABAAAAvPM1KaPlrEqdFSBzj...",
"scope":"user_impersonation",
"id_token":"eyJ0eXAiOiJKV1QiLCJhbGciOi..."
}
所以显然refresh_token
没有过期,当我需要一个新的时我可以多次使用它access_token
,对吗?
还有,是id_token
为了什么?