Uh oh!
There was an error while loading. Please reload this page.
feat(api): accept organizationId in chat requests with auth validation - #123
Conversation
- Add organizationId field to chatRequestSchema - Create validateOrganizationAccess function to check if an account can operate on behalf of an organization (either IS the org or is a member) - Validate organizationId in validateChatRequest and use it to override orgId when user is authorized - Return 403 error when user is not a member of the specified org - Add comprehensive tests for all scenarios Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the 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 |
Uh oh!
There was an error while loading. Please reload this page.
Summary
organizationIdfield to chat request schema for/api/chatand/api/chat/generateendpointsvalidateOrganizationAccessfunction to verify if an account can operate on behalf of an organizationorganizationIdto override org contextTest plan
validateOrganizationAccessfunctionorganizationIdvalidation invalidateChatRequest🤖 Generated with Claude Code