Language

ManagedIdentityClientAssertion Constructors

Definition

Overloads

ManagedIdentityClientAssertion(String)

public ManagedIdentityClientAssertion(string? managedIdentityClientId);
new Microsoft.Identity.Web.ManagedIdentityClientAssertion : string -> Microsoft.Identity.Web.ManagedIdentityClientAssertion
Public Sub New (managedIdentityClientId As String)

Parameters

managedIdentityClientId
String

Optional ClientId of the Managed Identity

Applies to

ManagedIdentityClientAssertion(String, String)

public ManagedIdentityClientAssertion(string? managedIdentityClientId, string? tokenExchangeUrl);
new Microsoft.Identity.Web.ManagedIdentityClientAssertion : string * string -> Microsoft.Identity.Web.ManagedIdentityClientAssertion
Public Sub New (managedIdentityClientId As String, tokenExchangeUrl As String)

Parameters

managedIdentityClientId
String

Optional ClientId of the Managed Identity

tokenExchangeUrl
String

Optional audience of the token to be requested from Managed Identity. When omitted, the audience is auto-resolved from the calling confidential client's authority host (public cloud resolves to "api://AzureADTokenExchange"; sovereign/national clouds resolve to their own value), falling back to the public-cloud audience.

Applies to

ManagedIdentityClientAssertion(String, String, ILogger)

public ManagedIdentityClientAssertion(string? managedIdentityClientId, string? tokenExchangeUrl, Microsoft.Extensions.Logging.ILogger? logger);
new Microsoft.Identity.Web.ManagedIdentityClientAssertion : string * string * Microsoft.Extensions.Logging.ILogger -> Microsoft.Identity.Web.ManagedIdentityClientAssertion
Public Sub New (managedIdentityClientId As String, tokenExchangeUrl As String, logger As ILogger)

Parameters

managedIdentityClientId
String

Optional ClientId of the Managed Identity

tokenExchangeUrl
String

Optional audience of the token to be requested from Managed Identity. When omitted, the audience is auto-resolved from the calling confidential client's authority host (public cloud resolves to "api://AzureADTokenExchange"; sovereign/national clouds resolve to their own value), falling back to the public-cloud audience.

logger
ILogger

A logger

Applies to

ManagedIdentityClientAssertion(String, String, ILogger, IKeyAttestationProvider)

Creates a managed identity client assertion provider with optional key attestation support.

public ManagedIdentityClientAssertion(string? managedIdentityClientId, string? tokenExchangeUrl, Microsoft.Extensions.Logging.ILogger? logger, Microsoft.Identity.Web.IKeyAttestationProvider? keyAttestationProvider);
new Microsoft.Identity.Web.ManagedIdentityClientAssertion : string * string * Microsoft.Extensions.Logging.ILogger * Microsoft.Identity.Web.IKeyAttestationProvider -> Microsoft.Identity.Web.ManagedIdentityClientAssertion
Public Sub New (managedIdentityClientId As String, tokenExchangeUrl As String, logger As ILogger, keyAttestationProvider As IKeyAttestationProvider)

Parameters

managedIdentityClientId
String

Optional client ID of the managed identity.

tokenExchangeUrl
String

Optional audience of the managed identity token.

logger
ILogger

A logger.

keyAttestationProvider
IKeyAttestationProvider

The provider that enables key attestation for bound token requests.

Applies to