OAuth 2.0 with basic auth

Hi all,
I'm failing to setup a retool resource for a service which uses OAuth2.0 with a basic auth on top.
I did not find a way to see what request retool actually sends which makes the debugging hard for me.

I want to achieve that the following request is sent:

curl -X POST "https://api.m2m.SERVICE.com/m2m/v2/oauth2/access-token" -H "accept: application/json" -H "Authorization: Basic xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx==" -H "Content-Type: application/x-www-form-urlencoded" -d "grant_type=password&scope=M2M_DEVICES_ALL&username=myuser&password=mypassword&customerId="

Response body should be:

"access_token": "aANz5wWxxxxxxxxUgHEVu",
"token_type": "Bearer",
"expires_in": "3599",
"refresh_token": "y44gPcJxxxxxxxVmfDQC",
"refresh_token_expires_in": "1209599"

I did not find a combination of OAUTH2.0 and basic auth which enables me to authenticate with the service. I have a username/password for basic auth and grant_type, scope, username, password,customerid for OAuth2.0.

After successfully authenticating, I would have to use the refresh token every 60min and autheticate against


using the refresh token. I also did not find an option to set the refresh token url.

Help highly appriciated.


Hey @Michael_Kolb!

Have you checked out using Custom Auth already? These docs go over how you can build a custom API request based on form input from a user. Custom auth also supports OAuth2 steps that you can build in.

Let me know if that helps at all or if it raises additional questions!