我学习了这个代码示例:https://github.com/Azure-Samples/active-directory-dotnet-graphapi-web,我已经在AuthorizationCodeReceived中获得了访问令牌:
AuthenticationHelper.token = result.AccessToken;
但是如何获得刷新令牌呢?result.RefreshToken不可用,那么我该如何使用acquiretokenbyrefreshtoken函数呢? https://msdn.microsoft.com/en-us/library/microsoft.identitymodel.clients.activedirectory.authenticationcontext.acquiretokenbyrefreshtoken.aspx
AuthenticationHelper.token = result.AccessToken;
但是如何获得刷新令牌呢?result.RefreshToken不可用,那么我该如何使用acquiretokenbyrefreshtoken函数呢? https://msdn.microsoft.com/en-us/library/microsoft.identitymodel.clients.activedirectory.authenticationcontext.acquiretokenbyrefreshtoken.aspx