# Enterprise Search Web Crawler fails on authn enabled websites

**URL:** <https://discuss.elastic.co/t/enterprise-search-web-crawler-fails-on-authn-enabled-websites/285096>\
**Category:** Elastic Search\
**Tags:** elastic-app-search\
**Created:** [September 24, 2021, 3:46pm UTC](https://discuss.elastic.co/t/enterprise-search-web-crawler-fails-on-authn-enabled-websites/285096 "2021-09-24T15:46:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ymoriarty](https://avatars.discourse-cdn.com/v4/letter/y/ebca7d/32.png) [@ymoriarty](https://discuss.elastic.co/u/ymoriarty)\
**Post date:** [September 24, 2021, 3:46pm UTC](https://discuss.elastic.co/t/enterprise-search-web-crawler-fails-on-authn-enabled-websites/285096/1 "2021-09-24T15:46:28Z")

</div>

The web crawler feature worked great for a Apache web site with no authentication. Once I enabled basic authentication, the web crawler failed. Is there a way to use the web crawler on sites that have authentication enabled or are using SAML SSO?

---

<div class="post-metadata">

**Author:** ![ymoriarty](https://avatars.discourse-cdn.com/v4/letter/y/ebca7d/32.png) [@ymoriarty](https://discuss.elastic.co/u/ymoriarty)\
**Post date:** [September 28, 2021, 3:36pm UTC](https://discuss.elastic.co/t/enterprise-search-web-crawler-fails-on-authn-enabled-websites/285096/2 "2021-09-28T15:36:16Z")

</div>

Following up on this as there have been no replies. Thanks.

---

<div class="post-metadata">

**Author:** ![Carlos\_D](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carlos_d/32/126245_2.png) [@Carlos\_D](https://discuss.elastic.co/u/Carlos_D)\
**Post date:** [September 30, 2021, 9:37am UTC](https://discuss.elastic.co/t/enterprise-search-web-crawler-fails-on-authn-enabled-websites/285096/3 "2021-09-30T09:37:46Z")

</div>

Hi @ymoriarty !

Crawling authentication is on the roadmap. A workaround is to let the specific user-agent string for the crawler bypass authentication on the website, if that is possible.

You can set the `crawler.http.user_agent` in the Enterprise Search configuration. Please take a look at the [configuration documentation](https://www.elastic.co/guide/en/app-search/current/web-crawler-reference.html#web-crawler-reference-web-crawler-configuration-settings).

Stay tuned for next releases!

---

<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:** [October 28, 2021, 9:38am UTC](https://discuss.elastic.co/t/enterprise-search-web-crawler-fails-on-authn-enabled-websites/285096/4 "2021-10-28T09:38:24Z")

</div>

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