Table of Contents

Interface IAppConfig

Namespace
Microsoft.Identity.Client
Assembly
Microsoft.Identity.Client.dll

Configuration properties used to build a public or confidential client application.

public interface IAppConfig

Properties

ClientCapabilities

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"

IEnumerable<string> ClientCapabilities { get; }

Property Value

IEnumerable<string>

Remarks

MSAL will transform these into a "access_token" 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

ClientCredentialCertificate

X509Certificate2 ClientCredentialCertificate { get; }

Property Value

X509Certificate2

ClientId

Client ID (also known as App ID) of the application as registered in the application registration portal (https://aka.ms/msal-net-register-app).

string ClientId { get; }

Property Value

string

ClientName

The name of the calling application for telemetry purposes.

string ClientName { get; }

Property Value

string

ClientSecret

string ClientSecret { get; }

Property Value

string

ClientVersion

The version of the calling application for telemetry purposes.

string ClientVersion { get; }

Property Value

string

EnablePiiLogging

Flag telling if logging of Personally Identifiable Information (PII) is enabled/disabled for the application. See https://aka.ms/msal-net-logging.

bool EnablePiiLogging { get; }

Property Value

bool
See Also

ExperimentalFeaturesEnabled

Allows usage of features that are experimental and would otherwise throw a specific exception. Use of experimental features in production is not recommended and are subject to be removed between builds. For details see https://aka.ms/msal-net-experimental-features.

bool ExperimentalFeaturesEnabled { get; }

Property Value

bool

ExtraQueryParameters

Extra query parameters that will be applied to every acquire token operation. See WithExtraQueryParameters(IDictionary<string, string>)

IDictionary<string, string> ExtraQueryParameters { get; }

Property Value

IDictionary<string, string>

HttpClientFactory

IMsalHttpClientFactory used to get HttpClient instances to communicate with the identity provider.

IMsalHttpClientFactory HttpClientFactory { get; }

Property Value

IMsalHttpClientFactory

IsBrokerEnabled

Indicates whether or not the current application object is configured to use brokered authentication.

bool IsBrokerEnabled { get; }

Property Value

bool

IsDefaultPlatformLoggingEnabled

Flag telling if logging to platform defaults is enabled/disabled for the app. In Desktop, Event Tracing is used. In iOS, NSLog is used. In Android, logcat is used. See https://aka.ms/msal-net-logging.

bool IsDefaultPlatformLoggingEnabled { get; }

Property Value

bool

LegacyCacheCompatibilityEnabled

Enables legacy ADAL cache serialization and deserialization.

bool LegacyCacheCompatibilityEnabled { get; }

Property Value

bool

LogLevel

Level of logging requested for the app. See https://aka.ms/msal-net-logging.

LogLevel LogLevel { get; }

Property Value

LogLevel

LoggingCallback

LogCallback LoggingCallback { get; }

Property Value

LogCallback

ParentActivityOrWindowFunc

Func<object> ParentActivityOrWindowFunc { get; }

Property Value

Func<object>

RedirectUri

Redirect URI for the application. See RedirectUri

string RedirectUri { get; }

Property Value

string

TenantId

Audience for the application. See TenantId

string TenantId { get; }

Property Value

string