AdalAuthenticator.GetTokenAsync(Boolean) 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.
Performs the call to acquire a security token.
public System.Threading.Tasks.Task<Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationResult> GetTokenAsync (bool forceRefresh = false);
member this.GetTokenAsync : bool -> System.Threading.Tasks.Task<Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationResult>
Public Function GetTokenAsync (Optional forceRefresh As Boolean = false) As Task(Of AuthenticationResult)
Parameters
- forceRefresh
- Boolean
Forces a token refresh by clearing the token cache and acquiring it again.
Returns
Task<Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationResult>
A Task<TResult> object.