-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(core): Use consistent CSRF state validation across oAuth controllers #9104
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From what I can tell this looks good. One small question out of curiosity.
2 failed and 1 flaky tests on run #5118 ↗︎
Details:
cypress/e2e/27-cloud.cy.ts • 2 failed testscypress/e2e/5-ndv.cy.ts • 1 flaky test
Review all test suite changes for PR #9104 ↗︎ |
✅ All Cypress E2E specs passed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made some suggestions to the unit tests. Let me know what you think.
packages/cli/src/controllers/oauth/oAuth2Credential.controller.ts
Outdated
Show resolved
Hide resolved
packages/cli/test/unit/controllers/oauth/oAuth1Credential.controller.test.ts
Show resolved
Hide resolved
packages/cli/test/unit/controllers/oauth/oAuth1Credential.controller.test.ts
Show resolved
Hide resolved
packages/cli/src/controllers/oauth/oAuth2Credential.controller.ts
Outdated
Show resolved
Hide resolved
Co-authored-by: Danny Martini <[email protected]>
✅ All Cypress E2E specs passed |
* master: refactor(core): Use consistent CSRF state validation across oAuth controllers (#9104) feat(core): Print the name of the migration that cannot be reverted when using `n8n db:revert` (#9473) fix(editor): Hard load after logout to reset stores (no-changelog) (#9500) refactor(core): Stop reporting `EAUTH` error codes to Sentry (no-changelog) (#9496) fix(core): Upgrade sheetjs to address CVE-2024-22363 (#9498) refactor: Remove skipped tests (no-changelog) (#9497) feat(editor): Add initial code for NodeView and Canvas rewrite (no-changelog) (#9135) fix(editor): Show input panel with not connected message (#9495) fix(editor): Prevent XSS in node-issues tooltip (#9490) # Conflicts: # pnpm-lock.yaml
Got released with |
We use a CSRF state on oAuth2 flows to prevent
credentialId
from being tampered with.This PR updates the oAuth1 flows to reuse the same code to ensure the same level of safety across all oAuth flows.
Review / Merge checklist