I am trying to get the OAuth2 option of the HTTP Request node to work with the Wallabag API (oAuth · GitBook). I have already OAuth working on my n8n instance for various other services from Google, Microsoft etc.
I simply cannot get OAuth to work with this particular API and I always get an invalid credentials error. However, When I try the same call via Postman or rest-client on VSCode, a token is successfully generated. Given below are the working calls I can make outside of n8n (This API allows POST and GET calls for OAuth).
POST https://domain.com/oauth/v2/token HTTP/1.1
content-type: application/json
{
"username": "username",
"password": "password",
"client_id": "client_id",
"client_secret": "client_secret",
"grant_type": "password"
}
OR
GET https://domain.com/oauth/v2/token?username=username&password=password&client_id=client_id&client_secret=client_secret&grant_type=password HTTP/1.1
Given below is my credential setup on n8n, which never seems to go through when I initiate the OAuth connection.
Could someone please guide me on where I could be going wrong?