How to set secure send with authcookie on client

Hello again!

I'm using Pun v2 and webrpc and i want to send secure auth cookie which i set from server on login when i return my data to client. I'm not sure how to set it client side. When i check the data i get from the server i just see the usual userid, appid, version, etc no sign of the authcookie so i guess its not being send automatic if you set it.

I searched trought forum and saw JohnTube saying you could modify some file and make it happen but since that post is old and im using pun v2 im not sure this is appropriate for me.

Anyone know how?

Comments

  • JohnTube
    JohnTube ✭✭✭✭✭
    edited December 2018
    Hi @Aenil,

    This was forgotten once more, we will add it in the next version.
    Sorry for the inconvenience, here is what you could do now:
    In "PhotonNetwork.cs"

    replace:
    public static bool WebRpc(string name, object parameters)
            {
                return NetworkingClient.OpWebRpc(name, parameters);
            }
    with:
    public static bool WebRpc(string name, object parameters, bool sendAuthCookie = false)
            {
                return NetworkingClient.OpWebRpc(name, parameters, sendAuthCookie);
            }
  • Perfect its working!

    Thank you! :)