File tree 1 file changed +2
-4
lines changed
src/client/Microsoft.Identity.Client/ManagedIdentity
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -138,17 +138,15 @@ private void ValidateSplitChallenge(string[] splitChallenge)
138
138
}
139
139
140
140
_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
+
144
142
if ( ! IsValidPath ( splitChallenge [ 1 ] ) )
145
143
{
146
144
throw CreateManagedIdentityException (
147
145
MsalError . ManagedIdentityRequestFailed ,
148
146
MsalErrorMessage . ManagedIdentityInvalidFile ) ;
149
147
}
150
148
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 ] } ") ;
152
150
153
151
var length = new FileInfo ( splitChallenge [ 1 ] ) . Length ;
154
152
You can’t perform that action at this time.
0 commit comments