Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How does WebSocket Authorization and Authentication works? #12

Open
dev1644 opened this issue Oct 13, 2018 · 8 comments
Open

How does WebSocket Authorization and Authentication works? #12

dev1644 opened this issue Oct 13, 2018 · 8 comments

Comments

@dev1644
Copy link

dev1644 commented Oct 13, 2018

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
Copy link
Owner

qyvlik commented Oct 14, 2018

you can check here #7 (comment)

@dev1644
Copy link
Author

dev1644 commented Oct 14, 2018

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
Copy link
Owner

qyvlik commented Oct 14, 2018

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

@qyvlik qyvlik closed this as completed Oct 14, 2018
@qyvlik qyvlik reopened this Oct 14, 2018
@dev1644
Copy link
Author

dev1644 commented Oct 14, 2018

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

@qyvlik
Copy link
Owner

qyvlik commented Oct 14, 2018

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

@dev1644
Copy link
Author

dev1644 commented Oct 14, 2018

@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
Copy link
Owner

qyvlik commented Oct 14, 2018

New a issue maybe better.

@giancarlopetrini
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants