fix(website): validate OAuth state on error callbacks - #43
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughThe OIDC flow centralizes stored-request validation and adds request consumption. ChangesOIDC callback flow
Estimated code review effort: 3 (Moderate) | ~20 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
website/app/auth/AuthCallback.tsxOops! Something went wrong! :( ESLint: 8.57.1 YAMLException: Cannot read config file: /website/eslint.config.mjs 6 | const __filename = fileURLToPath(import.meta.url); website/app/auth/__tests__/AuthCallback.test.tsxOops! Something went wrong! :( ESLint: 8.57.1 YAMLException: Cannot read config file: /website/eslint.config.mjs 6 | const __filename = fileURLToPath(import.meta.url); website/app/auth/oidc.tsOops! Something went wrong! :( ESLint: 8.57.1 YAMLException: Cannot read config file: /website/eslint.config.mjs 6 | const __filename = fileURLToPath(import.meta.url); Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
Verification
pm test -- app/auth/tests/AuthCallback.test.tsx
px eslint app/auth/AuthCallback.tsx app/auth/oidc.ts app/auth/tests/AuthCallback.test.tsx
pm run build
Live finding
A forged callback with �rror=access_denied and a mismatched state currently renders the supplied �rror_description. This change makes that path fail closed with the state-mismatch message.
Summary by CodeRabbit