fix(HTTP Request Node): Add support for Bearer Auth in HttpRequest node (#15043)

This commit is contained in:
Shireen Missi
2025-05-02 10:33:46 +01:00
committed by GitHub
parent b5f85e7aae
commit 31003aacd1
10 changed files with 189 additions and 5 deletions

View File

@@ -1,4 +1,3 @@
/* eslint-disable n8n-nodes-base/node-filename-against-convention */
import type { IExecuteFunctions, INodeTypeBaseDescription } from 'n8n-workflow';
import { HttpRequestV3 } from '../../V3/HttpRequestV3.node';
@@ -149,6 +148,12 @@ describe('HttpRequestV3', () => {
authField: 'auth',
authValue: { user: 'username', pass: 'password' },
},
{
genericCredentialType: 'httpBearerAuth',
credentials: { token: 'bearerToken123' },
authField: 'headers',
authValue: { Authorization: 'Bearer bearerToken123' },
},
{
genericCredentialType: 'httpDigestAuth',
credentials: { user: 'username', password: 'password' },