# NodeRed and OAuth2

**URL:** https://discourse.nodered.org/t/nodered-and-oauth2/74115
**Category:** General
**Created:** [24 January 2023 11:20 UTC](https://discourse.nodered.org/t/nodered-and-oauth2/74115 "2023-01-24T11:20:08Z")
**Posts on this page:** 1
**Showing post:** 9

<div class="post-metadata">

### Author: ![wooferguy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/wooferguy/32/75559_2.png) [@wooferguy](https://discourse.nodered.org/u/wooferguy)
#### Post date: [9 February 2023 09:55 UTC](https://discourse.nodered.org/t/nodered-and-oauth2/74115/9 "2023-02-09T09:55:10Z")

</div>

I have a working version now after making some changes to the email node, and using the node-red-contrib-oauth2 node. [I've linked the fork on this thread](https://discourse.nodered.org/t/oauth2-in-node-red-node-email/74688). Just trying to follow the guidelines before I do a pull request!

The most complicated part of this process by far was the PowerShell component to get the service principles linked up - but at this stage, we don't really have other options. I hope Microsoft realize that we've gone to the other extreme and eventually come to the party to make things a little easier.

For now though, [this guide was the most useful](https://www.youtube.com/watch?v=bMYA-146dmM). Follow those steps and then check to see if the email node is updated yet. I don't mind you using the one from the fork, but bear in mind that although it's working, it isn't finished yet.

---

_[View the full topic](https://discourse.nodered.org/t/nodered-and-oauth2/74115)._
