Authorisation always fails

Options

Hello, we are trying to implement custom authentication provider.

We have deployed our test authentication server and added webhook to the Fusion dashboard.

We implement authentication like this in Unity:

AuthenticationValues authentication = new AuthenticationValues();
authentication.AuthType = CustomAuthenticationType.Custom;
authentication.AddAuthParameter("pass", "testpass1");
authentication.AddAuthParameter("user", "testemail@email.com");

StartGameArgs startGameArgs = new StartGameArgs();
startGameArgs.AuthValues = authentication;

But everytime we try to start the photon server always disconnects the client with reason "OK".

I have also tried to implement this in clean Fusion BattleRoyale project but result is still the same. Please advise what is the problem with authentication and why it prevents client from connecting?

If we disable authentication everything works normally.

Comments

  • Tobias
    Tobias admin
    edited February 2023
    Options

    You not only need to add WebHooks but need to setup the Custom Auth provider (if you meant that, disregard the comment). It may help diagnose this, if we could look into the app. Mail us and let us know the AppId in question.

    developer@photonengine.com

    the photon server always disconnects the client with reason "OK".

    Also check if your Custom Auth Server provides the correct reply to Photon calls. It's not only 200 OK but there is a result code, which is important for granting access (or not).

  • kirkokuev
    Options

    Hello, I have sent you an email on February 13, but still haven't got any answer. Can you please check? It is coming from my work email k.kokuev@perseus.studio.

    Thanks!