Skip to content

Commit

Permalink
Check that the authorization header is providing Digest credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
mconnew committed Mar 22, 2018
1 parent 13c9efb commit f81ca26
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ public DigestAuthenticationState(OperationContext operationContext, string realm
_password = null;
_authorized = new bool?();
_authorizationHeader = GetAuthorizationHeader(operationContext, out _method);
if (_authorizationHeader.Length < DigestAuthenticationMechanismLength)
if (_authorizationHeader.Length < DigestAuthenticationMechanismLength || !_authorizationHeader.StartsWith(DigestAuthenticationMechanism))
{
_authorized = false;
_nonceString = string.Empty;
Expand Down

0 comments on commit f81ca26

Please sign in to comment.