# Using JWT Authentication with RASA

**URL:** <https://forum.rasa.com/t/using-jwt-authentication-with-rasa/29957>\
**Category:** Rasa Open Source\
**Created:** [June 9, 2020, 4:22am UTC](https://forum.rasa.com/t/using-jwt-authentication-with-rasa/29957 "2020-06-09T04:22:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dwanzil](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/dwanzil/32/9242_2.png) [@dwanzil](https://forum.rasa.com/u/dwanzil)\
**Post date:** [June 9, 2020, 4:22am UTC](https://forum.rasa.com/t/using-jwt-authentication-with-rasa/29957/1 "2020-06-09T04:22:44Z")

</div>

I am using rasa open source (I am not using Rasa-x) I have made an angular chat widget which uses [socket.io](http://socket.io) to connect with RASA server What I want is to add authentication using JWT to rasa so that we can enable different users to login with the server simultaneously and each one should have their separate session and data by one user should not be shared with another. How can I implement it in rasa as well as in frontend? I will prefer a step by step guide. Thanks

---

<div class="post-metadata">

**Author:** ![stephens](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/stephens/32/1632_2.png) [@stephens](https://forum.rasa.com/u/stephens)\
**Post date:** [June 9, 2020, 5:24pm UTC](https://forum.rasa.com/t/using-jwt-authentication-with-rasa/29957/2 "2020-06-09T17:24:17Z")

</div>

Hi Vaibhav,

You could create a custom version of the [socketio](https://github.com/RasaHQ/rasa/blob/master/rasa/core/channels/socketio.py) channel that adds authentication.

Greg

---

<div class="post-metadata">

**Author:** ![HarshMagiya7](https://avatars.discourse-cdn.com/v4/letter/h/e47774/32.png) [@HarshMagiya7](https://forum.rasa.com/u/HarshMagiya7)\
**Post date:** [February 16, 2022, 12:01pm UTC](https://forum.rasa.com/t/using-jwt-authentication-with-rasa/29957/3 "2022-02-16T12:01:56Z")

</div>

Hey @stephens can you elaborate more on the steps,

like what all things need to be done for adding a authentication option in rasa chatbot

---

<div class="post-metadata">

**Author:** ![stephens](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/stephens/32/1632_2.png) [@stephens](https://forum.rasa.com/u/stephens)\
**Post date:** [February 16, 2022, 3:55pm UTC](https://forum.rasa.com/t/using-jwt-authentication-with-rasa/29957/4 "2022-02-16T15:55:12Z")

</div>

Since the original post, there is now some docs on this [here](https://rasa.com/docs/rasa/connectors/your-own-website/#jwt-authentication) and there’s a new Rasa [chat widget](https://chat-widget-docs.rasa.com/).

---

<div class="post-metadata">

**Author:** ![HarshMagiya7](https://avatars.discourse-cdn.com/v4/letter/h/e47774/32.png) [@HarshMagiya7](https://forum.rasa.com/u/HarshMagiya7)\
**Post date:** [February 16, 2022, 4:57pm UTC](https://forum.rasa.com/t/using-jwt-authentication-with-rasa/29957/5 "2022-02-16T16:57:50Z")

</div>

Hello Thank you for your reply

Just to confirm is this a official widget or are there any other available?

And I saw the jwt authentication but I am not sure what all steps are needed after adding those 2 lines in my credentials.yml
