Response 230

The whole answer can be found below.

Please note: The Photon forum is closed permanently. After many dedicated years of service we have made the decision to retire our forum and switch to read-only: we've saved the best to last! And we offer you support through these channels:

Try Our
Documentation

Please check if you can find an answer in our extensive documentation on PUN.

Join Us
on Discord

Meet and talk to our staff and the entire Photon-Community via Discord.

Read More on
Stack Overflow

Find more information on Stack Overflow (for Circle members only).

Write Us
an E-Mail

Feel free to send your question directly to our developers.

Response 230: ReturnCode: 32755 (CustomAuth service error: Error)

Chilberto
2022-05-27 06:23:43

I am stringing together Playfab, Opsive, and Photon.

I am using Playfab authentication as described: https://docs.microsoft.com/en-us/gaming/playfab/sdks/photon/quickstart.

This results in a success and I am setting the AuthValues as shown below:

private void AuthenticateWithPhoton(GetPhotonAuthenticationTokenResult obj)

{

var customAuth = new AuthenticationValues { AuthType = CustomAuthenticationType.Custom };

customAuth.AddAuthParameter("username", _playFabPlayerIdCache);   // expected by PlayFab custom auth service

customAuth.AddAuthParameter("token", obj.PhotonCustomAuthenticationToken);

PhotonNetwork.AuthValues = customAuth;

}

Then in the Photon.Realtime.LoadBalancingPeer the setting is applied:

opParameters[ParameterCode.ClientAuthenticationType] = (byte)authValues.AuthType;

if (!string.IsNullOrEmpty(authValues.AuthGetParameters))

{

opParameters[ParameterCode.ClientAuthenticationParams] = authValues.AuthGetParameters;

}

The result is "Response 230: ReturnCode: 32755 (CustomAuth service error: Error)".

I have tried to set opParameters[ParameterCode.UserId] but this did not change the result.

Suggestions?

Comments

Chilberto
2022-05-28 22:11:15

Found the issue.

I believe the following error indicates that Photon was not able to verify the customauth with the endpoint specified in Photon.

Response 230: ReturnCode: 32755 (CustomAuth service error: Error)

For me, the endpoint had a simple typo so was not valid. I updated and things started to work. Yay!

Back to top