Class ManagedIdentityApplicationBuilder
Builder for managed identity applications.
public sealed class ManagedIdentityApplicationBuilder : BaseAbstractApplicationBuilder<ManagedIdentityApplicationBuilder>
- Inheritance
-
ManagedIdentityApplicationBuilder
- Inherited Members
Methods
Build()
Builds an instance of IManagedIdentityApplication from the parameters set in the ManagedIdentityApplicationBuilder.
public IManagedIdentityApplication Build()
Returns
- IManagedIdentityApplication
An instance of IManagedIdentityApplication
Exceptions
- MsalClientException
Thrown when errors occur locally in the library itself (for example, because of incorrect configuration).
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
public static ManagedIdentityApplicationBuilder Create(ManagedIdentityId managedIdentityId)
Parameters
managedIdentityId
ManagedIdentityIdConfiguration of the Managed Identity assigned to the resource.
Returns
- ManagedIdentityApplicationBuilder
A ManagedIdentityApplicationBuilder from which to set more parameters, and to create a managed identity application instance
WithClientCapabilities(IEnumerable<string>)
Microsoft Identity specific OIDC extension that allows resource challenges to be resolved without interaction. Allows configuration of one or more client capabilities, e.g. "llt"
public ManagedIdentityApplicationBuilder WithClientCapabilities(IEnumerable<string> clientCapabilities)
Parameters
clientCapabilities
IEnumerable<string>
Returns
Remarks
MSAL will transform these into special claims request. See https://openid.net/specs/openid-connect-core-1_0-final.html#ClaimsParameter for details on claim requests. For more details see https://aka.ms/msal-net-claims-request