qyvlik / viabtc_exchange_server_docker

easy run viabtc_exchange_server use docker compose. I fix it, then it work in centos , mac and ubuntu
37 stars 22 forks source link

How does WebSocket Authorization and Authentication works? #12

Open dev1644 opened 6 years ago

dev1644 commented 6 years ago

Hi there, I want to ask about WebSocket authentication and authorization APIs i.e. server.auth and server.sign. How do they work and what's the flow? According to the docs, I have supplied an endpoint that takes the token, verifies and returns the user Id. But the authentication is not working and I want to know about server.sign too.

qyvlik commented 6 years ago

you can check here https://github.com/qyvlik/viabtc_exchange_server_docker/issues/7#issuecomment-404696569

dev1644 commented 6 years ago

Hi qyvlik, I have already done the connection to WebSocket through Ngnix and I am able to call some of the APIs like Market and Deal. Wait let me describe the problem again, Open the wiki of WebSocket Protocol at viaBTC, you will see the list of APIs/Endpoints there some of them will require authentication before invoking them like order.query etc.

I want to know how to authenticate through WebSocket, at the wiki they have said to use server.auth and server.sign of System API to authenticate. I am trying them and getting no results.

Can you add me on Skype? I can elaborate about my problem more over a chat.

Skype ID- live:soham.tomar_1

qyvlik commented 6 years ago

Hi @dev1644, I have not Skype. Someone met same problem, check here order.subscribe and asset.subscribe not worked even if authenticated .

dev1644 commented 6 years ago

So, the WS APIs are broken? So do you have any other means of communication like telegram, facebook etc?

qyvlik commented 6 years ago

@dev1644, I haven't tried this before, I may not be able to offer substantial help.

dev1644 commented 6 years ago

@qyvlik Ok I will try to solve this. I have to ask one more thing about the server should I make another issue or ask in this one?

qyvlik commented 6 years ago

New a issue maybe better.

giancarlopetrini commented 6 years ago

I too am stuck on the authorization flow of websocket. Would be awesome if somebody could prove a simple sample of what the auth and sign urls are supposed to do, or a simple configuration example.