Microsoft.Identity.Client.ILongRunningWebApi
Methods for long-running or background processes in web APIs.
AcquireTokenOnBehalfOfParameterBuilder AcquireTokenInLongRunningProcess(IEnumerable<string> scopes, string longRunningProcessSessionKey)
Retrieves an access token from the cache using the provided cache key that can be used to
access another downstream protected web API on behalf of a user using the OAuth 2.0 On-Behalf-Of flow.
See Long-running OBO in MSAL.NET.
Use StopLongRunningProcessInWebApiAsync to stop the long running process
and remove the associated tokens from the cache.
AcquireTokenOnBehalfOfParameterBuilder InitiateLongRunningProcessInWebApi(IEnumerable<string> scopes, string userToken, ref string longRunningProcessSessionKey)
Acquires an access token for this web API from the authority configured in the application,
in order to access another downstream protected web API on behalf of a user using the OAuth 2.0 On-Behalf-Of flow.
See Long-running OBO in MSAL.NET.
Pass an access token (not an ID token) which was used to call this confidential client application in the
userTokenuserToken parameter.
Use StopLongRunningProcessInWebApiAsync to stop the long running process
and remove the associated tokens from the cache.