# searchguard http basic authentication is not working

**URL:** <https://forum.search-guard.com/t/searchguard-http-basic-authentication-is-not-working/1400>\
**Category:** Search Guard\
**Created:** [March 29, 2019, 7:27am UTC](https://forum.search-guard.com/t/searchguard-http-basic-authentication-is-not-working/1400 "2019-03-29T07:27:01Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![nehajain0031](https://avatars.discourse-cdn.com/v4/letter/n/8edcca/32.png) [@nehajain0031](https://forum.search-guard.com/u/nehajain0031)\
**Post date:** [March 29, 2019, 7:27am UTC](https://forum.search-guard.com/t/searchguard-http-basic-authentication-is-not-working/1400/1 "2019-03-29T07:27:01Z")

</div>

- Search Guard and Elasticsearch version

→ 6.5.4

- Installed and used enterprise modules, if any

→ Using community edition searchguard

- JVM version and operating system version

JVM - Java 1.8.0

OS - Windows 7

- Search Guard configuration files

- Elasticsearch log messages on debug level

- Other installed Elasticsearch or Kibana plugins, if any

– No other plugins

Hello all,

I have installed elasticsearch, kibana and searchguard. All version 6.5.4

And all are working fine (when I am logging through kibana host)

But I want to loggin kibana using url (http basic auth). I am using postman to try this.

It is returning status as 200 ok , But stucked on kibanawelcomelogo page.

Not showing kibana dashboard.

Kindly help.

Urgent.

[kibana.yml](https://forum.search-guard.com/uploads/short-url/psaStncSD7FGXl0DHCEYyVxw9Yh.yml) (6.9 KB)

[elasticsearch.yml](https://forum.search-guard.com/uploads/short-url/4bobgyK0ayLBn49v5XESGHCOp7V.yml) (3.84 KB)

[sg\_config.yml](https://forum.search-guard.com/uploads/short-url/6kYvUpbczaJJJ6Sro466lvgollv.yml) (9.4 KB)

---

<div class="post-metadata">

**Author:** ![jkressin](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.search-guard.com/jkressin/32/9_2.png) [@jkressin](https://forum.search-guard.com/u/jkressin)\
**Post date:** [March 29, 2019, 8:20am UTC](https://forum.search-guard.com/t/searchguard-http-basic-authentication-is-not-working/1400/2 "2019-03-29T08:20:03Z")

</div>

When you write:

"But I want to loggin kibana using url (http basic auth). "

What is the actual HTTP call incl. HTTP headers you are issuing?

> **···**
>
> On Friday, March 29, 2019 at 8:27:01 AM UTC+1, [nehajain0031@gmail.com](mailto:nehajain0031@gmail.com) wrote:
> 
> > 
> 
> > - Search Guard and Elasticsearch version
> 
> > → 6.5.4
> 
> > 
> 
> > - Installed and used enterprise modules, if any
> 
> > → Using community edition searchguard
> 
> > - JVM version and operating system version
> 
> > JVM - Java 1.8.0
> 
> > OS - Windows 7
> 
> > 
> 
> > - Search Guard configuration files
> 
> > 
> 
> > - Elasticsearch log messages on debug level
> 
> > 
> 
> > - Other installed Elasticsearch or Kibana plugins, if any
> 
> > – No other plugins
> 
> > 
> 
> > Hello all,
> 
> > I have installed elasticsearch, kibana and searchguard. All version 6.5.4
> 
> > And all are working fine (when I am logging through kibana host)
> 
> > 
> 
> > But I want to loggin kibana using url (http basic auth). I am using postman to try this.
> 
> > It is returning status as 200 ok , But stucked on kibanawelcomelogo page.
> 
> > Not showing kibana dashboard.
> 
> > 
> 
> > Kindly help.
> 
> > Urgent.

---

<div class="post-metadata">

**Author:** ![nehajain0031](https://avatars.discourse-cdn.com/v4/letter/n/8edcca/32.png) [@nehajain0031](https://forum.search-guard.com/u/nehajain0031)\
**Post date:** [March 29, 2019, 9:43am UTC](https://forum.search-guard.com/t/searchguard-http-basic-authentication-is-not-working/1400/3 "2019-03-29T09:43:37Z")

</div>

[http://localhost:5601/app/kibana](http://localhost:5601/app/kibana)

Headers–\>

Content-Type: application/json  
kbn-xsrf: true

Basic Auth–\>  
admin/admin

These are the entries I made in Postman.

It is returning 200 ok response also.

But stucked on kibana loading page

Kindly help… Its need on urgent basis

> **···**
>
> On Friday, March 29, 2019 at 1:50:03 PM UTC+5:30, Jochen Kressin wrote:
> 
> > When you write:
> 
> > "But I want to loggin kibana using url (http basic auth). "
> > 
> > What is the actual HTTP call incl. HTTP headers you are issuing?
> > 
> > On Friday, March 29, 2019 at 8:27:01 AM UTC+1, [nehaja...@gmail.com](mailto:nehaja...@gmail.com) wrote:
> > 
> > >
> 
> > > - Search Guard and Elasticsearch version
> 
> > > → 6.5.4
> 
> > >
> 
> > > - Installed and used enterprise modules, if any
> 
> > > → Using community edition searchguard
> 
> > > - JVM version and operating system version
> 
> > > JVM - Java 1.8.0
> 
> > > OS - Windows 7
> 
> > >
> 
> > > - Search Guard configuration files
> 
> > >
> 
> > > - Elasticsearch log messages on debug level
> 
> > >
> 
> > > - Other installed Elasticsearch or Kibana plugins, if any
> 
> > > – No other plugins
> 
> > >
> 
> > > Hello all,
> 
> > > I have installed elasticsearch, kibana and searchguard. All version 6.5.4
> 
> > > And all are working fine (when I am logging through kibana host)
> 
> > >
> 
> > > But I want to loggin kibana using url (http basic auth). I am using postman to try this.
> 
> > > It is returning status as 200 ok , But stucked on kibanawelcomelogo page.
> 
> > > Not showing kibana dashboard.
> 
> > >
> 
> > > Kindly help.
> 
> > > Urgent.

---

<div class="post-metadata">

**Author:** ![jkressin](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.search-guard.com/jkressin/32/9_2.png) [@jkressin](https://forum.search-guard.com/u/jkressin)\
**Post date:** [April 2, 2019, 1:29pm UTC](https://forum.search-guard.com/t/searchguard-http-basic-authentication-is-not-working/1400/4 "2019-04-02T13:29:50Z")

</div>

Assigned @jkressin on April 2, 2019, 1:29pm UTC



---

<div class="post-metadata">

**Author:** ![jkressin](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.search-guard.com/jkressin/32/9_2.png) [@jkressin](https://forum.search-guard.com/u/jkressin)\
**Post date:** [April 2, 2019, 1:57pm UTC](https://forum.search-guard.com/t/searchguard-http-basic-authentication-is-not-working/1400/5 "2019-04-02T13:57:29Z")

</div>

This seems to be a Postman issue then. I just tried to add Basic Authentication headers by using mod\_headers in Chrome. Everything works as expected, I can skip the login dialogue and getting redirected to Kibana. Be aware that Kibana is JavaScript heavy, so maybe Postman cannot handle.

---

<div class="post-metadata">

**Author:** ![nehajain0031](https://avatars.discourse-cdn.com/v4/letter/n/8edcca/32.png) [@nehajain0031](https://forum.search-guard.com/u/nehajain0031)\
**Post date:** [April 4, 2019, 6:43am UTC](https://forum.search-guard.com/t/searchguard-http-basic-authentication-is-not-working/1400/6 "2019-04-04T06:43:22Z")

</div>

Its working with mod\_headers.  
But when we are calling it from java portal and passing headers… It is not working.  
It stucked at kibana loading page and return 200 ok response

I also tried to open the kibana page from android app through webview. It worked fine after adding below lines  
WebSettings settings = wvReport.getSettings();  
settings.setDomStorageEnabled(true);

The kibana dashboard is opening fine from android app.

But still not working from java

---

<div class="post-metadata">

**Author:** ![jkressin](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.search-guard.com/jkressin/32/9_2.png) [@jkressin](https://forum.search-guard.com/u/jkressin)\
**Post date:** [April 4, 2019, 6:57pm UTC](https://forum.search-guard.com/t/searchguard-http-basic-authentication-is-not-working/1400/7 "2019-04-04T18:57:06Z")

</div>

But then it does not really look like a Search Guard issue. If you see the Kibana loading page, it means that all Search Guard authentication checks have already passed and we’re back to the regular Kibana loading behaviour so to speak. Also, since you write it is working with mod\_headers it means that everything works as expected when using a traditional browser.

So the first thing you should probably do is to use a plain Kibana / Elasticsearch installation without Search Guard, and see if this loads correctly.

---

<div class="post-metadata">

**Author:** ![nehajain0031](https://avatars.discourse-cdn.com/v4/letter/n/8edcca/32.png) [@nehajain0031](https://forum.search-guard.com/u/nehajain0031)\
**Post date:** [April 5, 2019, 5:51am UTC](https://forum.search-guard.com/t/searchguard-http-basic-authentication-is-not-working/1400/8 "2019-04-05T05:51:55Z")

</div>

Ok Thanks for the help.  
I’ll try and let you know
