fix(core): Open oauth callback endpoints to be public (#3168)

This commit is contained in:
Omar Ajoue
2022-04-25 10:51:50 +02:00
committed by GitHub
parent 0448feec56
commit 01807d6136
4 changed files with 30 additions and 13 deletions

View File

@@ -66,6 +66,8 @@ export function addRoutes(this: N8nApp, ignoredEndpoints: string[], restEndpoint
req.url.startsWith(`/${restEndpoint}/forgot-password`) ||
req.url.startsWith(`/${restEndpoint}/resolve-password-token`) ||
req.url.startsWith(`/${restEndpoint}/change-password`) ||
req.url.startsWith(`/${restEndpoint}/oauth2-credential/callback`) ||
req.url.startsWith(`/${restEndpoint}/oauth1-credential/callback`) ||
isAuthExcluded(req.url, ignoredEndpoints)
) {
return next();