# Pass Kibana log in credentials to external backend server

**URL:** https://discuss.elastic.co/t/pass-kibana-log-in-credentials-to-external-backend-server/351965
**Category:** Kibana
**Tags:** kibana-plugin-development
**Created:** [January 29, 2024, 7:53am UTC](https://discuss.elastic.co/t/pass-kibana-log-in-credentials-to-external-backend-server/351965 "2024-01-29T07:53:36Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Sheereen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sheereen/32/122005_2.png) [@Sheereen](https://discuss.elastic.co/u/Sheereen)
#### Post date: [January 29, 2024, 7:53am UTC](https://discuss.elastic.co/t/pass-kibana-log-in-credentials-to-external-backend-server/351965/1 "2024-01-29T07:53:36Z")

</div>

Hi,

I am creating a custom plugin in React JS.

The plugin has UI, which communicates with an external backend/server managed by me.

When user logs into Kibana, I want to pass those credentials (which was used to log in) to my backend server, wherein it will create an Elasticsearch client using the received credentials.

Is it possible?  
I also looked into using tokens and api keys for communicating with ES without basic authentication. But creating a token or api key also requires the credentials.

How can I get the credentials passed to backend or is there any other way of accessing them?

Or how can I create api key/token using any inbuild Kibana function... rather then exposing the creds?

Thanks

---

<div class="post-metadata">

### Author: ![Sheereen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sheereen/32/122005_2.png) [@Sheereen](https://discuss.elastic.co/u/Sheereen)
#### Post date: [January 31, 2024, 6:08am UTC](https://discuss.elastic.co/t/pass-kibana-log-in-credentials-to-external-backend-server/351965/2 "2024-01-31T06:08:36Z")

</div>

Hi,

Can anyone give some input on this?

Thanks

---

<div class="post-metadata">

### Author: ![Sheereen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sheereen/32/122005_2.png) [@Sheereen](https://discuss.elastic.co/u/Sheereen)
#### Post date: [February 5, 2024, 8:34am UTC](https://discuss.elastic.co/t/pass-kibana-log-in-credentials-to-external-backend-server/351965/3 "2024-02-05T08:34:48Z")

</div>

Hi,

Is there a way to get the current logged in user's credentials?

Thanks

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [March 4, 2024, 8:35am UTC](https://discuss.elastic.co/t/pass-kibana-log-in-credentials-to-external-backend-server/351965/4 "2024-03-04T08:35:15Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
