# Node-red-contrib-oauth2 no access token in response- email in O365

**URL:** https://discourse.nodered.org/t/node-red-contrib-oauth2-no-access-token-in-response-email-in-o365/86061
**Category:** General
**Created:** [1 March 2024 15:28 UTC](https://discourse.nodered.org/t/node-red-contrib-oauth2-no-access-token-in-response-email-in-o365/86061 "2024-03-01T15:28:42Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![hadwll](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hadwll/32/89020_2.png) [@hadwll](https://discourse.nodered.org/u/hadwll)
#### Post date: [1 March 2024 15:28 UTC](https://discourse.nodered.org/t/node-red-contrib-oauth2-no-access-token-in-response-email-in-o365/86061/1 "2024-03-01T15:28:42Z")

</div>

I am working to setup an emailer in office 365, one of the steps is to setup Oauth2

I have read the documentation and have done the following

- registered with Microsoft Entra.
- Created an access token
- Created Application (client) ID and secret in MS Entra
- Setup the Oauth node as per below

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/c/bc12b8a1b93515f99818d0d7d06680fc28386130.png)

The reply back does not have the access token in the reply, I then want to put this in my email node.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/8/482bbf771d20599f513a13e1457cb1ee1af3b807.png)

Where am I going wrong?

---

<div class="post-metadata">

### Author: ![christopher-lambe](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/christopher-lambe/32/69369_2.png) [@christopher-lambe](https://discourse.nodered.org/u/christopher-lambe)
#### Post date: [4 March 2024 15:53 UTC](https://discourse.nodered.org/t/node-red-contrib-oauth2-no-access-token-in-response-email-in-o365/86061/2 "2024-03-04T15:53:15Z")

</div>

Should you not get the token here:  
[https://login.microsoftonline.com/your](https://login.microsoftonline.com/your) tenant id/oauth2/token

---

<div class="post-metadata">

### Author: ![hadwll](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hadwll/32/89020_2.png) [@hadwll](https://discourse.nodered.org/u/hadwll)
#### Post date: [5 March 2024 16:48 UTC](https://discourse.nodered.org/t/node-red-contrib-oauth2-no-access-token-in-response-email-in-o365/86061/3 "2024-03-05T16:48:08Z")

</div>

> [@christopher-lambe](#):
>
> [https://login.microsoftonline.com/your](https://login.microsoftonline.com/your) tenant id/oauth2/token

OK I got it sorted you are correct, where was that wrote or where did it come from?

---

<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: [19 March 2024 16:48 UTC](https://discourse.nodered.org/t/node-red-contrib-oauth2-no-access-token-in-response-email-in-o365/86061/4 "2024-03-19T16:48:17Z")

</div>

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