Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

How do games have logins for facebook/google play etc but have their own database?

Discussion in 'Multiplayer' started by TheCelt, Dec 24, 2017.

  1. TheCelt

    TheCelt

    Joined:
    Feb 27, 2013
    Posts:
    724
    I'm real confused how they link the two?

    If a play logins in with google play or facebook or apple id how do they then link it to their own database which has player data?

    I have no idea where to find this information properly at all.
     
  2. hasanbayat

    hasanbayat

    Joined:
    Oct 18, 2016
    Posts:
    626
    It is easy, if you take a look at their core and understand how they work at their core.
    When the user Authenticates with Service Provider, the Service Provider (Googe/Facebook) will provide an Access Token for the user, that means the user can always access the Service Provider Open API.
    The Access Token is like a Visitor Card that.

    Here are some more resources to help you learn more:
    Thanks.
     
  3. Chris-HG

    Chris-HG

    Joined:
    Aug 10, 2012
    Posts:
    63
    Indeed. Web APIs and OAuth is something we have been supporting for a while now. Even though there are standards, each API still likes to do their own thing.

    http://unity3dassets.com/oauth-brief/