Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only. On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live. Read our full announcement for more information and let us know if you have any questions.

Question Authentication from our own authentication server

Discussion in 'Authentication' started by HernandoNJ, Oct 18, 2022.

  1. HernandoNJ

    HernandoNJ

    Joined:
    May 13, 2018
    Posts:
    75
    Hello.
    I'd like to know if we can use OpenID to authenticate the player with our own server and API, and if so, if there's any example and/or use case available.
     
  2. Laurie-Unity

    Laurie-Unity

    Unity Technologies

    Joined:
    Mar 5, 2020
    Posts:
    236
    HernandoNJ likes this.
  3. HernandoNJ

    HernandoNJ

    Joined:
    May 13, 2018
    Posts:
    75
    Hi @Laurie-Unity. Thanks for the answer.
    Is there a way to log in a player in UGS using our own server credentials?
    I mean, to override the player Id provided by Unity with the Id we have in our server.
    And what about other data such as tokens and tokens refreshing?
     
    Last edited: Nov 23, 2022
  4. chengg_unity

    chengg_unity

    Unity Technologies

    Joined:
    May 15, 2022
    Posts:
    74
    Hello @HernandoNJ ,

    It is not possible to override the Unity Authentication Player ID with your ID. Could you please elaborate on your use case that requires overriding Player IDs?

    After you implement OpenID Connect support, this enables your player to use their existing credentials from your system to sign in. Once they signed in, a Unity Authentication player account is created, and this account is 'linked' to the account of your system.
     
    HernandoNJ likes this.