# Custom User Authentication not working with Embedded Node-RED

**URL:** <https://discourse.nodered.org/t/custom-user-authentication-not-working-with-embedded-node-red/21940>\
**Category:** General\
**Created:** [18 February 2020 18:18 UTC](https://discourse.nodered.org/t/custom-user-authentication-not-working-with-embedded-node-red/21940 "2020-02-18T18:18:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![yutter](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/yutter/32/9026_2.png) [@yutter](https://discourse.nodered.org/u/yutter)\
**Post date:** [18 February 2020 18:18 UTC](https://discourse.nodered.org/t/custom-user-authentication-not-working-with-embedded-node-red/21940/1 "2020-02-18T18:18:11Z")

</div>

Has anybody tried and had success using Custom User Authentication with Node-RED embedded in a custom express app?

I am getting an unauthorised failure when Node-RED tries to load resource with [http://localhost:8080/flows/settings?\_=1582047906209](http://localhost:8080/flows/settings?_=1582047906209)

It works fine when I use my auth functions if Node-RED is not embedded

---

<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:** [18 April 2020 18:30 UTC](https://discourse.nodered.org/t/custom-user-authentication-not-working-with-embedded-node-red/21940/2 "2020-04-18T18:30:45Z")

</div>

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