<PackageReference Include="Microsoft.Identity.Client" Version="4.83.1" />

Microsoft.Identity.Client.MsalErrorMessage

static class MsalErrorMessage
The active directory authentication error message.
public const string AadThrottledError = "Your app has been throttled by AAD due to too many requests. To avoid this, cache your tokens see https://aka.ms/msal-net-throttling."

public const string AccessingMetadataDocumentFailed = "Accessing WS metadata exchange failed. "

public const string AccessTokenTypeMissing = "The response from the token endpoint does not contain the token_type parameter. This happens if the identity provider (AAD, B2C, ADFS, etc.) did not include the access token type in the token response. Verify the configuration of the identity provider. "

public const string ActivityRequired = "On the Android platform, you have to pass the Activity to the UIParent object. See https://aka.ms/msal-interactive-android for details. "

public const string ActivityRequiredForParentObjectAndroid = "On Android, you have to specify the current Activity from which the browser pop-up will be displayed using the WithParentActivityOrWindow method. "

public const string AdfsDeviceFlowNotSupported = "Device Code Flow is not currently supported for ADFS. "

public const string AdfsNotCurrentlySupportedAuthorityType = "ADFS is not currently a supported authority type. "

public const string AdfsNotSupportedWithBroker = "Broker does not support ADFS environments. If using Proof-of-Possession, use IPublicClientApplication.IsProofOfPossessionSupportedByClient to ensure Proof-of-Possession can be performed before calling WithProofOfPossession."

public const string AkaMsmsalnet3BreakingChanges = "See https://aka.ms/msal-net-3-breaking-changes. "

public const string AndroidActivityNotFound = "The Activity cannot be found to launch the given Intent. To ensure authentication, a browser with custom tab support is recommended. See https://aka.ms/msal-net-system-browsers for more details on using system browser on Android."

public const string AndroidBrokerCannotBeInvoked = "The current version of the broker may not support MSAL or power optimization is turned on. In order to perform brokered authentication on android you need to ensure that you have installed either Intune Company Portal (5.0.4689.0 or greater) or Microsoft Authenticator (6.2001.0140 or greater). See https://aka.ms/Brokered-Authentication-for-Android. "

public const string AssemblyLoadFailedTemplate = "Loading an assembly required for the platform failed. Make sure assembly for the correct platform '{0}' exists. "

public const string AssemblyNotFoundTemplate = "Assembly required for the platform not found. Make sure assembly '{0}' exists. "

public const string AuthenticationCanceled = "User canceled authentication. "

public const string AuthenticationCanceledAndroid = "User canceled authentication. On an Android device, this could be due to the lack of capabilities, such as custom tabs, for the system browser. See https://aka.ms/msal-net-system-browsers for more information. "

public const string AuthenticationFailedWamElevatedProcess = "WAM Account Picker did not return an account. Either the user cancelled the authentication or the WAM Account Picker crashed because the app is running in an elevated process. For troubleshooting details, see https://aka.ms/msal-net-wam ."

public const string AuthenticationUiFailed = "The browser based authentication dialog failed to complete. "

public const string AuthorityDoesNotHaveTwoSegments = "Authority should be in the form <host>/<audience>, for example https://login.microsoftonline.com/common. "

public const string AuthorityInvalidUriFormat = "The authority (including the tenant ID) must be in a well-formed URI format. "

public const string AuthorityNotSupported = "'authority' is not supported. "

public const string AuthorityUriInsecure = "The authority must use HTTPS scheme. "

public const string AuthorityUriInvalidPath = "The authority URI should have at least one segment in the path (i.e. https://<host>/<path>/...). "

public const string AuthorityValidationFailed = "Authority validation failed. "

public const string AuthorizationServerInvalidResponse = "The authorization server returned an invalid response. "

public const string AuthorizeEndpointWasNotFoundInTheOpenIdConfiguration = "Authorize endpoint was not found in the openid configuration. "

public const string AzureAdMyOrgRequiresSpecifyingATenant = "When specifying AadAuthorityAudience.AzureAdMyOrg, you must also specify a tenant domain or tenant GUID. "

