From 17188a63b5ee5ced6bab4d68ef73e3853c110ce0 Mon Sep 17 00:00:00 2001 From: Omar Ajoue Date: Wed, 16 Mar 2022 17:00:04 +0100 Subject: [PATCH] fix: Fix issue with n8n not authenticating oauth requests (#2998) --- packages/cli/src/UserManagement/routes/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/cli/src/UserManagement/routes/index.ts b/packages/cli/src/UserManagement/routes/index.ts index 24fe8a26e0..95420ef8d6 100644 --- a/packages/cli/src/UserManagement/routes/index.ts +++ b/packages/cli/src/UserManagement/routes/index.ts @@ -59,8 +59,8 @@ export function addRoutes(this: N8nApp, ignoredEndpoints: string[], restEndpoint req.url.startsWith('/fonts/') || req.url.includes('.svg') || req.url.startsWith(`/${restEndpoint}/settings`) || - req.url.includes('login') || - req.url.includes('logout') || + req.url.startsWith(`/${restEndpoint}/login`) || + req.url.startsWith(`/${restEndpoint}/logout`) || req.url.startsWith(`/${restEndpoint}/resolve-signup-token`) || isPostUsersId(req, restEndpoint) || req.url.startsWith(`/${restEndpoint}/forgot-password`) ||