Authentication Token Issue
Options
BbH
✭
Keep getting this error, ReturnCode: 32767 (Authentication token is missing). Parameters: {} Server: MasterServer Address: 192.168.29.28:5056
AuthenticationValues authValues = new AuthenticationValues();
authValues.AuthType = CustomAuthenticationType.Custom;
authValues.UserId = id;
PhotonNetwork.AuthValues = authValues;
The above is my code I am using before calling PhotonNetwork.ConnectUsingSettings(). I use it for PhotonNetwork.FindFriends() later on and it works fine there.
AuthenticationValues authValues = new AuthenticationValues();
authValues.AuthType = CustomAuthenticationType.Custom;
authValues.UserId = id;
PhotonNetwork.AuthValues = authValues;
The above is my code I am using before calling PhotonNetwork.ConnectUsingSettings(). I use it for PhotonNetwork.FindFriends() later on and it works fine there.
0
Comments
-
Hi @BbH,
If you are not using the latest PUN 2 please update to 2.30 (see this post).
Also if you don't have a custom authentication provider configured no need to set AuthType to Custom.
As I don't see any authentication parameters or payload sent by client.
Photon's internal authentication token is different from optional custom authentication. See here for more details.
But if you do use custom authentication, do you return Data from the authentication provider endpoint but with ResultCode:0?0 -
@JohnTube
I changed things a bit and using this for custom authentication
https://docs.microsoft.com/en-us/gaming/playfab/sdks/photon/quickstart
It does return me a token, but after calling PhotonNetwork.ConnectUsingSettings() I am still getting same error.0