Table of Contents

Class ConfidentialClientApplicationExtensions

Namespace
Microsoft.Identity.Client.Extensibility
Assembly
Microsoft.Identity.Client.dll

Extensibility methods for IConfidentialClientApplication.

public static class ConfidentialClientApplicationExtensions
Inheritance
ConfidentialClientApplicationExtensions
Inherited Members

Methods

StopLongRunningProcessInWebApiAsync(ILongRunningWebApi, string, CancellationToken)

Stops an in-progress long-running on-behalf-of session by removing the tokens associated with the provided cache key. See Long-running OBO in MSAL.NET.

public static Task<bool> StopLongRunningProcessInWebApiAsync(this ILongRunningWebApi clientApp, string longRunningProcessSessionKey, CancellationToken cancellationToken = default)

Parameters

clientApp ILongRunningWebApi

Client application to remove tokens from.

longRunningProcessSessionKey string

OBO cache key used to remove the tokens.

cancellationToken CancellationToken

Cancellation token.

Returns

Task<bool>

True if tokens are removed from the cache; false, otherwise.

Exceptions

ArgumentNullException

longRunningProcessSessionKey is not set.