Error using custom authentication with playfab. Need help!
Options
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;
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();
}
{
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();
}
0
Comments
-
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.0 -
Will do, thank you.0