Share via


PublicClientApplication.IByRefreshToken.AcquireTokenByRefreshToken Method

Definition

Acquires an access token from an existing refresh token and stores it, and the refresh token, in the user token cache, where it will be available for further AcquireTokenSilent 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.

Microsoft.Identity.Client.AcquireTokenByRefreshTokenParameterBuilder IByRefreshToken.AcquireTokenByRefreshToken (System.Collections.Generic.IEnumerable<string> scopes, string refreshToken);
abstract member Microsoft.Identity.Client.IByRefreshToken.AcquireTokenByRefreshToken : seq<string> * string -> Microsoft.Identity.Client.AcquireTokenByRefreshTokenParameterBuilder
override this.Microsoft.Identity.Client.IByRefreshToken.AcquireTokenByRefreshToken : seq<string> * string -> Microsoft.Identity.Client.AcquireTokenByRefreshTokenParameterBuilder
Function AcquireTokenByRefreshToken (scopes As IEnumerable(Of String), refreshToken As String) As AcquireTokenByRefreshTokenParameterBuilder Implements IByRefreshToken.AcquireTokenByRefreshToken

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 from ADAL 2.x

Returns

A builder enabling you to add optional parameters before executing the token request

Implements

Applies to