mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
fix(HTTP Request Node): Add support for Bearer Auth in HttpRequest node (#15043)
This commit is contained in:
@@ -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' },
|
||||
|
||||
Reference in New Issue
Block a user