Error using custom authentication with playfab. Need help!

I get this error when trying to use custom authentication with playfab:

OperationResponse 230: ReturnCode: 32755 (Custom authentication service error: Error). Parameters: {} Server: NameServer Address: ns.exitgames.com:5058

CODE;
private void AuthenticateWithPhoton(GetPhotonAuthenticationTokenResult result)
{
var playFabPhotonToken = result.PhotonCustomAuthenticationToken;
Debug.Log("Photon token acquired." + playFabPhotonToken);
PhotonNetwork.AuthValues = new AuthenticationValues();
PhotonNetwork.AuthValues.AuthType = CustomAuthenticationType.Custom;
PhotonNetwork.AuthValues.AddAuthParameter("username", cacheUserId);
PhotonNetwork.AuthValues.AddAuthParameter("token", playFabPhotonToken);
PhotonNetwork.ConnectUsingSettings();
}

Comments

  • JohnTube
    JohnTube ✭✭✭✭✭
    Hi @jaciaccio,

    Thank you for choosing Photon!

    I assume "cacheUserId" is the PlayFabId of the currently logged in user.
    Also, I guess you double checked Custom Authentication settings from the dashboard, AppId, URL, etc.
    If everything looks fine, send an email to developer@photonengine.com with your AppId and AppVersion.
  • Will do, thank you.