1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / SiteFinity generated a password that broke SiteSync

SiteFinity generated a password that broke SiteSync

1 posts, 0 answered
  1. Russell
    Russell avatar
    0 posts
    Registered:
    03 Feb 2017
    28 Apr
    Link to this post

    I spend the last 4 day trying to fix an issue that thankfully Laurent from  your Support team was able to help solve. (00397752)
    SiteSync was inexplicably failing after many months of normal operation. I kept seeing this error: "Incorrect Basic Authentication formatting."

    This is Found inside ClaimsManager.cs > tryParseBasicAuth Method.

    if (strArray.Length != 2)
    throw new HttpException(400, "Incorrect Basic Authentication formatting.");

    The reason was that we had recently changed the password and SiteFinity had generated a password with a colon in it. For example : ABC:123 So the (base64 decoded) username and password string became: thunder.admin:ABC:123

    Therefore  if (strArray.Length != 2) will falsely return an error.

    I suggest you change this to  if (strArray.Length > 0)

1 posts, 0 answered