# App search trying to authenticate using admin cookie even though a search token is provided

**URL:** <https://discuss.elastic.co/t/app-search-trying-to-authenticate-using-admin-cookie-even-though-a-search-token-is-provided/206755>\
**Category:** Elastic Search\
**Tags:** elastic-app-search\
**Created:** [November 6, 2019, 9:03am UTC](https://discuss.elastic.co/t/app-search-trying-to-authenticate-using-admin-cookie-even-though-a-search-token-is-provided/206755 "2019-11-06T09:03:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Max\_Akn](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/max_akn/32/57247_2.png) [@Max\_Akn](https://discuss.elastic.co/u/Max_Akn)\
**Post date:** [November 6, 2019, 9:03am UTC](https://discuss.elastic.co/t/app-search-trying-to-authenticate-using-admin-cookie-even-though-a-search-token-is-provided/206755/1 "2019-11-06T09:03:16Z")

</div>

When accessing both the admin and the application using app search within the same browser, app search always tries to authenticate a request via the admin cookie, even when the search token is provided. So when the cookie is expired, you see an http auth dialog popping when doing a search.

This issue was already discussed here [Failed authentication after period of time - #6 by Dustin\_Hughes](https://discuss.elastic.co/t/failed-authentication-after-period-of-time/194101/6)

---

<div class="post-metadata">

**Author:** ![orhantoy](https://avatars.discourse-cdn.com/v4/letter/o/c5a1d2/32.png) [@orhantoy](https://discuss.elastic.co/u/orhantoy)\
**Post date:** [November 6, 2019, 12:12pm UTC](https://discuss.elastic.co/t/app-search-trying-to-authenticate-using-admin-cookie-even-though-a-search-token-is-provided/206755/2 "2019-11-06T12:12:04Z")

</div>

Hi @Max_Akn 👋

What version of App Search are you using, assuming it is Self Managed App Search? Or are you referring to App Search on [swiftype.com](http://swiftype.com)?

---

<div class="post-metadata">

**Author:** ![Max\_Akn](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/max_akn/32/57247_2.png) [@Max\_Akn](https://discuss.elastic.co/u/Max_Akn)\
**Post date:** [November 6, 2019, 1:04pm UTC](https://discuss.elastic.co/t/app-search-trying-to-authenticate-using-admin-cookie-even-though-a-search-token-is-provided/206755/3 "2019-11-06T13:04:49Z")

</div>

Hi @orhantoy ,  
Yes it's a self managed app search, version 7.3.0

---

<div class="post-metadata">

**Author:** ![Max\_Akn](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/max_akn/32/57247_2.png) [@Max\_Akn](https://discuss.elastic.co/u/Max_Akn)\
**Post date:** [November 6, 2019, 1:21pm UTC](https://discuss.elastic.co/t/app-search-trying-to-authenticate-using-admin-cookie-even-though-a-search-token-is-provided/206755/4 "2019-11-06T13:21:18Z")

</div>

After looking at the [change log](https://swiftype.com/documentation/app-search/self-managed/changelog), this issue appears to be fixed from version 7.3.1.  
I will try to update and open a new thread if the issue persists.

thank you

---

<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:** [December 4, 2019, 1:21pm UTC](https://discuss.elastic.co/t/app-search-trying-to-authenticate-using-admin-cookie-even-though-a-search-token-is-provided/206755/5 "2019-12-04T13:21:32Z")

</div>

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