# Securing communication between RASA and a custom action server

**URL:** <https://forum.rasa.com/t/securing-communication-between-rasa-and-a-custom-action-server/48578>\
**Category:** Rasa Open Source\
**Created:** [October 18, 2021, 6:51pm UTC](https://forum.rasa.com/t/securing-communication-between-rasa-and-a-custom-action-server/48578 "2021-10-18T18:51:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![JackWeemsIT](https://avatars.discourse-cdn.com/v4/letter/j/e79b87/32.png) [@JackWeemsIT](https://forum.rasa.com/u/JackWeemsIT)\
**Post date:** [October 18, 2021, 6:51pm UTC](https://forum.rasa.com/t/securing-communication-between-rasa-and-a-custom-action-server/48578/1 "2021-10-18T18:51:28Z")

</div>

I have an exiting web app that allows my users to perform may self service tasks that is a natural fit for running as a custom action server for RASA. I’ve got my instance of RASA and this web app talking back and forth but I can’t find any documentation securing that communication. I would like for RASA to be able to provide a token or something to authenticate itself to my custom action server. Is there any way to do that?

---

<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:** [October 20, 2021, 10:12pm UTC](https://forum.rasa.com/t/securing-communication-between-rasa-and-a-custom-action-server/48578/2 "2021-10-20T22:12:24Z")

</div>

You can see the `endpoints.yml` file settings [here](https://github.com/RasaHQ/rasa/blob/669975050b01c958f61d40e44c5d4a4c44af3fd9/rasa/utils/endpoints.py#L82). For the token:

```auto
action_endpoint:
  url: "https://localhost:5055"
  token: "your token"

```

---

<div class="post-metadata">

**Author:** ![JackWeemsIT](https://avatars.discourse-cdn.com/v4/letter/j/e79b87/32.png) [@JackWeemsIT](https://forum.rasa.com/u/JackWeemsIT)\
**Post date:** [October 22, 2021, 2:10pm UTC](https://forum.rasa.com/t/securing-communication-between-rasa-and-a-custom-action-server/48578/3 "2021-10-22T14:10:01Z")

</div>

Thanks, I’ll dig into that. Do you happen to know how that token gets passed? Is it set as the Bearer header or just included in the payload?
