[TIMOB-27139] Apple Sign-In as new ArrowDB Social Integration
| GitHub Issue | n/a |
|---|---|
| Type | New Feature |
| Priority | n/a |
| Status | Open |
| Resolution | Unresolved |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | n/a |
| Labels | ArrowDB |
| Reporter | Joseph Sachs |
| Assignee | Abir Mukherjee |
| Created | 2019-06-05T11:08:04.000+0000 |
| Updated | 2019-10-04T17:04:39.000+0000 |
Description
iOS 13 just announced “Sign in with Apple”, this is Mandatory when having Social Logins. ArrowDB has Social Integrations already for Twitter, LinkedIn, Facebook, etc; would it also work for Sign in with Apple? It would be mandatory for Apps being approved on the App Stores as of next year.
Hello [~underlabs], Thanks for the feature request. Can you please share the native docs on how this is handled in there? Our engineers will look into it. Thanks.
This is what I found: https://developer.apple.com/sign-in-with-apple/get-started/ https://help.apple.com/developer-account/#/devde676e696 https://developer.apple.com/documentation/authenticationservices https://developer.apple.com/documentation/signinwithapplerestapi
*UPDATE:* @hans & @sgtcoolguy have already developed a module for iOS Titanium Apps to Sign-in with Apple, and naturally the call back provides an identityToken:
Similarly to how we send back to [ArrowDB for SocialLogins](https://docs.appcelerator.com/arrowdb/latest/#!/api/SocialIntegrations-method-external_account_link) the token call back, I assume we would provide the [identityToken](https://github.com/appcelerator-modules/titanium-apple-sign-in/blob/3074998c78b6435f71d6752f892ebaf595877512/apidoc/Applesignin.yml#L201) _or authorizationCode_ for Login with Apple.var AppleSignIn = require('ti.applesignin'); AppleSignIn.addEventListener('login', function (event) { if (!event.success) { alert(event.error); return; } Ti.API.warn(event); // identityToken part of the params });Apple has made it obligatory to have this feature by April 2020.