question

jcollins avatar image
jcollins asked

CustomId Authentication logging in wrong user

We are testing our game's authentication system (testing WebGL, Title 87F85). When we submit a Unity/client-side LoginWithCustomID call with CustomId set to test user A865F351D56A03E7, it actually logs the player into the other test user (57FF3577CE32E9C5) instead.

Are we missing something obvious or is this a bug? We have tried deleting all test users and readding them. The authentication call seems to log the game in to the user immediately after the target test user's account each time.

        Debug.Log("Upcoming call: " + PlayFabSettings.TitleId + " ; " + _CustomId);

        var request = new LoginWithCustomIDRequest
        {
            TitleId = PlayFabSettings.TitleId,
            CustomId = "A865F351D56A03E7",//_CustomId,
            CreateAccount = true,
            InfoRequestParameters = new GetPlayerCombinedInfoRequestParams()
        };

        PlayFabClientAPI.LoginWithCustomID(request, (result) =>
        {
            
            Debug.Log("Logged in Master ID: " + result.PlayFabId); //prints 57FF3577CE32E9C5
            Debug.Log("New account? " + result.NewlyCreated);
        }, (error) =>
        {
            Debug.LogError(error.GenerateErrorReport());
            Debug.Log("Sent ID: " + _CustomId);
        });
Authenticationtest
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
jcollins avatar image
jcollins answered

It was an obvious error after all. We were attempting to login with the player's PlayFab ID and not the set CustomID. Feel free to remove.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.