Microsoft.Identity.Client.Internal.Requests.RequestBase
Base class for all flows. Use by implementing ExecuteAsync
and optionally calling protected helper methods such as SendTokenRequestAsync, which know
how to use all params when making the request.
protected RequestBase(IServiceBundle serviceBundle, AuthenticationRequestParameters authenticationRequestParameters, IAcquireTokenParameters acquireTokenParameters)
protected Task<AuthenticationResult> CacheTokenResponseAndCreateAuthenticationResultAsync(MsalTokenResponse msalTokenResponse, CancellationToken cancellationToken = default)
protected virtual KeyValuePair<string, string>? GetCcsHeader(IDictionary<string, string> additionalBodyParameters)
Return a custom set of scopes to override the default MSAL logic of merging
input scopes with reserved scopes (openid, profile etc.)
Leave as is / return null otherwise
protected Task<MsalTokenResponse> SendTokenRequestAsync(string tokenEndpoint, IDictionary<string, string> additionalBodyParameters, CancellationToken cancellationToken)