# Alternate auth sources for httpNodeAuth

**URL:** <https://discourse.nodered.org/t/alternate-auth-sources-for-httpnodeauth/9039>\
**Category:** Dashboard\
**Created:** [15 March 2019 22:42 UTC](https://discourse.nodered.org/t/alternate-auth-sources-for-httpnodeauth/9039 "2019-03-15T22:42:06Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [16 March 2019 14:53 UTC](https://discourse.nodered.org/t/alternate-auth-sources-for-httpnodeauth/9039/5 "2019-03-16T14:53:20Z")

</div>

Does the middleware work for this? From `settings.js`

```auto
    // The following property can be used to add a custom middleware function
    // in front of all http in nodes. This allows custom authentication to be
    // applied to all http in nodes, or any other sort of common request processing.
    //httpNodeMiddleware: function(req,res,next) {
    // // Handle/reject the request, or pass it on to the http in node by calling next();
    // // Optionally skip our rawBodyParser by setting this to true;
    // //req.skipRawBodyParser = true;
    // next();
    //},

```

---

_[View the full topic](https://discourse.nodered.org/t/alternate-auth-sources-for-httpnodeauth/9039)._
