WampSharp icon indicating copy to clipboard operation
WampSharp copied to clipboard

Dumb question here about WAMP

Open Dinglebarry9 opened this issue 4 years ago • 5 comments

I am building a mobile application that spawns a docker container running a daemon which accepts rpc commands. I have been looking at WAMP as a way to route a daemon rpc call generated by the mobile client through the WAMP router to their daemon. For testing I have done this easily by just passing rpc creds as parameters in the WAMP procedure. I am pretty positive this is an awful idea but I don't know why and if it is an awful idea as I suspect is it possible to do it better?

Dinglebarry9 avatar May 16 '20 02:05 Dinglebarry9

I don't have enough background on the problem, but you can use an authentication mechanism to verify a client's permissions upon connection establishment. See the documentation website.

darkl avatar May 16 '20 02:05 darkl

The credential are just a username and password, what I am asking is should I also encrypt the parameters that I pass?

Dinglebarry9 avatar May 16 '20 04:05 Dinglebarry9

I guess you should minimize the number of times you pass these on the wire. Authenticate first using HTTPS and receive a cookie. Then use cookie based authentication. Use WAMP over wss.

Maybe others have more concrete input.

Elad

On Sat, May 16, 2020, 00:31 Dinglebarry9 [email protected] wrote:

The credential are just a username and password, what I am asking is should I also encrypt the parameters that I pass?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Code-Sharp/WampSharp/issues/317#issuecomment-629586671, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAIS75WHNKUJMC2ID3VATHDRRYJJFANCNFSM4NCWPFYQ .

darkl avatar May 16 '20 09:05 darkl

Here, read this.

darkl avatar May 16 '20 14:05 darkl

Thank you I will check this out.

Dinglebarry9 avatar May 16 '20 22:05 Dinglebarry9