# How can I log in on a website that requires authentication with node-red

**URL:** https://discourse.nodered.org/t/how-can-i-log-in-on-a-website-that-requires-authentication-with-node-red/66606
**Category:** General
**Created:** [18 August 2022 12:01 UTC](https://discourse.nodered.org/t/how-can-i-log-in-on-a-website-that-requires-authentication-with-node-red/66606 "2022-08-18T12:01:08Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![raymondh](https://avatars.discourse-cdn.com/v4/letter/r/ee59a6/32.png) [@raymondh](https://discourse.nodered.org/u/raymondh)
#### Post date: [18 August 2022 12:01 UTC](https://discourse.nodered.org/t/how-can-i-log-in-on-a-website-that-requires-authentication-with-node-red/66606/1 "2022-08-18T12:01:08Z")

</div>

Hi there.  
I'm complete noob when it comes to Node-Red, but i do have a background in Java and C#, my HTML is mediocre at best. So background out of the way, here it is:

I am trying to log into a website that i need to scrape a data table from, but the http request and https request nodes don't seem to do the trick. I do know that there is a token exchange as the login is on a session that has an exipry. I'm just not sure what process to follow or nodes to use to login and extract the data table.

Any help would be great

---

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [18 August 2022 12:12 UTC](https://discourse.nodered.org/t/how-can-i-log-in-on-a-website-that-requires-authentication-with-node-red/66606/2 "2022-08-18T12:12:12Z")

</div>

It depends on the website's authentication model. The HTTP Request node can be used for Basic or Digest Authentication however it is more likely the website has a login flow that involves exchanging username/password for a token, and that token must be provided with each request.

There are too many possible ways for it to work to give you a single answer. If you can provide details and the site you want to scrape, we may be able to give you some pointers.

---

<div class="post-metadata">

### Author: ![raymondh](https://avatars.discourse-cdn.com/v4/letter/r/ee59a6/32.png) [@raymondh](https://discourse.nodered.org/u/raymondh)
#### Post date: [18 August 2022 12:15 UTC](https://discourse.nodered.org/t/how-can-i-log-in-on-a-website-that-requires-authentication-with-node-red/66606/3 "2022-08-18T12:15:52Z")

</div>

Hi Steve.

Thanks for responding so quickly.

The final page that i need to scrape from is [Coupa Home](https://glencore.coupahost.com/quote_supplier_land) , i'm not quite comfortable with providing login details on a public forum. If you need them we can exchange them over DM or email.

---

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [18 August 2022 12:19 UTC](https://discourse.nodered.org/t/how-can-i-log-in-on-a-website-that-requires-authentication-with-node-red/66606/4 "2022-08-18T12:19:07Z")

</div>

I will need credentials for testing - temporary access will of course be fine - you can DM detail by clicking my avitar and clicking the "message" button.

Additional info needed - provide a screenshot showing 1 of the values you are attempting to scrape

---

<div class="post-metadata">

### Author: ![raymondh](https://avatars.discourse-cdn.com/v4/letter/r/ee59a6/32.png) [@raymondh](https://discourse.nodered.org/u/raymondh)
#### Post date: [18 August 2022 12:46 UTC](https://discourse.nodered.org/t/how-can-i-log-in-on-a-website-that-requires-authentication-with-node-red/66606/5 "2022-08-18T12:46:31Z")

</div>

I click on your avatar, but there is no message button. Or am I looking in the wrong place?

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/0/903e742b6e1610a906c0d9650c02771cdcb50e32.png)

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [17 October 2022 12:46 UTC](https://discourse.nodered.org/t/how-can-i-log-in-on-a-website-that-requires-authentication-with-node-red/66606/6 "2022-10-17T12:46:34Z")

</div>

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