I have client and server application on C#. The client and server contact each other through a network socket.
I need pass some data from the client to the server. I used binary serialization for it, but I need to check that the users who starts the client part have permission to do that on the server part.
Only sending the user name is not enough, because it could be compromised.
Maybe it should be able to do with serialization of WindowsIdentity.GetCurrent(), but I couldn't do it.
How do I send credentials from the client to the server and check it on the server side? Is it possible?