AuthenticationContext.AcquireTokenByRefreshTokenAsync Method (String, String)


Applies to: Version: 2.19.208020213, Platform: .NET Desktop.

Acquires a security token from the authority using a Refresh Token previously received.

Namespace:   Microsoft.IdentityModel.Clients.ActiveDirectory
Assembly:  Microsoft.IdentityModel.Clients.ActiveDirectory (in Microsoft.IdentityModel.Clients.ActiveDirectory.dll)


public Task<AuthenticationResult> AcquireTokenByRefreshTokenAsync(
    string refreshToken,
    string clientId


  • refreshToken
    Type: System.String

    Refresh Token to use in the refresh flow.

  • clientId
    Type: System.String

    Name or ID of the client requesting the token.

Return Value

Type: System.Threading.Tasks.Task<AuthenticationResult>

It contains Access Token, Refresh Token and the Access Token's expiration time.

See Also

AcquireTokenByRefreshTokenAsync Overload
AuthenticationContext Class
Microsoft.IdentityModel.Clients.ActiveDirectory Namespace

Return to top