server connect authentication

Options
Hi
How can prevent everyone to connect to our self hosted photon server? Is it possible to define something like cloud AppId for self hosted server?

Comments

  • chvetsov
    Options
    even appId will not prevent other from connecting to your server.
    what really will - authentication. add check that every connected peer sends auth request to you. if it do not after some time kick it
  • JohnTube
    JohnTube ✭✭✭✭✭
    Options
    Hi @ali,

    I will just add to my colleague @chvetsov's answer.

    You can do this in 2 ways:
    1. Modify Photon Server source code.
    2. Recommended IMO: Make use of Custom Authentication feature of v4.