Hello Alan,
The CID is the same as the Location ID provided with Delegated Authentication; the only difference is that the Location ID is in hexadecimal format while the CID should be in signed decimal format.
The following code sample converts a Location ID to a CID:
WindowsLiveLogin.ConsentToken consentToken = <your token>;
long cid;
if (!Int64.TryParse(consentToken.LocationID,
System.Globalization.NumberStyles.HexNumber, null, out cid))
throw new InvalidOperationException("The Location ID is not a hexadecimal number");
// Variable cid now contains a valid decimal number which you can use as CID.