# Node Red Authentication

**URL:** <https://discourse.nodered.org/t/node-red-authentication/20151>\
**Category:** General\
**Created:** [10 January 2020 04:45 UTC](https://discourse.nodered.org/t/node-red-authentication/20151 "2020-01-10T04:45:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![westj](https://avatars.discourse-cdn.com/v4/letter/w/779978/32.png) [@westj](https://discourse.nodered.org/u/westj)\
**Post date:** [10 January 2020 04:45 UTC](https://discourse.nodered.org/t/node-red-authentication/20151/1 "2020-01-10T04:45:46Z")

</div>

I am attempting to use passport-azure-oauth2 to handle authentication for node red and I am not able to figure it out.

I keep getting this error

TypeError: strategy.strategy is not a constructor

My strategy is require("passport-azure-oauth2").Strategy
