question

Zaid Azmi avatar image
Zaid Azmi asked

How to work with "Sign in with apple"?

Hi, could someone please shed some light on how to integrate "sign in with apple" on a Unity game with Playfab?

Authentication
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Seth Du avatar image
Seth Du answered

According to the feedback from the team, sign in with Apple can be achieved via OpenID connection, it is supported but there is some steps need to be done on the Apple side. We are planning to release the official documentation but there is not ETA as far as I know.

You may join the discussion in this thread:https://community.playfab.com/idea/30528/sign-in-with-apple.html

There is also a documentation outside of our community you may refer to :

https://bitbucket.org/openid/connect/src/default/How-Sign-in-with-Apple-differs-from-OpenID-Connect.md

1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

franklinchen avatar image franklinchen commented ·
0 Likes 0 ·
andymaddison avatar image
andymaddison answered

Those instructions seem pretty complex for getting it working via OpenID.

Wouldn't it be a lot easier to use the Unity package, get the user id and login to Playfab via custom id?

See the blog.

1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

franklinchen avatar image franklinchen commented ·

Hi @andymaddison, the doc(https://docs.microsoft.com/en-us/gaming/playfab/features/authentication/platform-specific-authentication/apple-open-id) is not specifically written for Unity dev. Your reference is from Unity and you mentioned about customid login, I would suggest choosing OpenIdConnect login with apple identitytoken. A custom ID can be anything, that means it's not the safest way. Please check our best practice guidance: https://docs.microsoft.com/en-us/gaming/playfab/features/authentication/login/login-basics-best-practices

0 Likes 0 ·
duartedd avatar image
duartedd answered

is there any docs for setting up open id with unity /playfab - or some examples with open id with playfab api? i can easily create tack and tweak to a class in unity - just need to know the appropriate api calls for each process- like login - if pass link if not linked already , unlink if needed etc

1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

franklinchen avatar image franklinchen commented ·

Currently no such doc or sample for Unity. If you have trouble in your Unity code, please feel free to ask in the right support channel. If it is related to Unity + Apple SignIn, I think unity forum should be the right channel, for PlayFab configuration and the related API request issue, please ask in our forum. Thanks

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.