how can I get refresh token

前端 未结 2 1736
感动是毒
感动是毒 2021-02-09 01:10

i learn this code sample :https://github.com/Azure-Samples/active-directory-dotnet-graphapi-web ,and yes ,i can get access token in AuthorizationCodeReceived : Authenticati

2条回答
  •  滥情空心
    2021-02-09 02:09

    The acquiretokenbyrefreshtoken function is available in ADAL 2.X , that code sample is using ADAL 3.13.8 , and from ADAL3.X, library won't expose refresh token and AuthenticationContext.AcquireTokenByRefreshToken function.

    ADAL caches refresh token and will automatically use it whenever you call AcquireToken and the requested token need renewing(even you want to get new access token for different resource).

    please see the explanation from here . Also click here and here for more details about refresh token in ADAL .

提交回复
热议问题