File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/components/nodes/agentflow/HTTP Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -220,14 +220,14 @@ class HTTP_Agentflow implements INode {
220
220
// Add credentials if provided
221
221
const credentialData = await getCredentialData ( nodeData . credential ?? '' , options )
222
222
if ( credentialData && Object . keys ( credentialData ) . length !== 0 ) {
223
- const basicAuthUsername = getCredentialParam ( 'username ' , credentialData , nodeData )
224
- const basicAuthPassword = getCredentialParam ( 'password ' , credentialData , nodeData )
223
+ const basicAuthUsername = getCredentialParam ( 'basicAuthUsername ' , credentialData , nodeData )
224
+ const basicAuthPassword = getCredentialParam ( 'basicAuthPassword ' , credentialData , nodeData )
225
225
const bearerToken = getCredentialParam ( 'token' , credentialData , nodeData )
226
226
const apiKeyName = getCredentialParam ( 'key' , credentialData , nodeData )
227
227
const apiKeyValue = getCredentialParam ( 'value' , credentialData , nodeData )
228
228
229
229
// Determine which type of auth to use based on available credentials
230
- if ( basicAuthUsername && basicAuthPassword ) {
230
+ if ( basicAuthUsername || basicAuthPassword ) {
231
231
// Basic Auth
232
232
const auth = Buffer . from ( `${ basicAuthUsername } :${ basicAuthPassword } ` ) . toString ( 'base64' )
233
233
requestHeaders [ 'Authorization' ] = `Basic ${ auth } `
You can’t perform that action at this time.
0 commit comments