Skip to content

Commit

Permalink
dont throw for no WwwAuthenticateHeader in Challenge result (#4542)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp authored Jan 24, 2024
1 parent 366418e commit d01b12d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public static IDictionary<string, string> ParseChallengeData(HttpResponseHeaders
{
IDictionary<string, string> data = new Dictionary<string, string>();
string wwwAuthenticate = responseHeaders.GetValues(PKeyAuthConstants.WwwAuthenticateHeader).SingleOrDefault();
wwwAuthenticate = wwwAuthenticate.Substring(PKeyAuthConstants.PKeyAuthName.Length + 1);
wwwAuthenticate = wwwAuthenticate?.Substring(PKeyAuthConstants.PKeyAuthName.Length + 1);
if (string.IsNullOrEmpty(wwwAuthenticate))
{
return data;
Expand Down

0 comments on commit d01b12d

Please sign in to comment.