The answers here might be helpful: <a href="http:&#x2F;&#x2F;stackoverflow.com&#x2F;questions&#x2F;35247436&#x2F;cloudkit-server-to-server-authentication&#x2F;35254094" rel="nofollow">http:&#x2F;&#x2F;stackoverflow.com&#x2F;questions&#x2F;35247436&#x2F;cloudkit-server-...</a>