'Microsoft Oauth refreshing token getting 404

Following Microsoft Oauth docs, I obtain the first access token and the refresh token using offline_access in the scope like this:

enter image description here

But, when I try to do the refresh token call, using that same refresh token I got there, I got a 404 :

enter image description here

Already tried adding the tenant ID in the POST url like this:

https://login.microsoftonline.com/{mytenantid}/oauth2/v2.0/token

But got "invalid url" error...

Any idea ?, does the first token have to expire in order for this to work ?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source