# OAth2 - I'm trying to generate a token and I can't

**URL:** <https://community.n8n.io/t/oath2-im-trying-to-generate-a-token-and-i-cant/15884>\
**Category:** Questions\
**Tags:** oauth2\
**Created:** [July 19, 2022, 1:13am UTC](https://community.n8n.io/t/oath2-im-trying-to-generate-a-token-and-i-cant/15884 "2022-07-19T01:13:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Leal\_05](https://avatars.discourse-cdn.com/v4/letter/l/76d3ee/32.png) [@Leal\_05](https://community.n8n.io/u/Leal_05)\
**Post date:** [July 19, 2022, 1:13am UTC](https://community.n8n.io/t/oath2-im-trying-to-generate-a-token-and-i-cant/15884/1 "2022-07-19T01:13:47Z")

</div>

I’m trying to create an HTTP node to generate a token.

In postman I managed to generate the token, but I am not able to replicate the information here on n8n.

Can someone help me assemble this request correctly?

Below 3 images. The first is how the parameters are in postman. The second is how I’m authenticating and the third is how I’m trying to fetch the token.

1

 ![primeira_image](https://europe1.discourse-cdn.com/n8n/original/2X/e/ef0582757e0f1f77a03b0fd55a57339810eb280d.jpeg)

2

 ![segunda_image](https://europe1.discourse-cdn.com/n8n/original/2X/9/9b432e920dc170f8930a75d7bfddf5e80b9f2f68.jpeg)

3

 ![terceira_image](https://europe1.discourse-cdn.com/n8n/original/2X/2/2e52710f2f2d7fc85db207955b48a2822db3c847.jpeg)

---

<div class="post-metadata">

**Author:** ![MutedJam](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/mutedjam/32/70851_2.png) [@MutedJam](https://community.n8n.io/u/MutedJam)\
**Post date:** [July 19, 2022, 2:30pm UTC](https://community.n8n.io/t/oath2-im-trying-to-generate-a-token-and-i-cant/15884/2 "2022-07-19T14:30:11Z")

</div>

Hi @Leal_05, welcome to the community!

You wouldn’t need to send a manual HTTP request to the token endpoint when using n8n.

Instead you’d simply click the **Connect my account** button on the credentials screen, n8n would then use the provided URLs to request the token (and also refresh it in the background as needed):

 ![image](https://europe1.discourse-cdn.com/n8n/original/2X/e/e22e4217a1f5834cd6cdc9cb36587117b4d7e3b3.png)
