ConfidentialClientApplicationBuilderExtensions Class

Definition

Extensibility methods for ConfidentialClientApplicationBuilder

public static class ConfidentialClientApplicationBuilderExtensions
type ConfidentialClientApplicationBuilderExtensions = class
Public Module ConfidentialClientApplicationBuilderExtensions
Inheritance
ConfidentialClientApplicationBuilderExtensions

Methods

WithAppTokenProvider(ConfidentialClientApplicationBuilder, Func<AppTokenProviderParameters,Task<AppTokenProviderResult>>)

Allows setting a callback which returns an access token, based on the passed-in parameters. MSAL will pass in its authentication parameters to the callback and it is expected that the callback will construct a AppTokenProviderResult and return it to MSAL. MSAL will cache the token response the same way it does for other authentication results.

Applies to