-
-
Notifications
You must be signed in to change notification settings - Fork 9.9k
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
💄 style: Support webhooks for casdoor #3942
Conversation
@cy948 is attempting to deploy a commit to the LobeHub Pro Team on Vercel. A member of the Team first needs to authorize it. |
👍 @cy948 Thank you for raising your pull request and contributing to our Community |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3942 +/- ##
=========================================
Coverage 91.73% 91.73%
=========================================
Files 481 481
Lines 34209 34215 +6
Branches 3296 2236 -1060
=========================================
+ Hits 31382 31388 +6
Misses 2827 2827
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
❤️ Great PR @cy948 ❤️ The growth of project is inseparable from user feedback and contribution, thanks for your contribution! If you are interesting with the lobehub developer community, please join our discord and then dm @arvinxx or @canisminor1990. They will invite you to our private developer channel. We are talking about the lobe-chat development or sharing ai newsletter around the world. |
### [Version 1.19.12](v1.19.11...v1.19.12) <sup>Released on **2024-09-20**</sup> #### 💄 Styles - **misc**: Support webhooks for casdoor. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### Styles * **misc**: Support webhooks for casdoor, closes [#3942](#3942) ([1f2f6a5](1f2f6a5)) </details> <div align="right"> [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top) </div>
🎉 This PR is included in version 1.19.12 🎉 The release is available on: Your semantic-release bot 📦🚀 |
### [Version 1.62.3](v1.62.2...v1.62.3) <sup>Released on **2024-09-20**</sup> #### 🐛 Bug Fixes - **misc**: Custom model initialization not taking effect error. #### 💄 Styles - **misc**: Add qwen2.5 math and coder model for siliconcloud provider, support webhooks for casdoor. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's fixed * **misc**: Custom model initialization not taking effect error, closes [lobehub#4038](https://github.com/bentwnghk/lobe-chat/issues/4038) ([0e0d208](0e0d208)) #### Styles * **misc**: Add qwen2.5 math and coder model for siliconcloud provider, closes [lobehub#4043](https://github.com/bentwnghk/lobe-chat/issues/4043) ([d16578f](d16578f)) * **misc**: Support webhooks for casdoor, closes [lobehub#3942](https://github.com/bentwnghk/lobe-chat/issues/3942) ([1f2f6a5](1f2f6a5)) </details> <div align="right"> [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top) </div>
* ✨ feat: Support Casdoor provider * ✨ feat: + webhook for casdoor * 🐛 fix: skip test
### [Version 1.19.12](lobehub/lobe-chat@v1.19.11...v1.19.12) <sup>Released on **2024-09-20**</sup> #### 💄 Styles - **misc**: Support webhooks for casdoor. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### Styles * **misc**: Support webhooks for casdoor, closes [lobehub#3942](lobehub#3942) ([1f2f6a5](lobehub@1f2f6a5)) </details> <div align="right"> [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top) </div>
💻 变更类型 | Change Type
🔀 变更说明 | Description of Change
src/app/api/webhooks/casdoor/__tests__/route.test.ts
: Local dev 测试 case;src/app/api/webhooks/casdoor/route.ts
: 处理 Casdoor Event;src/app/api/webhooks/casdoor/validateRequest.ts
: 检查 request 合法性,目前使用固定 secret;src/libs/next-auth/sso-providers/casdoor.ts
: 添加 Casdoor SSO Provider;📝 补充信息 | Additional Information
AUTH_[Provider]_[Param]
形式,因此,Casdoor的三个环境变量分别为:AUTH_CASDOOR_ID
,AUTH_CASDOOR_SECRET
,AUTH_CASDOOR_ISSUER
;<protocol>://<host>:<port>/api/auth/callback/casdoor
/webhooks
创建一个 webhookupdate-user
<protocol>://<host>:<port>/api/webhooks/casdoor
casdoor-secret
,值为任意 secret,要与LobeChat环境变量CASDOOR_WEBHOOK_SECRET
一致。Link issues: