Skip to content
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

✨ feat(auth): add WeChat authentication support #5195

Merged
merged 6 commits into from
Dec 28, 2024

Conversation

xiangnanscu
Copy link
Contributor

💻 变更类型 | Change Type

  • ✨ feat
  • 🐛 fix
  • ♻️ refactor
  • 💄 style
  • 👷 build
  • ⚡️ perf
  • 📝 docs
  • 🔨 chore

🔀 变更说明 | Description of Change

📝 补充信息 | Additional Information

Copy link

vercel bot commented Dec 26, 2024

@xiangnanscu is attempting to deploy a commit to the LobeHub Team on Vercel.

A member of the Team first needs to authorize it.

@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. 🌠 Feature Request New feature or request | 特性与建议 labels Dec 26, 2024
@lobehubbot
Copy link
Member

👍 @xiangnanscu

Thank you for raising your pull request and contributing to our Community
Please make sure you have followed our contributing guidelines. We will review it as soon as possible.
If you encounter any problems, please feel free to connect with us.
非常感谢您提出拉取请求并为我们的社区做出贡献,请确保您已经遵循了我们的贡献指南,我们会尽快审查它。
如果您遇到任何问题,请随时与我们联系。

Copy link
Contributor

@arvinxx arvinxx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

还需要参考 https://github.com/lobehub/lobe-chat/blob/main/docs/self-hosting/advanced/auth/next-auth/zitadel.zh-CN.mdx 这里的介绍,补充对应的中英文配置文档。

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里不需要添加配置

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@arvinxx 是整个auth.ts都不需要修改还是部分不需要添加?我看不到具体哪几行

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

整个都不需要修改

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@arvinxx OK了

@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. and removed size:M This PR changes 30-99 lines, ignoring generated files. labels Dec 27, 2024
@@ -0,0 +1,40 @@
---
title: 在 LobeChat 中配置 Wechat 身份验证服务
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

配置微信身份验证服务

title: 在 LobeChat 中配置 Wechat 身份验证服务
description: 学习如何在 LobeChat 中配置 Wechat 身份验证服务,包括创建新的 Wechat App、设置权限和环境变量。
tags:
- Wechat 身份验证
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

微信身份验证

docs/self-hosting/advanced/auth/next-auth/wechat.zh-CN.mdx Outdated Show resolved Hide resolved
Copy link
Contributor

@arvinxx arvinxx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks for your contribution!

@arvinxx arvinxx merged commit 95153a4 into lobehub:main Dec 28, 2024
2 of 4 checks passed
@lobehubbot
Copy link
Member

❤️ Great PR @xiangnanscu ❤️

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.
项目的成长离不开用户反馈和贡献,感谢您的贡献! 如果您对 LobeHub 开发者社区感兴趣,请加入我们的 discord,然后私信 @arvinxx@canisminor1990。他们会邀请您加入我们的私密开发者频道。我们将会讨论关于 Lobe Chat 的开发,分享和讨论全球范围内的 AI 消息。

github-actions bot pushed a commit that referenced this pull request Dec 28, 2024
## [Version 1.41.0](v1.40.4...v1.41.0)
<sup>Released on **2024-12-28**</sup>

#### ✨ Features

- **auth**: Add WeChat authentication support.
- **misc**: Support white list for discover assistant.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

* **auth**: Add WeChat authentication support, closes [#5195](#5195) ([95153a4](95153a4))
* **misc**: Support white list for discover assistant, closes [#5216](#5216) ([90bb20d](90bb20d))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
@lobehubbot
Copy link
Member

🎉 This PR is included in version 1.41.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🌠 Feature Request New feature or request | 特性与建议 released size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants