C# access to cloudkit

hi everyone

Sorry but i have to ask

i want to use cloudkit for an ipad app, but the data should be accessible also from a windows application made with c#

So i will use cloudkit web services but i'm pretty stuck at the login part.

To login, from the document, i need to open a web page and login and wait for a token but how can i do this inside a winform application? is there any other way to authenticate outside a login web page?

Accepted Reply

Wierd. Here is the link with "before you begin #2":

https://developer.apple.com/documentation/cloudkitjs


And the method is further decsibed here:

https://developer.apple.com/library/content/documentation/DataManagement/Conceptual/CloudKitWebServicesReference/SettingUpWebServices.html#//apple_ref/doc/uid/TP40015240-CH24-SW2


I believe you can create a one-time API token and web authorization token and embed that in your windows application code. But in any event, your issue is coding a c# application to present the token as described above - and, in that regard, I have no idea how to proceed. Good luck!

Replies

Isn't the answer in #2 under "before you begin" here:

https://developer.apple.com/documentation/cloudkitjs/cloudkit.database/1628596-performquery

no my problem is not making a query, but to login from a desktop c# application. and that is a problem.

I have tried yesterday to use the c# webbrowser control but it opens an old version of ie that doesn't support the javscript of the cloudkit login page.

if there is no other way i suppose i am in trouble and i will need to migrate the data to something else like aws or azure.

Me sad.

ah sorry i see now what you meant. Yes i am following #2 but that is the problem

i have problem embedding a web view in the c# desktop application to get the authorization token.

i have spent all yesterday trying different solution, with absolutely no success

Wierd. Here is the link with "before you begin #2":

https://developer.apple.com/documentation/cloudkitjs


And the method is further decsibed here:

https://developer.apple.com/library/content/documentation/DataManagement/Conceptual/CloudKitWebServicesReference/SettingUpWebServices.html#//apple_ref/doc/uid/TP40015240-CH24-SW2


I believe you can create a one-time API token and web authorization token and embed that in your windows application code. But in any event, your issue is coding a c# application to present the token as described above - and, in that regard, I have no idea how to proceed. Good luck!