The idea is:
Some business systems and services that are not natively supported by out of the box integrations require the use of the http request node with various generic authentication profiles (header, query, Oauth2, etc.). Sadly, some of them like Adobe Marketo Engage are not responding in standard ways when a token is expired. Example, when the Marketo access token is expired, you get an http 200 response with the error message in the body. It’s not giving a 401 / 403 or other standard http responses, meaning we have to parse the response to handle error situations. The positive aspect is that the Oauth2 token authorization process does return a standard response with an expiration. What I would suggest is a toggle to enforce the use of the expiration (in seconds) instead of relying on the http response code only.
My use case:
Greater flexibility in supporting non-standard api endpoints. There is no good workaround at the moment as if we want to keep the credentials secure, we can’t set a manual workflow to manage the token as the credentials will be in clear text in those specific workflow (security issue).
I think it would be beneficial to add this because:
It would expand n8n’s support for even more 3rd party integrations that are not natively supported.
Any resources to support this?
{
“access_token”: “cdf01657-110d-4155-99a7-f986b2ff13a0:int”,
“token_type”: “bearer”,
“expires_in”: 3599,
“scope”: “apis@acmeinc.com”
}
Are you willing to work on this?
Yes but I’m not set to contribute via github…
