You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
_requestContext.Logger.Error($"[Managed Identity] File does not exist or is greater than 4096 bytes. File exists: {File.Exists(splitChallenge[1])}. Length of file: {length}");
176
+
throwCreateManagedIdentityException(
177
+
MsalError.ManagedIdentityRequestFailed,
178
+
MsalErrorMessage.ManagedIdentityInvalidFile);
179
+
}
180
+
181
+
_requestContext.Logger.Verbose(()=>"[Managed Identity] File exists and is less than 4096 bytes.");
Copy file name to clipboardExpand all lines: src/client/Microsoft.Identity.Client/MsalErrorMessage.cs
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -419,6 +419,8 @@ public static string InvalidTokenProviderResponseValue(string invalidValueName)
419
419
publicconststringManagedIdentityEndpointInvalidUriError="[Managed Identity] The environment variable {0} contains an invalid Uri {1} in {2} managed identity source.";
420
420
publicconststringManagedIdentityNoChallengeError="[Managed Identity] Did not receive expected WWW-Authenticate header in the response from Azure Arc Managed Identity Endpoint.";
421
421
publicconststringManagedIdentityInvalidChallenge="[Managed Identity] The WWW-Authenticate header in the response from Azure Arc Managed Identity Endpoint did not match the expected format.";
422
+
publicconststringManagedIdentityInvalidFile="[Managed Identity] The file on the file path in the WWW-Authenticate header is not secure.";
423
+
publicconststringManagedIdentityPlatformNotSupported="[Managed Identity] The platform is not supported by Azure Arc. Azure Arc only supports Windows and Linux.";
422
424
publicconststringManagedIdentityUserAssignedNotSupported="[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().";
423
425
publicconststringManagedIdentityUserAssignedNotConfigurableAtRuntime="[Managed Identity] Service Fabric user assigned managed identity ClientId or ResourceId is not configurable at runtime.";
424
426
publicconststringCombinedUserAppCacheNotSupported="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 .";
0 commit comments