Microsoft Azure PlayFab logo
    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Add-ons
    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA
  • Runs on PlayFab
  • Pricing
    • Blog
    • Forums
    • Contact us
  • Sign up
  • Sign in
  • Ask a question
  • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges
  • Home /
  • API and SDK Questions /
avatar image
Question by dario-1 · Nov 20, 2018 at 02:12 AM · Account ManagementAuthentication

Best Login practices

I've been reading a lot about best login practices but I don't feel comfortable yet with the whole process.

Let's say this is the login process.

First time

1. User start game

2. The game creates PlayfabAccount with DeviceID

3. The user is authenticated and shows Game UI

4. User links a Facebook account

5. Should we unlink the device? if so, why?

Next Time

1. User logs in with Playfab or Facebook? Here is my biggest concern.

How the recovery process should works? The user has the account linked with Facebook. Let's say he uninstall the game or losses his phone, and later he wants to play again. How do I know if the Facebook account is linked to another playfab account?

Im lost here in the whole process...

Thanks! Any help with be appreciated

Comment

People who like this

0 Show 0
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by SethDu · Nov 20, 2018 at 07:39 AM

For the first question – “Should we unlink the device? if so, why?”, there is no need to unlink the device ID. A PlayFab account can be linked to more than one accounts from multiple platforms. For example, when your account is linked to Facebook account, you can still use your device ID for silent login next time. Even though you create an account via LoginWithFacebook and in the player account you can only see Facebook account is linked, you can always manually add custom ID, device ID in Game Manager, or link other accounts to PlayFab accounts via API calls. The work flow at PlayFab is, when you login using device ID/Facebook for the first time and set CreateAccount = true in the request, A PlayFab Account with unique PlayFab ID will be created, then this account will link with your device ID/Facebook.

For the second question, The basic idea for the login part is Facebook accounts, device IDs, google accounts or any other 3rd party accounts that PlayFab supports are just providing different authentication methods here to access the same PlayFab account. when a user’s device is lost, they can still use LoginWithFacebook at a new client, or any other login APIs to access their accounts as long as they still have authentication information.

Additionally, in terms of the linked Facebook account, unless you manually unlink it in Game Manager or client has called APIs like UnlinkFacebookAccount, if another user tries to link it, there should be an error message(in Unity) like:

/Client/LinkFacebookAccount: That account is already linked to a different user

Comment
dario-1

People who like this

1 Show 0 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Navigation

Spaces
  • General Discussion
  • API and SDK Questions
  • Feature Requests
  • PlayStream
  • Bugs
  • Add-on Marketplace
  • LiveOps
  • Follow this Question

    Answers Answers and Comments

    1 Person is following this question.

    avatar image

    Related Questions

    Get Language List fails at Entity Authentication 2 Answers

    Error Code 1011: AccountAlreadyLinked 1 Answer

    LinkAndroidDeviceID Login with Email Address at a later stage 1 Answer

    User log in with unsupported platform 1 Answer

    How to check how many sessions each player has opened? 1 Answer

    PlayFab

    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Runs on PlayFab
    • Pricing

    Solutions

    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA

    Engineers

    • Documentation
    • Quickstarts
    • API Reference
    • SDKs
    • Usage Limits

    Resources

    • Forums
    • Contact us
    • Blog
    • Service Health
    • Terms of Service
    • Attribution

    Follow us

    • Facebook
    • Twitter
    • LinkedIn
    • YouTube
    • Sitemap
    • Contact Microsoft
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • Safety & eco
    • About our ads
    • © Microsoft 2020
    • Anonymous
    • Sign in
    • Create
    • Ask a question
    • Create an article
    • Post an idea
    • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Explore
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges