# \[Google Oauth2 Sign-In\] User impersonation alternative using OAuth2 Proxy

**URL:** <https://discuss.elastic.co/t/google-oauth2-sign-in-user-impersonation-alternative-using-oauth2-proxy/86946>\
**Category:** Kibana\
**Created:** [May 24, 2017, 10:32am UTC](https://discuss.elastic.co/t/google-oauth2-sign-in-user-impersonation-alternative-using-oauth2-proxy/86946 "2017-05-24T10:32:14Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![MihaiS](https://avatars.discourse-cdn.com/v4/letter/m/bc79bd/32.png) [@MihaiS](https://discuss.elastic.co/u/MihaiS)\
**Post date:** [May 24, 2017, 10:33am UTC](https://discuss.elastic.co/t/google-oauth2-sign-in-user-impersonation-alternative-using-oauth2-proxy/86946/2 "2017-05-24T10:33:40Z")

</div>

- Create NGINX configuration folders:

- Update the NGINX configuration file (/opt/nginx/conf/nginx.conf)

- Create the NGINX proxy configuration file (/opt/nginx/conf/sites-available/oauth2\_proxy):

- Create a symlink of the file /opt/nginx/conf/sites-available/oauth2\_proxy in the folder /opt/nginx/conf/sites-enabled

- Enable the NGINX service

- Start the NGINX service

1. Create the Kibana usernames identicals to the ones from the email addresses:

- Connect to Kibana server using the address [https://kibana.example.com:8443](https://kibana.example.com:8443) with a superuser account and create the users as in the following example:

---

_[View the full topic](https://discuss.elastic.co/t/google-oauth2-sign-in-user-impersonation-alternative-using-oauth2-proxy/86946)._