public const string B2CAuthorityHostMisMatch = "The B2C authority host that was used when creating the client application is not the same authority host used in the AcquireToken call. See https://aka.ms/msal-net-b2c for details. "

public const string B2cAuthorityUriInvalidPath = "The B2C authority URI should have at least 3 segments in the path (i.e. https://<host>/tfp/<tenant>/<policy>/...). "

public const string BrokerApplicationRequired = "Installation of broker failed. The broker application must be installed to continue authentication. "

public const string BrokerDoesNotSupportPop = "The broker does not support Proof-of-Possession on the current platform."

public const string BrokerNonceMismatch = "Broker response nonce does not match the request nonce sent by MSAL.NET. Please see https://aka.ms/msal-net-ios-13-broker for more details. "

public const string BrokerNotSupportedOnThisPlatform = "Broker is only supported on mobile platforms (Android and iOS). See https://aka.ms/msal-brokers for details. "

public const string BrokerRequiredForPop = "The request has Proof-of-Possession configured but does not have broker enabled. Broker is required to use Proof-of-Possession on public clients. Use IPublicClientApplication.IsProofOfPossessionSupportedByClient to ensure Proof-of-Possession can be performed before using WithProofOfPossession."

public const string BrokerResponseError = "Broker response returned error: "

public const string BrokerResponseHashMismatch = "Unencrypted broker response hash did not match the expected hash. "

public const string BrokerResponseReturnedError = "Broker response returned an error which does not contain an error or error description. See https://aka.ms/msal-brokers for details. "

public const string CannotAccessPublisherKeyChain = "The application cannot access the iOS keychain for the application publisher (the TeamId is null). This is needed to enable Single Sign On between applications of the same publisher. This is an iOS configuration issue. See https://aka.ms/msal-net-enable-keychain-access for more details on enabling keychain access. "

public const string CannotFindTheAuthEndpoint = "Cannot find the auth endpoint. "

public const string CannotInvokeBroker = "MSAL cannot invoke the broker. The Authenticator App (Broker) may not be installed on the user's device or there was an error invoking the broker. Check logs for more details and see https://aka.ms/msal-brokers. "

public const string CannotInvokeBrokerForPop = "MSAL cannot invoke the broker and it is required for Proof-of-Possession. WAM (Broker) may not be installed on the user's device or there was an error invoking the broker. Use IPublicClientApplication.IsProofOfPossessionSupportedByClient to ensure Proof-of-Possession can be performed before using WithProofOfPossession.Check logs for more details and see https://aka.ms/msal-net-pop. "

public const string CannotSwitchBetweenImdsVersionsForPreview = "ImdsV2 is currently experimental - A Bearer token has already been received; Please restart the application to receive a mTLS PoP token."

public const string CcsRoutingHintMissing = "Either the userObjectIdentifier or tenantIdentifier are missing. Both are needed to create the CCS routing hint. See https://aka.ms/msal-net/ccsRouting. "

public const string CertificateKeySizeTooSmallTemplate = "The certificate used must have a key size of at least {0} bits. "

public const string ClaimsChallenge = "The returned error contains a claims challenge. For additional info on how to handle claims related to multifactor authentication, Conditional Access, and incremental consent, see https://aka.ms/msal-conditional-access-claims. If you are using the On-Behalf-Of flow, see https://aka.ms/msal-conditional-access-claims-obo for details."

public const string ClientApplicationBaseExecutorNotImplemented = "ClientApplicationBase implementation does not implement IClientApplicationBaseExecutor. "

public const string ClientCredentialAuthenticationTypeMustBeDefined = "One client credential type required either: ClientSecret, Certificate, ClientAssertion or AppTokenProvider must be defined when creating a Confidential Client. Only specify one. See https://aka.ms/msal-net-client-credentials. "

public const string ClientCredentialAuthenticationTypesAreMutuallyExclusive = "ClientSecret, Certificate and ClientAssertion are mutually exclusive properties. Only specify one. See https://aka.ms/msal-net-client-credentials. "

public const string ClientCredentialWrongAuthority = "The current authority is targeting the /common or /organizations endpoint which is not recommended. See https://aka.ms/msal-net-client-credentials for more details."

