ConfidentialClientApplication.IByRefreshToken.AcquireTokenByRefreshTokenAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Caution
Use AcquireTokenByRefreshToken instead. See https://aka.ms/msal-net-3-breaking-changes.
Acquires an access token from an existing refresh token and stores it and the refresh token into the application user token cache, where it will be available for further AcquireTokenSilentAsync calls. This method can be used in migration to MSAL from ADAL v2 and in various integration scenarios where you have a RefreshToken available. (see https://aka.ms/msal-net-migration-adal2-msal2)
[System.Obsolete("Use AcquireTokenByRefreshToken instead. See https://aka.ms/msal-net-3-breaking-changes. ", true)]
System.Threading.Tasks.Task<Microsoft.Identity.Client.AuthenticationResult> IByRefreshToken.AcquireTokenByRefreshTokenAsync (System.Collections.Generic.IEnumerable<string> scopes, string refreshToken);
[<System.Obsolete("Use AcquireTokenByRefreshToken instead. See https://aka.ms/msal-net-3-breaking-changes. ", true)>]
abstract member Microsoft.Identity.Client.IByRefreshToken.AcquireTokenByRefreshTokenAsync : seq<string> * string -> System.Threading.Tasks.Task<Microsoft.Identity.Client.AuthenticationResult>
override this.Microsoft.Identity.Client.IByRefreshToken.AcquireTokenByRefreshTokenAsync : seq<string> * string -> System.Threading.Tasks.Task<Microsoft.Identity.Client.AuthenticationResult>
Function AcquireTokenByRefreshTokenAsync (scopes As IEnumerable(Of String), refreshToken As String) As Task(Of AuthenticationResult) Implements IByRefreshToken.AcquireTokenByRefreshTokenAsync
Parameters
- scopes
- IEnumerable<String>
Scope to request from the token endpoint. Setting this to null or empty will request an access token, refresh token and ID token with default scopes
- refreshToken
- String
The refresh token (for example previously obtained from ADAL 2.x)
Returns
Implements
- Attributes
Applies to
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기