CloudKit CKFetchWebAuthTokenOperation

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.

Got the same issue, firstly I developed a web frontend that allowed me to get web auth token and use the apple api, but once I started to work ios implementation got stuck with exact same error.

I haven't found the solution to the problem yet. And I just revistited the code again after many months. I was hoping I'd have had an answer by now. Googling the problem, I actually found my previous question here.

The same problem still persist.... frustrating. Also asked here: https://stackoverflow.com/questions/53182290/icloud-cloudkit-ckfetchwebauthtokenoperation

CloudKit CKFetchWebAuthTokenOperation
 
 
Q