MsalAccessToken.OnClaimsChallenageAsync 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.
Receives a claims challenge from the server and processes it to obtain a new access token. Then updates the request with the new access token.
public System.Threading.Tasks.ValueTask<bool> OnClaimsChallenageAsync(System.Net.Http.HttpRequestMessage request, string claimsChallenge, System.Threading.CancellationToken cancellationToken);
abstract member OnClaimsChallenageAsync : System.Net.Http.HttpRequestMessage * string * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<bool>
override this.OnClaimsChallenageAsync : System.Net.Http.HttpRequestMessage * string * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<bool>
Public Function OnClaimsChallenageAsync (request As HttpRequestMessage, claimsChallenge As String, cancellationToken As CancellationToken) As ValueTask(Of Boolean)
Parameters
- request
- HttpRequestMessage
- claimsChallenge
- String
- cancellationToken
- CancellationToken
Returns
A boolean indicated whether the request should be retried. Throws if the reauth fails.