AuthenticationContext.AcquireTokenByRefreshToken Method (String, ClientAssertionCertificate, 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)
Syntax
public AuthenticationResult AcquireTokenByRefreshToken(
string refreshToken,
ClientAssertionCertificate clientCertificate,
string resource
)
Parameters
refreshToken
Type: System.StringRefresh Token to use in the refresh flow.
clientCertificate
Type: Microsoft.IdentityModel.Clients.ActiveDirectory.ClientAssertionCertificateThe client certificate used for token acquisition.
resource
Type: System.StringIdentifier of the target resource that is the recipient of the requested token. If null, token is requested for the same resource refresh token was originally issued for. If passed, resource should match the original resource used to acquire refresh token unless token service supports refresh token for multiple resources.
Return Value
Type: Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationResult
It contains Access Token, Refresh Token and the Access Token's expiration time.
See Also
AcquireTokenByRefreshToken Overload
AuthenticationContext Class
Microsoft.IdentityModel.Clients.ActiveDirectory Namespace
Return to top