Hi all,
I'm using Postman and sending through the request:
https://api.apple-cloudkit.com/database/1/iCloud.com.***.yyy/development/private/records/lookup?ckAPIToken=[removed ckAPIToken]&ckWebAuthToken=[removed ckWebAuthToken]
Standard up to now. The difference is that I'm getting the ckWebAuthToken from an iOS app running, by calling:
CKFetchWebAuthTokenOperation ("[ckAPIToken]")
When I try and use that token generated, I'm receiving:
{
"uuid": "......-.......-[removed]-........-......",
"serverErrorCode": "ACCESS_DENIED",
"reason": "private db access disabled for this account"
}
Is this even possible? Is the token generated by CKFetchWebAuthTokenOperation a viable token to use for the private database? It seems to work correctly for the public database. I can use it to determine the correct user and read records that have been hidden to both World and Authenticated users based on the Security Roles. But as soon as I try to use the exact same process, instead using the private database, it returns the above error.
Am I missing something blatantly obvious? I may have read somewhere that the Web Service access to development private databases isn't available, but then again, I might not have. Anyone got any help?
Thanks in advance.