Search Unity

Discussion Authentication Service AccessToken Verification

Discussion in 'Authentication' started by defikintaro, Feb 21, 2023.

  1. defikintaro

    defikintaro

    Joined:
    Dec 16, 2022
    Posts:
    10
    Hello,

    I am using Unity Authentication Service for accessing the other Ugs elements. I've already connected my OpenID provider with Ugs and I've confirmed the user profiles can access i.e Economy service.
    I'm building a multiplayer game server in Unity (server authoritative) and I want to verify each message is coming from the authenticated players. As I saw from the references I can retrieve the AccessToken from AuthenticationService object in the client-side. What I am curious about if I pass this token to my custom game server instance can I somehow call the Authentication Service to verify this token ? If this not the case what should be the proper way to verify the client's messages ?

    Thanks in advance !
     
  2. kChamp

    kChamp

    Joined:
    Dec 21, 2013
    Posts:
    14
    Interested in this as well.