Search Unity

Feature Request Passing Extra Parameters while Register

Discussion in 'Authentication' started by defikintaro, Mar 10, 2023.

  1. defikintaro

    defikintaro

    Joined:
    Dec 16, 2022
    Posts:
    10
    Hello !

    I have database system resides outside of UGS, currently we cannot migrate those databases because it consists of historical data and no place in Cloud Save, yet :) I would like to query those database from Cloud Code from the game's context behalf of the player. For that somehow I have to relate the authenticated playerId with the user id in my external authentication service.
    As I understand from Cloud Code script I can query Authentication with player's token to access userid. Then use that userid to query external database.
    I found calling Authentication from Cloud Code behalf of the user like an extra step. It would be very good to pass additional data (maybe inside an idToken) while registering the user, then add that data to the context object in Cloud Code.
    It's a bit complex problem however I think it's doable :)