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 26, 2018
1 parent 2310ca1 commit c7dd17e
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 c7dd17e

Please sign in to comment.