SiteFinity generated a password that broke SiteSync

Posted by Community Admin on 04-Aug-2018 04:11

SiteFinity generated a password that broke SiteSync

All Replies

Posted by Community Admin on 28-Apr-2017 00:00

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)

This thread is closed