Hello!
I’m trying to connect to an API that does not use a Predetermined Credential in n8n. So I’m using the Generic Credential Type. It’s OAuth2 and according to the docs for the API I’m trying to talk to, the authorization request should return an access token and then that access token is used to make the GET/POST to the API.
I have set up the OAuth2 credentials in the HTTP node in using my client_id and client_secret as provided by the API. However the request is returning the error unable to sign without access token. So, it seems like the credentials I’ve saved are not using the returned access token?
In the API docs it says I’m to provide the access token in the header of the request like this authorization: Bearer [AccessToken]. How do I get that access token from the credentials I’ve set up?
This is the HTTP node:
This is the credentials modal:
I am able to do a chain of HTTP requests where I don’t used credentials and rather make requests directly to the OAuth2 url, getting back the access token, and then another request to the API for the info using the access token from the previous request. But that requires me to put my client_secret in the first HTTP node (just out in the open) whereas the credentials keeps the secret encrypted. What am I doing wrong with the OAuth2 credentials?

