# Can Heartbeat use basic auth to log into a website

**URL:** https://discuss.elastic.co/t/can-heartbeat-use-basic-auth-to-log-into-a-website/270208
**Category:** Beats
**Tags:** heartbeat, synthetics
**Created:** [April 15, 2021, 9:28am UTC](https://discuss.elastic.co/t/can-heartbeat-use-basic-auth-to-log-into-a-website/270208 "2021-04-15T09:28:06Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Simon\_Becker](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/simon_becker/32/87100_2.png) [@Simon\_Becker](https://discuss.elastic.co/u/Simon_Becker)
#### Post date: [April 15, 2021, 9:28am UTC](https://discuss.elastic.co/t/can-heartbeat-use-basic-auth-to-log-into-a-website/270208/1 "2021-04-15T09:28:06Z")

</div>

Hello Elasticians,

I am trying out the new Synthetics Module in Heartbeat.  
The webserver I am trying to check has a basic auth feature implemented. So before I can access the webpage I need to use user and password to log in.

I haven't found any information in the docs if heartbeat can use some basic auth feature to log in before accessing a website that I want to test.

If anyone has an idea, I would appreciate any feedback.

Thank you!

Greetings

Simon

---

<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: [April 19, 2021, 11:23pm UTC](https://discuss.elastic.co/t/can-heartbeat-use-basic-auth-to-log-into-a-website/270208/2 "2021-04-19T23:23:41Z")

</div>

Basic auth for a webserver should mean that you can include those details in the URL. Have you tried that?

---

<div class="post-metadata">

### Author: ![Simon\_Becker](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/simon_becker/32/87100_2.png) [@Simon\_Becker](https://discuss.elastic.co/u/Simon_Becker)
#### Post date: [May 5, 2021, 7:02am UTC](https://discuss.elastic.co/t/can-heartbeat-use-basic-auth-to-log-into-a-website/270208/3 "2021-05-05T07:02:20Z")

</div>

Hello Warkolm,

it looks more like this in chrome:

 ![grafik](https://us1.discourse-cdn.com/elastic/original/3X/8/c/8c939496672ba450794c430cf8fe55c03e0430d7.png)

I can't see any changes in the url when I log in.

Greetings

Simon

---

<div class="post-metadata">

### Author: ![legoguy1000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/legoguy1000/32/54301_2.png) [@legoguy1000](https://discuss.elastic.co/u/legoguy1000)
#### Post date: [May 6, 2021, 5:34am UTC](https://discuss.elastic.co/t/can-heartbeat-use-basic-auth-to-log-into-a-website/270208/4 "2021-05-06T05:34:34Z")

</div>

I believe what @warkolm means is u can do `https://<user>:<pass>@<fqdn>` to do basic auth as part of the url.

---

<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: [June 3, 2021, 7:35am UTC](https://discuss.elastic.co/t/can-heartbeat-use-basic-auth-to-log-into-a-website/270208/5 "2021-06-03T07:35:06Z")

</div>

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