Azure ADAL:2.0.1-alpha:Id 令牌到期时间始终设置为默认值

Azure ADAL:2.0.1-alpha:Id token expiry time is always set as default

库收到的 Web 响应与 library.On 在库收到 Web 响应后执行 acquireToken() 预期的响应不匹配

{"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",因此无法找到所需的密钥并将令牌过期时间设置为默认值

此问题已在 2.0.2-alpha 中修复。