ManagedIdentityApplicationBuilder Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Builder for managed identity applications.
public sealed class ManagedIdentityApplicationBuilder : Microsoft.Identity.Client.BaseAbstractApplicationBuilder<Microsoft.Identity.Client.ManagedIdentityApplicationBuilder>
type ManagedIdentityApplicationBuilder = class
inherit BaseAbstractApplicationBuilder<ManagedIdentityApplicationBuilder>
Public NotInheritable Class ManagedIdentityApplicationBuilder
Inherits BaseAbstractApplicationBuilder(Of ManagedIdentityApplicationBuilder)
- Inheritance
-
ManagedIdentityApplicationBuilder
Methods
Build() |
Builds an instance of IManagedIdentityApplication from the parameters set in the ManagedIdentityApplicationBuilder. |
Create(ManagedIdentityId) |
Creates a ManagedIdentityApplicationBuilder from a user assigned managed identity clientID / resourceId / objectId. For example, for a system assigned managed identity use ManagedIdentityApplicationBuilder.Create(ManagedIdentityId.SystemAssigned) and for a user assigned managed identity use ManagedIdentityApplicationBuilder.Create(ManagedIdentityId.WithUserAssignedClientId(clientId)) or ManagedIdentityId.WithUserAssignedResourceId("resourceId") or ManagedIdentityId.WithUserAssignedObjectId("objectid"). For more details see https://aka.ms/msal-net-managed-identity |
WithDebugLoggingCallback(LogLevel, Boolean, Boolean) |
Sets the Debug logging callback to a default debug method which displays the level of the message and the message itself. For details see https://aka.ms/msal-net-logging (Inherited from BaseAbstractApplicationBuilder<T>) |
WithExperimentalFeatures(Boolean) |
Allows usage of experimental features and APIs. If this flag is not set, experimental features will throw an exception. For details see https://aka.ms/msal-net-experimental-features (Inherited from BaseAbstractApplicationBuilder<T>) |
WithHttpClientFactory(IMsalHttpClientFactory) |
Uses a specific IMsalHttpClientFactory to communicate with the IdP. This enables advanced scenarios such as setting a proxy, or setting the Agent. (Inherited from BaseAbstractApplicationBuilder<T>) |
WithHttpClientFactory(IMsalHttpClientFactory, Boolean) |
Uses a specific IMsalHttpClientFactory to communicate with the IdP. This enables advanced scenarios such as setting a proxy, or setting the Agent. (Inherited from BaseAbstractApplicationBuilder<T>) |
WithLogging(IIdentityLogger, Boolean) |
Sets the Identity Logger. For details see https://aka.ms/msal-net-logging (Inherited from BaseAbstractApplicationBuilder<T>) |
WithLogging(LogCallback, Nullable<LogLevel>, Nullable<Boolean>, Nullable<Boolean>) |
Sets the logging callback. For details see https://aka.ms/msal-net-logging (Inherited from BaseAbstractApplicationBuilder<T>) |
WithOptions(BaseApplicationOptions) |
Sets application options, which can, for instance have been read from configuration files. See https://aka.ms/msal-net-application-configuration. (Inherited from BaseAbstractApplicationBuilder<T>) |
WithTelemetryClient(ITelemetryClient[]) |
Sets telemetry client for the application. |
Applies to
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