# Remove elastic auth page but use x-pack

**URL:** <https://discuss.elastic.co/t/remove-elastic-auth-page-but-use-x-pack/313105>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-security\
**Created:** [August 28, 2022, 6:37pm UTC](https://discuss.elastic.co/t/remove-elastic-auth-page-but-use-x-pack/313105 "2022-08-28T18:37:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Murali\_Krishna2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/murali_krishna2/32/110165_2.png) [@Murali\_Krishna2](https://discuss.elastic.co/u/Murali_Krishna2)\
**Post date:** [August 28, 2022, 6:37pm UTC](https://discuss.elastic.co/t/remove-elastic-auth-page-but-use-x-pack/313105/1 "2022-08-28T18:37:00Z")

</div>

Hi Team,

In our company, we are using the elastic stack for the last 4 years.

As x-pack security was only for paid users before. Instead of x-pack, we used google authentication for login.

Once a user log-in with their Gmail accounts, Kibana discover page will be visible.

Few days back, we implemented x-pack security for our elastic stack. Now every user has to do double authentication before login i.e :  
a. google authentication  
b. elastic authentication

Is there any possible way to eliminate elastic authentication but apply role based previlagies using their gmail credentials??

Instead of elastic authentication, can we directly use google authentication email id for role based authentication?

Or Is there any way to eliminate elastic authentication but use role based privilages?

Thank You.

#elastic-stack:elasticsearch, #elastic-stack:kibana, #elastic-stack:beats and #elastic-stack:logstash.

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [August 29, 2022, 5:32am UTC](https://discuss.elastic.co/t/remove-elastic-auth-page-but-use-x-pack/313105/2 "2022-08-29T05:32:57Z")

</div>

Hi @Murali_Krishna2 Welcome to the community!

Hmmmm

> [@Murali\_Krishna2](#):
>
> Is there any possible way to eliminate elastic authentication but apply role based previlagies using their gmail credentials??

No.. Authentication (User/Password) leads to Authorization (Roles)

I think you have 3 options

1. Disable x-pack security and go back to your previous method

2. Go All the way in and get a Platinum commercial license and use SAML etc. complete with role mappings

3. Perhaps Use Anonymous Login after you login with your GMAIL and redirect to Kibana.

See Here : [Authentication in Kibana | Kibana Guide [8.4] | Elastic](https://www.elastic.co/guide/en/kibana/8.4/kibana-authentication.html#anonymous-authentication)

I think I wrote a post on this before [here](https://discuss.elastic.co/t/anonymous-kibana-users/270071/9) I think that shows Elastic Cloud but self managed should be pretty much the same you can remove the basic auth so only have anonymous.

---

<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 26, 2022, 5:33am UTC](https://discuss.elastic.co/t/remove-elastic-auth-page-but-use-x-pack/313105/3 "2022-09-26T05:33:46Z")

</div>

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