public const string CombinedUserAppCacheNotSupported = "Using a combined flat storage, like a file, to store both app and user tokens is not supported. Use a partitioned token cache (for ex. distributed cache like Redis) or separate files for app and user token caches. See https://aka.ms/msal-net-token-cache-serialization ."

public const string ConfidentialClientDoesntImplementIConfidentialClientApplicationExecutor = "ConfidentialClientApplication implementation does not implement IConfidentialClientApplicationExecutor. "

public const string CryptographicError = "A cryptographic exception occurred. Possible cause: the certificate has been disposed. See inner exception for full details."

public const string CustomMetadataInstanceOrUri = "You have configured your own instance metadata using both an Uri and a string. Only one is supported. See https://aka.ms/msal-net-custom-instance-metadata for more details. "

public const string CustomWebUiAuthorizationCodeFailed = "CustomWebUi AcquireAuthorizationCode failed. "

public const string CustomWebUiReturnedInvalidUri = "ICustomWebUi returned an invalid URI - it is empty or has no query. "

public const string DefaultRedirectUriIsInvalid = "The OAuth2 redirect URI {0} should not be used with the system browser, because the operating system cannot go back to the app. Consider using the default redirect URI for this platform. See https://aka.ms/msal-client-apps for more details. "

public const string DeprecatedAuthorityError = "login.windows.net has been deprecated. Use login.microsoftonline.com instead. "

public const string DeviceCertificateNotFoundTemplate = "Device Certificate was not found for {0}. "

public const string DstsAuthorityDoesNotHaveThreeSegments = "Authority should be in the form <host>/<audience>/<tenantID>, for example https://login.microsoftonline.com/dsts/<tenantid>. "

public const string DstsAuthorityUriInvalidPath = "The DSTS authority URI should have at least 2 segments in the path (i.e. https://<host>/dstsv2/<tenant>/...). "

public const string DuplicateQueryParameterTemplate = "Duplicate query parameter '{0}' in extraQueryParameters. "

public const string EmailAddressSuffixMismatch = "No identity provider email address suffix matches the provided address. "

public const string EmbeddedWebviewDefaultBrowser = "You configured MSAL interactive authentication to use an embedded WebView and you also configured system WebView options. These are mutually exclusive. See https://aka.ms/msal-net-os-browser. "

public const string EncodedTokenTooLong = "Encoded token size is beyond the upper limit. "

public const string FailedToAcquireTokenSilently = "Failed to acquire token silently. Call method AcquireToken. "

public const string FailedToParseIDToken = "Failed to parse the returned id token. "

public const string FailedToRefreshToken = "Failed to refresh token. "

public const string FederatedServiceReturnedErrorTemplate = "Federated service at {0} returned error: {1} "

public const string ForceRefreshAndTokenHasNotCompatible = "Cannot specify ForceRefresh and AccessTokenSha256ToRefresh in the same request."

public const string GetUserNameFailed = "Failed to get user name. "

public const string HttpRequestUnsuccessful = "Response status code does not indicate success: {0} ({1}). "

public const string IdentityProtocolLoginUrlNull = "The LoginUrl property in identityProvider cannot be null. "

public const string IdentityProtocolMismatch = "No identity provider matches the requested protocol. "

public const string IdentityProviderRequestFailed = "Token request to identity provider failed. Check InnerException for more details. "

public const string IDTokenMustHaveTwoParts = "ID Token must have a valid JWT format. "

public const string InstanceAndAzureCloudInstanceAreMutuallyExclusive = "Instance and AzureCloudInstance are both set but they're mutually exclusive. "

public const string IntegratedAuthFailed = "Integrated authentication failed. You may try an alternative authentication method. "

public const string InteractiveAuthNotSupported = "On .Net Core, interactive authentication is not supported. Consider using Device Code Flow https://aka.ms/msal-net-device-code-flow or Integrated Windows Auth https://aka.ms/msal-net-iwa - you can also implement your own web UI - see https://aka.ms/msal-net-custom-web-ui. "

public const string InternalErrorCacheEmptyIdentifier = "Internal error - trying to remove an MSAL user with an empty identifier. Possible cache corruption. See https://aka.ms/adal_token_cache_serialization. "

