# Kibana5 Oauth2 authentication with Xpack user roles

**URL:** <https://discuss.elastic.co/t/kibana5-oauth2-authentication-with-xpack-user-roles/76495>\
**Category:** Kibana\
**Created:** [February 25, 2017, 6:51pm UTC](https://discuss.elastic.co/t/kibana5-oauth2-authentication-with-xpack-user-roles/76495 "2017-02-25T18:51:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rags](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rags/32/15857_2.png) [@rags](https://discuss.elastic.co/u/rags)\
**Post date:** [February 25, 2017, 6:51pm UTC](https://discuss.elastic.co/t/kibana5-oauth2-authentication-with-xpack-user-roles/76495/1 "2017-02-25T18:51:10Z")

</div>

Is it possible to use Xpack + an Oauth2 proxy for Kibana5? The reason for this is to keep Xpacks user roles and restrict access to index settings in the management panel, and still provide Oauth2 access.

Right now with a Oauth2 proxy, xpack needs to be disabled. One way could be to tie the anonymous user to allow password less Kibana login. This would mean instead of disabling xpack completely, there could be a provision to enable anonymous user access for Kibana, after adding the "kibana\_user" role for annonymous users.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [February 25, 2017, 11:53pm UTC](https://discuss.elastic.co/t/kibana5-oauth2-authentication-with-xpack-user-roles/76495/2 "2017-02-25T23:53:23Z")

</div>

Does [https://www.elastic.co/blog/user-impersonation-with-x-pack-integrating-third-party-auth-with-kibana](https://www.elastic.co/blog/user-impersonation-with-x-pack-integrating-third-party-auth-with-kibana) help?

---

<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 25, 2017, 11:53pm UTC](https://discuss.elastic.co/t/kibana5-oauth2-authentication-with-xpack-user-roles/76495/3 "2017-03-25T23:53:30Z")

</div>

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