Closed MichaelJCole closed 2 years ago
Hi @MichaelJCole!
I'm integrating wampy.js as a Vuex module, in the Quasar framework.
Cool idea! I love Vue :) Had a look at Quasar too.
Some highlights on WAMP regarding ur questions:
HELLO
), if router decide to authorize client — it sends CHALLENGE
message. Client must response with AUTHENTICATE
, and if router authorizes client — it finally sends WELCOME
message. No further authorization flows.And what about ur questions, but i think some answers you already understand from above.
Is it possible to connect anonymously, pass anonymous messages, then upgrade a WAMP protocol's authentication? No. Thats not possible, as i understand.
At first glance, there are few options how to achieve desired flow:
Of course thats not all. Just first that come to mind. Hope it helps!
Hi Konstantin, this is very helpful, thank you. I like the idea to use REST for authentication, then authorize a websocket with the token. It's clean.
It makes me think that maybe I can use REST for RPC, and hyper-express for websocket pub/sub built-in.
It's my first websocket app, and I'm not sure what I need yet. Do you have a template for a wamp app? I didn't see any repo on github for "wamp template".
Thank you for your help!
Hi, I'm new to using WAMP protocol and not sure the best place to ask a question.
I'm integrating
wampy.js
as a Vuex module, in the Quasar framework.With REST calls, I can
Authorization: Bearer mytoken123
in the client's headers.For example here is an example Vuex action to register and login a new user
Is it possible to connect anonymously, pass anonymous messages, then upgrade a WAMP protocol's authentication? Can I do that with the same wampy.js instance?
If yes and no, then my feature request would be
wampy.authenticate()
orwampy.newSession()
that I could use to upgrade the client.What's the best WAMP way to handle anonymous auth routes like signup/signin/passwordreset/etc?
Thank you!