public const string InternalErrorCacheEmptyUsername = "Internal error - trying to remove an MSAL user with an empty username. Possible cache corruption. See https://aka.ms/adal_token_cache_serialization. "

public const string InvalidAdalCacheMultipleRTs = "The ADAL cache is invalid as it contains multiple refresh token entries for one user. Deleting invalid ADAL cache. "

public const string InvalidArgumentLength = "Parameter has invalid length. "

public const string InvalidAuthenticateHeaderFormat = "Invalid authenticate header format. "

public const string InvalidAuthorityOpenId = "invalid authority while getting the open id config endpoint. "

public const string InvalidAuthorityTypeTemplate = "This method overload is not supported by '{0}'. "

public const string InvalidCertificate = "The certificate received from the Imds server is invalid."

public const string InvalidClient = "A configuration issue is preventing authentication - check the error message from the server for details. You can modify the configuration in the application registration portal. See https://aka.ms/msal-net-invalid-client for details. "

public const string InvalidClientAssertionEmpty = "Client‑assertion JWT cannot be null or empty. Verify the delegate supplied to WithClientAssertion returns a valid signed JWT."

public const string InvalidCredentialType = "Invalid credential type. "

public const string InvalidFormatParameterTemplate = "Parameter '{0}' has invalid format. "

public const string InvalidTokenCacheKeyFormat = "Invalid token cache key format. "

public const string InvalidUserInstanceMetadata = "The json containing instance metadata could not be parsed. See https://aka.ms/msal-net-custom-instance-metadata for details. "

public const string IssuerValidationFailed = "Issuer validation failed for authority: {0} . Issuer from OIDC endpoint does not match any expected pattern: {1} . "

public const string IssuerWasNotFoundInTheOpenIdConfiguration = "Issuer was not found in the openid configuration. "

public const string IwaNotSupportedForManagedUser = "Integrated Windows Auth is not supported for managed users. See https://aka.ms/msal-net-iwa for details. "

public const string JsonParseErrorMessage = "There was an error parsing the response from the token endpoint, see inner exception for details. Verify that your app is configured correctly. If this is a B2C app, one possible cause is acquiring a token for Microsoft Graph, which is not supported. See https://aka.ms/msal-net-up"

public const string LinuxOpenAsSudoNotSupported = "Unable to open a web page using xdg-open, gnome-open, kfmclient or wslview tools in sudo mode. Please run the process as non-sudo user."

public const string LinuxOpenToolFailed = "Unable to open a web page using xdg-open, gnome-open, kfmclient or wslview tools. See inner exception for details. Possible causes for this error are: tools are not installed or they cannot open a URL. Make sure you can open a web page by invoking from a terminal: xdg-open https://www.bing.com "

public const string LoggingCallbackAlreadySet = "LoggingCallback has already been set. "

public const string LoggingClassIsObsolete = "Logging is now specified per ClientApplication. See https://aka.ms/msal-net-3-breaking-changes and https://aka.ms/msal-net-application-configuration. "

public const string LoginHintNullForUiOption = "Null login_hint is not allowed for Prompt.ActAsCurrentUser. "

public const string MalformedOidcAuthorityFormat = "Possible cause: When using Entra External ID, you didn't append /v2.0, for example {0}/v2.0\""

public const string ManagedIdentityAllSourcesUnavailable = "All Managed Identity sources are unavailable."

public const string ManagedIdentityEndpointInvalidUriError = "[Managed Identity] The environment variable {0} contains an invalid Uri {1} in {2} managed identity source."

public const string ManagedIdentityExactlyOneScopeExpected = "[Managed Identity] To acquire token for managed identity, exactly one scope must be passed."

public const string ManagedIdentityInvalidChallenge = "[Managed Identity] The WWW-Authenticate header in the response from Azure Arc Managed Identity Endpoint did not match the expected format."

public const string ManagedIdentityInvalidFile = "[Managed Identity] The file on the file path in the WWW-Authenticate header is not secure."

public const string ManagedIdentityInvalidIdType = "Only {0} supported for user-assigned managed identity in {1}"

public const string ManagedIdentityInvalidResponse = "[Managed Identity] Invalid response, the authentication response received did not contain the expected fields."

public const string ManagedIdentityJsonParseFailure = "[Managed Identity] MSI returned 200 OK, but the response could not be parsed."

public const string ManagedIdentityNoChallengeError = "[Managed Identity] Did not receive expected WWW-Authenticate header in the response from Azure Arc Managed Identity Endpoint."

public const string ManagedIdentityNoResponseReceived = "[Managed Identity] Authentication unavailable. No response received from the managed identity endpoint."

public const string ManagedIdentityPlatformNotSupported = "[Managed Identity] The platform is not supported by Azure Arc. Azure Arc only supports Windows and Linux."

public const string ManagedIdentityUnexpectedErrorResponse = "[Managed Identity] The error response was either empty or could not be parsed."

public const string ManagedIdentityUnexpectedResponse = "[Managed Identity] Unexpected exception occurred when parsing the response. See the inner exception for details."

public const string ManagedIdentityUserAssignedNotConfigurableAtRuntime = "[Managed Identity] Service Fabric user assigned managed identity ClientId or ResourceId is not configurable at runtime."

public const string ManagedIdentityUserAssignedNotSupported = "[Managed Identity] User assigned identity is not supported by the {0} Managed Identity. To authenticate with the system assigned identity omit the client id in ManagedIdentityApplicationBuilder.Create()."

public const string MatsAndTelemetryCallbackCannotBeConfiguredSimultaneously = "MATS cannot be configured at the same time as a TelemetryCallback is provided. These are mutually exclusive. "

public const string MissingAuthenticateHeader = "WWW-Authenticate header was expected in the response. "

public const string MissingEntitlements = "The application does not have keychain access groups enabled in the Entitlements.plist. As a result, there was a failure to save to the iOS keychain. The keychain access group '{0}' is not enabled in the Entitlements.plist. Also, use the WithIosKeychainSecurityGroup api to set the keychain access group. See https://aka.ms/msal-net-enable-keychain-groups for more details on enabling keychain access groups and entitlements."

public const string MissingFederationMetadataUrl = "Federation Metadata URL is missing for federated user. This user type is unsupported. "

public const string MsalExceptionFailedToParse = "Attempted to deserialize an MsalException but the type was unknown. "

public const string MsalUiRequiredMessage = "No account or login hint was passed to the AcquireTokenSilent call. "

public const string MtlsBearerWithoutRegion = "mTLS Bearer requires a region to be specified. Please set AzureRegion in the configuration at the application level."

public const string MtlsCertificateNotProvidedMessage = "mTLS Proof‑of‑Possession requires a certificate for this request. Either configure the application with .WithCertificate(...) or pass a certificate‑bound client‑assertion and chain .WithMtlsProofOfPossession() on the request builder. See https://aka.ms/msal-net-pop for details."

public const string MtlsInvalidAuthorityTypeMessage = "mTLS PoP is only supported for AAD authority type. See https://aka.ms/msal-net-pop for details."

public const string MtlsNonTenantedAuthorityNotAllowedMessage = "mTLS authentication requires a tenanted authority. Using 'common', 'organizations', or similar non-tenanted authorities is not allowed. Please provide an authority with a specific tenant ID (e.g., 'https://login.microsoftonline.com/{tenantId}'). See https://aka.ms/msal-net-pop for details."

public const string MtlsNotSupportedForManagedIdentityMessage = "IMDSv2 flow is not supported on .NET Framework 4.6.2. Cryptographic operations required for managed identity authentication are unavailable on this platform."

public const string MtlsNotSupportedForNonWindowsMessage = "mTLS PoP with Managed Identity is not supported on this OS. See https://aka.ms/msal-net-pop."

public const string MtlsPopNotSupportedForChinaCloudApiMessage = "login.chinacloudapi.cn is not supported for mTLS PoP, please use login.partner.microsoftonline.cn"

public const string MtlsPopNotSupportedForNonLoginHostMessage = "mTLS PoP is only supported for hosts that start with 'login.'. The provided authority host does not meet this requirement. See https://aka.ms/msal-net-pop for details."

