fix(HTTP Request Node): Support generic credentials when using pagination (#7686)

Github issue / Community forum post (link here to close automatically):
fixes #7653

Co-authored-by: Michael Kret <michael.k@radency.com>
This commit is contained in:
Elias Meire
2023-11-15 09:13:33 +01:00
committed by GitHub
parent 0a0798e485
commit 48b240b026
2 changed files with 13 additions and 12 deletions

View File

@@ -1695,10 +1695,10 @@ export async function requestWithAuthentication(
try {
const parentTypes = additionalData.credentialsHelper.getParentTypes(credentialsType);
if (parentTypes.includes('oAuth1Api')) {
if (credentialsType === 'oAuth1Api' || parentTypes.includes('oAuth1Api')) {
return await requestOAuth1.call(this, credentialsType, requestOptions, false);
}
if (parentTypes.includes('oAuth2Api')) {
if (credentialsType === 'oAuth2Api' || parentTypes.includes('oAuth2Api')) {
return await requestOAuth2.call(
this,
credentialsType,