Hi everyone!
I’m trying to connect n8n to a self-hosted Bitrix24 instance (on-premise) using OAuth2.
The problem is that n8n normally sends the access token in the Authorization header:
Authorization: Bearer ACCESS_TOKEN
However, our Bitrix24 instance requires the token to be passed as a query parameter:
?auth=ACCESS_TOKEN
Bitrix24 support confirmed that authentication headers are not accepted in our configuration.
Interestingly, Bitrix24 Cloud works correctly with OAuth2 in n8n. The issue only occurs with our on-premise instance.
I encountered the same problem in Make.com and solved it by changing Access token placement to In the query parameters, with the parameter name auth.
Has anyone encountered this issue and found a working solution in n8n?
I’m looking for a solution that:
-
Automatically obtains and refreshes OAuth2 access tokens.
-
Passes the current access token as the
authquery parameter. -
Securely manages access and refresh tokens without manually entering them.
-
Works centrally through Credentials, ideally without modifying existing HTTP Request nodes.
Would another type of Credentials, custom OAuth2 configuration, or a server-side solution make this possible?
Is it possible to solve this at the n8n server or instance configuration level, without creating additional workflows or modifying existing HTTP Request nodes?
I’m looking for a centralized solution, such as a server-side OAuth2 configuration, a custom credential type, or an extension that would automatically inject the refreshed access token as the auth query parameter instead of the Bearer header.
Ideally, I would only need to change the Credentials selected in my existing HTTP Request nodes.
Has anyone implemented something like this on a self-hosted n8n instance?
I’d really appreciate hearing how others have solved this.
Thanks!