public const string MtlsPopNotSupportedForUsGovCloudApiMessage = "login.usgovcloudapi.net is not supported for mTLS PoP, please use login.microsoftonline.us"

public const string MtlsPopTokenNotSupportedinImdsV1 = "A mTLS PoP token cannot be requested because the application's source was determined to be ImdsV1."

public const string MtlsPopWithoutRegion = "mTLS Proof of Possession requires a region to be specified. Please set AzureRegion in the configuration at the application level."

public const string MultiCloudSupportUnavailable = "Multi cloud support unavailable with broker."

public const string MultipleAccountsForLoginHint = "You are trying to acquire a token silently using a login hint. Multiple accounts were found in the token cache having this login hint. Please choose an account manually an pass it in to AcquireTokenSilently. "

public const string MultipleTokensMatched = "The cache contains multiple tokens satisfying the requirements. Try to clear token cache. "

public const string NoAccountForLoginHint = "You are trying to acquire a token silently using a login hint. No account was found in the token cache having this login hint. "

public const string NoAndroidBrokerAccountFound = "Android account manager could not find an account that matched the provided account information. "

public const string NoClientIdWasSpecified = "No ClientId was specified. "

public const string NonceRequiredForPop = "The request has Proof-of-Possession configured for public clients but does not have a nonce provided. A nonce is required for Proof-of-Possession on public clients."

public const string NonHttpsRedirectNotSupported = "Non-HTTPS URL redirect is not supported in a web view. This error happens when the authorization flow, which collects user credentials, gets redirected to a page that is not supported, for example if the redirect occurs over http. This error does not trigger for the final redirect, which can be http://localhost, but for intermediary redirects.Mitigation: This usually happens when using a federated directory which is not setup correctly. "

public const string NonParsableOAuthError = "An error response was returned by the OAuth2 server, but it could not be parsed. Please inspect the exception properties for details. "

public const string NoPromptFailedErrorMessage = "One of two conditions was encountered: 1. The Prompt.Never flag was passed, but the constraint could not be honored, because user interaction was required. 2. An error occurred during a silent web authentication that prevented the HTTP authentication flow from completing in a short enough time frame. "

public const string NoRedirectUri = "No redirectUri was configured. MSAL does not provide any defaults. "

public const string NoRefreshTokenInResponse = "Acquire by refresh token request completed, but no refresh token was found. "

public const string NoRefreshTokenProvided = "A refresh token must be provided. "

public const string NoTokensFoundError = "No Refresh Token found in the cache. "

public const string NullIntentReturnedFromBroker = "Broker returned a null intent. Check the Android app settings and logs for more information. "

public const string NullParameterTemplate = "Parameter '{0}' cannot be null. "

public const string OboCacheKeyNotInCache = "The token cache does not contain a token with an OBO cache key that matches the longRunningProcessSessionKey passed into ILongRunningWebApi.AcquireTokenInLongRunningProcess method. Call ILongRunningWebApi.InitiateLongRunningProcessInWebApi method with this longRunningProcessSessionKey first or call ILongRunningWebApi.AcquireTokenInLongRunningProcess method with an already used longRunningProcessSessionKey. See https://aka.ms/msal-net-long-running-obo ."

public const string OnBehalfOfWrongAuthority = "The current authority is targeting the /common or /organizations endpoint. Instead, it should target the same tenant as the client, which can be found in the 'tid' claim of the incoming client token. See https://aka.ms/msal-net-on-behalf-of for more details."

public const string ParsingMetadataDocumentFailed = "Parsing WS metadata exchange failed. "

public const string ParsingWsTrustResponseFailed = "Parsing WS-Trust response failed. "

public const string ParsingWsTrustResponseFailedDueToConfiguration = "There was an error parsing the WS-Trust response from the endpoint. \nThis may occur if there are issues with your ADFS configuration. See https://aka.ms/msal-net-iwa-troubleshooting for more details.\nEnable logging to see more details. See https://aka.ms/msal-net-logging."

public const string ParsingWsTrustResponseFailedErrorTemplate = "Federated service at {0} parse error. Enable logging with PII to see more details. See https://aka.ms/msal-net-logging."

