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’re making changes to the Unity Runtime Fee pricing policy that we announced on September 12th. Access our latest thread for more information!
    Dismiss Notice
  3. Dismiss Notice

Question Web Portal Set Up

Discussion in 'Unity User-Generated Content' started by Evil-Otaku, Apr 30, 2023.

  1. Evil-Otaku

    Evil-Otaku

    Joined:
    Oct 17, 2012
    Posts:
    65
    Has anyone managed to get the web portal set up? I am trying to authenticate with Google, but I'm unsure if I'm messing something up on the Unity or Google side.
    I have a client id from Google Cloud and I've set the Authorized JavaScript origins to https://ugc-web.prd.mz.internal.unity3d.com

    I see the Google prompt to sign but I always get Failed to authenticate with Google. Please try again.
     
  2. jasonrametta

    jasonrametta

    Unity Technologies

    Joined:
    May 28, 2020
    Posts:
    2
    Hello, to authenticate with Google, there are 2 places to input the client id. First in the Identity Providers section in the Authentication service here. Secondly, in the UGC "Service Settings" page. The client should also whitelist the portal URL so redirection will work. Hope that helps!
     
  3. Evil-Otaku

    Evil-Otaku

    Joined:
    Oct 17, 2012
    Posts:
    65
    Awesome! Got it up and working! Thanks!
    But if I want to use Google Sign In for the game itself as well, can I use this same Web Client ID?
     
  4. jasonrametta

    jasonrametta

    Unity Technologies

    Joined:
    May 28, 2020
    Posts:
    2
    Yes, you must use the same client ID for the game so the player content can sync properly with the game's portal.
     
    Evil-Otaku likes this.