问题
I was using Facebook login and other 3rd Party login in mobile game based on the way that,
- client integrates Native Facebook SDK (or other native sdk)
- client login and get OAuth access token
- client pass access token to server side and server makes a server-side authentication to Facebook
- if server side get FB Uid, then based on it creates an account or login to existing account for the user.
My question is, in order to free user from login to service every time, is it possible to directly use Apple ID on the device for such flow of authentication? What about Android and Google ID? Or other type of solutions I should look into?
回答1:
I know the question is old, but it's one of the first that get get listed when searching for "apple oauth"...
Apple has anounced at the WWDC 2019 a new feature called Sign in with Apple which allows you to use oauth for apple logins like facebook, twitter, google etc. Developer resources can be found here and a good introduction here.
回答2:
————- update: ————————————————
We now have Sign-In with Apple: https://developer.apple.com/sign-in-with-apple/
—————— old version —————————————
For apple user accounts there is no oAuth 'ID'-provider
https://discussions.apple.com/thread/6594633?start=0&tstart=0 https://en.m.wikipedia.org/wiki/List_of_OAuth_providers
My personal opinion about that fact is the following. Apple wants to sell hardware. If software is needed to support that, they implement or buy it.
Apple might be wrong, as web apps are integrating Facebook, Google, Twitter, Windows Live and sometimes Weibo, LinkedIn or Amazon oAuth. I never heard about plans for oAuth for Apple ID.
来源:https://stackoverflow.com/questions/15171174/apple-id-through-oauth