MistKit icon indicating copy to clipboard operation
MistKit copied to clipboard

A Question about public databases

Open yousifKashef opened this issue 2 years ago • 4 comments

Is a token required to access the public database of a CKContainer? I ask only shared and private databases are mentioned

yousifKashef avatar Oct 29 '21 15:10 yousifKashef

Yeah public databases aren't supported yet. I'll add that to the roadmap.

leogdion avatar Oct 30 '21 14:10 leogdion

thanks for clearing that up

yousifKashef avatar Oct 30 '21 18:10 yousifKashef

Just to circle back, this should work though I haven't tested using the standard web auth via Apple ID method but also via a Server-to-Server token. I'm not sure I support the server-to-server token yet. So if you want to test that out feel free but the current Apple ID method should still work. Obviously with a Public db that seems unnecessary hence the server-to-server token. If you are interested, you can take look at how both methods work here: https://developer.apple.com/library/archive/documentation/DataManagement/Conceptual/CloudKitWebServicesReference/SettingUpWebServices.html#//apple_ref/doc/uid/TP40015240-CH24-SW6

leogdion avatar Nov 01 '21 13:11 leogdion

Hi Leo,

Thanks for following up about this. Correct me if I’m wrong (please!) but the documentation you sent appears to suggest that I may be able to communicate with the public database without the need for Apple ID authentication (server token only). Do you concur? This would be perfect for what I’m trying to do. The reason I found MistKit is because I need CloudKit access from an app clip and those don’t support it yet. Up until I saw the documentation you shared with me I was under the impression that this would be impossible without having the user sign in to their Apple ID from the app clip, which would be nuts in terms of user experience. Anyway, if the train of thought I lay out here is feasible, I’d love to help you extend MistKit to accommodate AppClip island hopping to CloudKit

On Nov 1, 2021, at 5:20 PM, leogdion @.***> wrote:

 Just to circle back, this should work though I haven't tested using the standard web auth via Apple ID method but also via a Server-to-Server token. I'm not sure I support the server-to-server token yet. So if you want to test that out feel free but the current Apple ID method should still work. Obviously with a Public db that seems unnecessary hence the server-to-server token. If you are interested, you can take look at how both methods work here: https://developer.apple.com/library/archive/documentation/DataManagement/Conceptual/CloudKitWebServicesReference/SettingUpWebServices.html#//apple_ref/doc/uid/TP40015240-CH24-SW6

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

yousifKashef avatar Nov 01 '21 17:11 yousifKashef