Server get client tokens
Options
in Photon Bolt
Hi How can I make that when a user connects to the server, a script running in the server checks if a token sent by the user is correct. Thanks
0
Answers
-
Are you wanting to use Custom Authentication?
If so, use this: https://doc.photonengine.com/en/chat/current/reference/custom-authentication
and this: http://forum.photonengine.com/discussion/2706/basics-of-custom-authentication-resources0 -
In the Bolt Settings window there is an option called "Accept Mode" that you can set to manual. Then on a host GlobalEventListener you override ConnectRequest and use the Protocol Token to receive the data. You send the data when the client connects. Read here for info on protocol tokens: http://doc.photonengine.com/en/bolt/current/in-depth/protocol-tokens0