public const string PasswordRequiredForManagedUserError = "Password is required for managed user. "

public const string PlatformNotSupported = "Platform Not Supported"

public const string ReadingApplicationTokenFromKeychainFailed = "This error indicates that the reading of the application token from the keychain threw an exception. No SecStatusCode was returned. "

public const string RedirectUriContainsFragment = "'redirectUri' must NOT include a fragment component. "

public const string RegionalAndAuthorityOverride = "You configured WithAuthority at the request level, and also WithAzureRegion. This is not supported when the environment changes from application to request. Use WithTenantId at the request level instead."

public const string RegionDiscoveryFailed = "Region discovery for the instance failed. Region discovery can only be made if the service resides in Azure function or Azure VM. See https://aka.ms/msal-net-region-discovery for more details. "

public const string RegionDiscoveryFailedWithTimeout = "Region discovery failed due to app cancellation or timeout. "

public const string RegionDiscoveryNotAvailable = "Region discovery cannot be performed for ADFS authority. Do not set `WithAzureRegion` to true. "

public const string RegionDiscoveryWithCustomInstanceMetadata = "Configure either region discovery or custom instance metadata. Custom instance discovery metadata overrides region discovery. "

public const string RegionRequiredForMtlsPopMessage = "Regional auto-detect failed. mTLS Proof-of-Possession requires a region to be specified, as there is no global endpoint for mTLS. See https://aka.ms/msal-net-pop for details."

public const string RequestFailureErrorMessage = "=== Token Acquisition ({0}) failed.\n\tHost: {1}."

public const string RequestFailureErrorMessagePii = "=== Token Acquisition ({0}) failed:\n\tAuthority: {1}\n\tClientId: {2}."

public const string RequestTimeOut = "Request to the endpoint timed out."

public const string RopcDoesNotSupportMsaAccounts = "ROPC does not support MSA accounts. See https://aka.ms/msal-net-ropc for details. "

public const string ScopesRequired = "At least one scope needs to be requested for this authentication flow. "

public const string ServiceReturnedError = "Service returned error. Check InnerException for more details. "

public const string SetCiamAuthorityAtRequestLevelNotSupported = "Setting the CIAM authority (ex. \"{tenantName}.ciamlogin.com\") at the request level is not supported. The CIAM authority must be set during application creation"

public const string SpecifyAnyUser = "If you do not need access token for any specific user, pass userId=UserIdentifier.AnyUser instead of userId=null. "

public const string SSHCertUsedAsHttpHeader = "MSAL was configured to request SSH certificates from AAD, and these cannot be used as an HTTP authentication header. Developers are responsible for transporting the SSH certificates to the target machines. "

public const string StateMismatchErrorMessage = "Returned state({0}) from authorize endpoint is not the same as the one sent({1}). See https://aka.ms/msal-statemismatcherror for more details. "

public const string StaticCacheWithExternalSerialization = "You configured MSAL cache serialization at the same time with internal caching options. These are mutually exclusive. Use only one option. Web site and web api scenarios should rely on external cache serialization, as internal cache serialization cannot scale. See https://aka.ms/msal-net-token-cache-serialization ."

public const string StsMetadataRequestFailed = "Metadata request to Access Control service failed. Check InnerException for more details. "

public const string StsTokenRequestFailed = "Token request to security token service failed. Check InnerException for more details. "

public const string TelemetryCallbackAlreadySet = "TelemetryCallback has already been set. "

public const string TelemetryClassIsObsolete = "Telemetry is now specified per ClientApplication. See https://aka.ms/msal-net-3-breaking-changes and https://aka.ms/msal-net-application-configuration. "

public const string TenantIdAndAadAuthorityInstanceAreMutuallyExclusive = "TenantId and AadAuthorityAudience are both set, but they're mutually exclusive. "

public const string TenantOverrideNonAad = "WithTenantId can only be used when an AAD authority is specified at the application level."

public const string TokenCacheDictionarySerializerFailedParse = "MSAL V2 Deserialization failed to parse the cache contents. Is this possibly an earlier format needed for DeserializeMsalV3? (See https://aka.ms/msal-net-3x-cache-breaking-change). "

public const string TokenCacheJsonSerializerFailedParse = "MSAL deserialization failed to parse the cache contents. First characters of the cache string: {0} \r\nPossible cause: token cache encryption is used via Microsoft.Identity.Web.TokenCache and decryption fails, for example. \r\n Full details of inner exception: {1} "

public const string TokenCacheSetCallbackFunctionalityNotAvailableFromWithinCallback = "You cannot set a token cache callback method from within the callback itself. "

public const string TokenEndpointWasNotFoundInTheOpenIdConfiguration = "Token endpoint was not found in the openid configuration. "

public const string UIViewControllerIsRequiredToInvokeiOSBroker = "UIViewController is null, so MSAL.NET cannot invoke the iOS broker. See https://aka.ms/msal-net-ios-broker. "

public const string UnableToParseAuthenticationHeader = "MSAL is unable to parse the authentication header returned from the resource endpoint. This can be a result of a malformed header returned in either the WWW-Authenticate or the Authentication-Info collections acquired from the provided endpoint."

public const string UnauthorizedHttpStatusCodeExpected = "Unauthorized HTTP Status Code (401) was expected in the response. "

public const string UnauthorizedResponseExpected = "Unauthorized HTTP response (status code 401) was expected. "

public const string UnexpectedAuthorityValidList = "Unexpected list of valid addresses. "

public const string Unknown = "Unknown error"

public const string UnknownUser = "Could not identify the user logged into the OS. See http://aka.ms/msal-net-iwa for details. "

public const string UnknownUserType = "Unknown User Type"

public const string UnsupportedAuthorityValidation = "Authority validation is not supported for this type of authority. See http://aka.ms/valid-authorities for details. "

public const string UnsupportedMultiRefreshToken = "This authority does not support refresh token for multiple resources. Pass null as a resource. "

public const string UnsupportedUserType = "Unsupported User Type '{0}'. Please see https://aka.ms/msal-net-up. "

public const string UpnRequiredForAuthorityValidation = "UPN is required for ADFS authority validation. "

public const string UserCredentialAssertionTypeEmpty = "credential.AssertionType cannot be empty. "

public const string UserMismatch = "User '{0}' returned by service does not match user '{1}' in the request. "

public const string UserMismatchSaveToken = "Returned user identifier does not match the sent user identifier when saving the token to the cache. "

public const string UserRealmDiscoveryFailed = "User realm discovery failed. "

public const string ValidateAuthorityOrCustomMetadata = "You have configured custom instance metadata, but the validateAuthority flag is set to true. These are mutually exclusive. Set the validateAuthority flag to false. See https://aka.ms/msal-net-custom-instance-metadata for more details. "

public const string WebView2LoaderNotFound = "The embedded WebView2 browser cannot be started because a runtime component cannot be loaded. For troubleshooting details, see https://aka.ms/msal-net-webview2 ."

public const string WritingApplicationTokenToKeychainFailed = "This error indicates that the writing of the application token from iOS broker to the keychain threw an exception. No SecStatusCode was returned. "

public const string WsTrustEndpointNotFoundInMetadataDocument = "WS-Trust endpoint not found in metadata document. "

public static string AuthorityTypeMismatch(AuthorityType appAuthorityType, AuthorityType requestAuthorityType)

public static string CertMustBeRsa(string certificateFriendlyName)

public static string CertMustHavePrivateKey(string certificateName)

public static string ExperimentalFeature(string methodName)

public static string InitializeProcessSecurityError(string errorCode)

public static string InvalidJsonClaimsFormat(string claims)

public static string InvalidRedirectUriReceived(string invalidRedirectUri)

public static string InvalidTokenProviderResponseValue(string invalidValueName)

public static string iOSBrokerKeySaveFailed(string keyChainResult)

public static string NoUserInstanceMetadataEntry(string environment)

public static string RedirectUriMismatch(string expectedUri, string actualUri)

public static string TokenTypeMismatch(string requestTokenType, string responseTokenType)

public static string WABError(string status, string errorDetail, string responseData)