Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Apple Sign In
Started by Scott Harrison Sep 22 2019 10:08 AM

5 replies to this topic
apple sign in
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

Scott Harrison

[GLOBAL: userInfoPane.html]
Scott Harrison
  • Corona Geek

  • 1,841 posts
  • Enterprise

ezgif-3-194c6b1dd6b6.gif

 

 

Check out the new free Apple Sign In

 

https://marketplace.coronalabs.com/corona-plugins/apple-sign-in


  • R2robot likes this

[TOPIC: post.html]
#2

chkuendig

[GLOBAL: userInfoPane.html]
chkuendig
  • Observer

  • 8 posts
  • Corona SDK

Is there any way to get the credentials passed from apple? ( https://developer.apple.com/documentation/authenticationservices/asauthorizationappleidcredential )

 

I'm trying to implement an authentication flow similar to what's outlined at https://dev.to/michalrogowski/why-sign-in-with-apple-may-take-you-more-than-5-minutes-and-how-it-works-55p6



[TOPIC: post.html]
#3

Scott Harrison

[GLOBAL: userInfoPane.html]
Scott Harrison
  • Corona Geek

  • 1,841 posts
  • Enterprise

What do you mean by “credentials”? See docs
http://scotth.tech/plugin-appleSignIn

[TOPIC: post.html]
#4

chkuendig

[GLOBAL: userInfoPane.html]
chkuendig
  • Observer

  • 8 posts
  • Corona SDK

What I meant are the additional tokens Apple is passing on to the app after authenticating:

  • identityToken (JWT)
  • authorizationCode
  • email

 

When trying your plugin and checking out the docs, I only see references to name and user id.

 

PS: Is it possible to build the plugin from source or is only the demo on GitHub?



[TOPIC: post.html]
#5

Scott Harrison

[GLOBAL: userInfoPane.html]
Scott Harrison
  • Corona Geek

  • 1,841 posts
  • Enterprise

Added identityToken, authorizationCode to docs and plugin

 

will be returned as event.identityToken, event.authorizationCode

 

email is returned as event.email if you put in "email" or "nameAndEmail"



[TOPIC: post.html]
#6

chkuendig

[GLOBAL: userInfoPane.html]
chkuendig
  • Observer

  • 8 posts
  • Corona SDK

Great, thanks. I got it to work.

 

I was also confused by the fact that email/name aren't returned every time (in case anybody is also affected, this is an apple thing: https://forums.developer.apple.com/thread/119826 )




[topic_controls]
[/topic_controls]