# Oauth2 proxy and kibana authentication

**URL:** https://discuss.elastic.co/t/oauth2-proxy-and-kibana-authentication/311840
**Category:** Elastic Cloud on Kubernetes (ECK)
**Created:** [August 10, 2022, 2:08pm UTC](https://discuss.elastic.co/t/oauth2-proxy-and-kibana-authentication/311840 "2022-08-10T14:08:05Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![crimson\_riot](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/crimson_riot/32/100766_2.png) [@crimson\_riot](https://discuss.elastic.co/u/crimson_riot)
#### Post date: [August 10, 2022, 2:08pm UTC](https://discuss.elastic.co/t/oauth2-proxy-and-kibana-authentication/311840/1 "2022-08-10T14:08:05Z")

</div>

We are using Oauth2 reverse proxy to authenticate the users via google. We want to use a static username and password from kibana+elasticsearch once the user gets authenticate via google so that we dont have to add or delete each user. The password can be set via `--basic-auth-password` as i read in the [documentation.](https://oauth2-proxy.github.io/oauth2-proxy/docs/configuration/overview) However, we are unable to set the user. Is there a way anyone knows to set user? Is Nginx required here to set a static username ? Thanks

---

<div class="post-metadata">

### Author: ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)
#### Post date: [August 10, 2022, 2:51pm UTC](https://discuss.elastic.co/t/oauth2-proxy-and-kibana-authentication/311840/2 "2022-08-10T14:51:15Z")

</div>

I'm not sure how your question is related to any tool of the Elastic Stack, it seems out of the scope of this forum.

You are using a third-party tool in front of Kibana, you need to check in with the community of this tool.

---

<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: [September 7, 2022, 2:51pm UTC](https://discuss.elastic.co/t/oauth2-proxy-and-kibana-authentication/311840/3 "2022-09-07T14:51:23Z")

</div>

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