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.

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:
    174
    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:
    24
    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.