库收到的 Web 响应与库预期的响应不匹配。在执行 acquireToken() 后,库收到 Web 响应
{"not_before":"****", "token_type":"Bearer", "id_token":"****", "id_token_expires_in":"****", "profile_info":"****", "refresh_token":"****", "refresh_token_expires_in":"*****" }
在解析响应时,ADAL 会查找密钥“idtoken_expires_in”
if(mRequest.isIdTokenRequest()){
expiresInLookUp = "idtoken_expires_in";
token = response.get(AuthenticationConstants.OAuth2.ID_TOKEN);
}
String expires_in = response.get(expiresInLookUp);
由于 Web 响应具有键 'id_token_expires_in' 并且在解析响应库时正在寻找“idtoken_expires_in”,因此无法找到所需的键并将令牌到期时间设置为默认值