Skip to content

Commit a0837bc

Browse files
mconnewStephenBonikowsky
authored andcommitted
Check that the authorization header is providing Digest credentials
1 parent 977faf7 commit a0837bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/System.Private.ServiceModel/tools/IISHostedWcfService/App_code/DigestServiceAuthorizationManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public DigestAuthenticationState(OperationContext operationContext, string realm
145145
_password = null;
146146
_authorized = new bool?();
147147
_authorizationHeader = GetAuthorizationHeader(operationContext, out _method);
148-
if (_authorizationHeader.Length < DigestAuthenticationMechanismLength)
148+
if (_authorizationHeader.Length < DigestAuthenticationMechanismLength || !_authorizationHeader.StartsWith(DigestAuthenticationMechanism))
149149
{
150150
_authorized = false;
151151
_nonceString = string.Empty;

0 commit comments

Comments
 (0)