AuthenticationContext.AcquireTokenByRefreshToken Method (String, ClientCredential)

 

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 AuthenticationResult AcquireTokenByRefreshToken(
	string refreshToken,
	ClientCredential clientCredential
)

Parameters

refreshToken
Type: System.String

Refresh Token to use in the refresh flow.

clientCredential
Type: Microsoft.IdentityModel.Clients.ActiveDirectory.ClientCredential

The client credential used for token acquisition.

Return Value

Type: Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationResult

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

Return to top
Show: