Skip to content

Commit 8a6fe48

Browse files
committed
Update AzureArcManagedIdentitySource.cs
1 parent 61a89f7 commit 8a6fe48

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/client/Microsoft.Identity.Client/ManagedIdentity/AzureArcManagedIdentitySource.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,17 +138,15 @@ private void ValidateSplitChallenge(string[] splitChallenge)
138138
}
139139

140140
_requestContext.Logger.Verbose(() => $"[Managed Identity] Challenge is valid. FilePath: {splitChallenge[1]}");
141-
string path = Path.GetFullPath(new Uri(splitChallenge[1]).LocalPath)
142-
.TrimEnd(Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar);
143-
141+
144142
if (!IsValidPath(splitChallenge[1]))
145143
{
146144
throw CreateManagedIdentityException(
147145
MsalError.ManagedIdentityRequestFailed,
148146
MsalErrorMessage.ManagedIdentityInvalidFile);
149147
}
150148

151-
_requestContext.Logger.Verbose(() => $"[Managed Identity] File path is valid. Path: {path}");
149+
_requestContext.Logger.Verbose(() => $"[Managed Identity] File path is valid. Path: {splitChallenge[1]}");
152150

153151
var length = new FileInfo(splitChallenge[1]).Length;
154152

0 commit comments

Comments
 (0)