Class ConfidentialClientApplicationBuilderExtensions
- Namespace
- Microsoft.Identity.Client.Extensibility
- Assembly
- Microsoft.Identity.Client.dll
Extensibility methods for ConfidentialClientApplicationBuilder
public static class ConfidentialClientApplicationBuilderExtensions
- Inheritance
-
ConfidentialClientApplicationBuilderExtensions
- Inherited Members
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.
public static ConfidentialClientApplicationBuilder WithAppTokenProvider(this ConfidentialClientApplicationBuilder builder, Func<AppTokenProviderParameters, Task<AppTokenProviderResult>> appTokenProvider)
Parameters
builder
ConfidentialClientApplicationBuilderappTokenProvider
Func<AppTokenProviderParameters, Task<AppTokenProviderResult>>
Returns
Remarks
This is part of an extensibility mechanism designed to be used only by Azure SDK in order to enhance managed identity support. Only client_credential flow is supported.