I need to understand how to generate jwt secret and jwt public and use them for authenticating socket io channel for webchat in my frontend. @nik202 please help out here!
@webdev-rohit why do you need that? can you share the rasa x version? and which webchat you planning for integration?
@nik202 This is my frontend code-
As you can see, it has a socketURL which is basically my Rasa X URL and everything is working fine for me since I’m able to view replies from my bot in my browser in the chat widget. But, now I want to authenticate the socket io connection and the Rasa docs say to use JWT auth method. I’ve actually figured out the way to get a JWT token. And as per Rasa docs they say to do this -
I don’t understand where exactly should I put this token, in my frontend code or where exactly so the authentication is successful.Rasa X version - 1.0.1, Rasa OS - 2.8.15
They took down my post @nik202 treating it as spam. They said that it’ll come back soon. However, were you able to see my explanation and query?
@nik202 The query asked by the person in this post is same as what I want to know. My frontend code is this -
I just want to know how to pass the JWT token discussed in Rasa docs from the client side (frontend) to the Rasa server.
@webdev-rohit yes but was seeing and suddenly gone, but anyways confirm with me few things.
- Do you have a website?
- Do you have SSL and DNS for Rasa X IP?
Sure Sir!
this issue solved Rohit?