@lobehub/chat 1.22.9 → 1.22.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +42 -0
- package/README.md +9 -7
- package/docs/self-hosting/advanced/auth/next-auth/microsoft-entra-id.mdx +5 -5
- package/docs/self-hosting/advanced/auth/next-auth/microsoft-entra-id.zh-CN.mdx +5 -5
- package/docs/self-hosting/advanced/auth.mdx +3 -3
- package/docs/self-hosting/advanced/auth.zh-CN.mdx +3 -3
- package/docs/self-hosting/environment-variables/auth.mdx +2 -2
- package/docs/self-hosting/environment-variables/auth.zh-CN.mdx +2 -2
- package/docs/self-hosting/platform/alibaba-cloud.mdx +33 -0
- package/docs/self-hosting/platform/alibaba-cloud.zh-CN.mdx +33 -0
- package/docs/self-hosting/start.mdx +1 -0
- package/docs/self-hosting/start.zh-CN.mdx +2 -1
- package/package.json +86 -86
- package/src/libs/next-auth/sso-providers/azure-ad.ts +1 -1
- package/src/libs/next-auth/sso-providers/index.ts +2 -0
- package/src/libs/next-auth/sso-providers/microsoft-entra-id.ts +15 -0
package/CHANGELOG.md
CHANGED
@@ -2,6 +2,48 @@
|
|
2
2
|
|
3
3
|
# Changelog
|
4
4
|
|
5
|
+
### [Version 1.22.11](https://github.com/lobehub/lobe-chat/compare/v1.22.10...v1.22.11)
|
6
|
+
|
7
|
+
<sup>Released on **2024-10-20**</sup>
|
8
|
+
|
9
|
+
#### ♻ Code Refactoring
|
10
|
+
|
11
|
+
- **misc**: Refactor azure ad to ms entra id.
|
12
|
+
|
13
|
+
<br/>
|
14
|
+
|
15
|
+
<details>
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
17
|
+
|
18
|
+
#### Code refactoring
|
19
|
+
|
20
|
+
- **misc**: Refactor azure ad to ms entra id, closes [#4168](https://github.com/lobehub/lobe-chat/issues/4168) ([4fa9588](https://github.com/lobehub/lobe-chat/commit/4fa9588))
|
21
|
+
|
22
|
+
</details>
|
23
|
+
|
24
|
+
<div align="right">
|
25
|
+
|
26
|
+
[](#readme-top)
|
27
|
+
|
28
|
+
</div>
|
29
|
+
|
30
|
+
### [Version 1.22.10](https://github.com/lobehub/lobe-chat/compare/v1.22.9...v1.22.10)
|
31
|
+
|
32
|
+
<sup>Released on **2024-10-20**</sup>
|
33
|
+
|
34
|
+
<br/>
|
35
|
+
|
36
|
+
<details>
|
37
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
38
|
+
|
39
|
+
</details>
|
40
|
+
|
41
|
+
<div align="right">
|
42
|
+
|
43
|
+
[](#readme-top)
|
44
|
+
|
45
|
+
</div>
|
46
|
+
|
5
47
|
### [Version 1.22.9](https://github.com/lobehub/lobe-chat/compare/v1.22.8...v1.22.9)
|
6
48
|
|
7
49
|
<sup>Released on **2024-10-18**</sup>
|
package/README.md
CHANGED
@@ -68,7 +68,7 @@ One-click **FREE** deployment of your private OpenAI ChatGPT/Claude/Gemini/Groq/
|
|
68
68
|
- [`*` What's more](#-whats-more)
|
69
69
|
- [⚡️ Performance](#️-performance)
|
70
70
|
- [🛳 Self Hosting](#-self-hosting)
|
71
|
-
- [`A` Deploying with Vercel, Zeabur or
|
71
|
+
- [`A` Deploying with Vercel, Zeabur , Sealos or Alibaba Cloud](#a-deploying-with-vercel-zeabur--sealos-or-alibaba-cloud)
|
72
72
|
- [`B` Deploying with Docker](#b-deploying-with-docker)
|
73
73
|
- [Environment Variable](#environment-variable)
|
74
74
|
- [📦 Ecosystem](#-ecosystem)
|
@@ -439,15 +439,15 @@ Beside these features, LobeChat also have much better basic technique undergroun
|
|
439
439
|
|
440
440
|
## 🛳 Self Hosting
|
441
441
|
|
442
|
-
LobeChat provides Self-Hosted Version with Vercel and [Docker Image][docker-release-link]. This allows you to deploy your own chatbot within a few minutes without any prior knowledge.
|
442
|
+
LobeChat provides Self-Hosted Version with Vercel, Alibaba Cloud, and [Docker Image][docker-release-link]. This allows you to deploy your own chatbot within a few minutes without any prior knowledge.
|
443
443
|
|
444
444
|
> \[!TIP]
|
445
445
|
>
|
446
446
|
> Learn more about [📘 Build your own LobeChat][docs-self-hosting] by checking it out.
|
447
447
|
|
448
|
-
### `A` Deploying with Vercel, Zeabur or
|
448
|
+
### `A` Deploying with Vercel, Zeabur , Sealos or Alibaba Cloud
|
449
449
|
|
450
|
-
If you want to deploy this service yourself on
|
450
|
+
"If you want to deploy this service yourself on Vercel, Zeabur or Alibaba Cloud, you can follow these steps:
|
451
451
|
|
452
452
|
- Prepare your [OpenAI API Key](https://platform.openai.com/account/api-keys).
|
453
453
|
- Click the button below to start deployment: Log in directly with your GitHub account, and remember to fill in the `OPENAI_API_KEY`(required) and `ACCESS_CODE` (recommended) on the environment variable section.
|
@@ -456,9 +456,9 @@ If you want to deploy this service yourself on either Vercel or Zeabur, you can
|
|
456
456
|
|
457
457
|
<div align="center">
|
458
458
|
|
459
|
-
| Deploy with Vercel | Deploy with Zeabur | Deploy with Sealos | Deploy with RepoCloud |
|
460
|
-
| :-------------------------------------: | :---------------------------------------------------------: | :---------------------------------------------------------: | :---------------------------------------------------------------: |
|
461
|
-
| [![][deploy-button-image]][deploy-link] | [![][deploy-on-zeabur-button-image]][deploy-on-zeabur-link] | [![][deploy-on-sealos-button-image]][deploy-on-sealos-link] | [![][deploy-on-repocloud-button-image]][deploy-on-repocloud-link] |
|
459
|
+
| Deploy with Vercel | Deploy with Zeabur | Deploy with Sealos | Deploy with RepoCloud | Deploy with Alibaba Cloud |
|
460
|
+
| :-------------------------------------: | :---------------------------------------------------------: | :---------------------------------------------------------: | :---------------------------------------------------------------: | :-----------------------------------------------------------------------: |
|
461
|
+
| [![][deploy-button-image]][deploy-link] | [![][deploy-on-zeabur-button-image]][deploy-on-zeabur-link] | [![][deploy-on-sealos-button-image]][deploy-on-sealos-link] | [![][deploy-on-repocloud-button-image]][deploy-on-repocloud-link] | [![][deploy-on-alibaba-cloud-button-image]][deploy-on-alibaba-cloud-link] |
|
462
462
|
|
463
463
|
</div>
|
464
464
|
|
@@ -705,6 +705,8 @@ This project is [Apache 2.0](./LICENSE) licensed.
|
|
705
705
|
[codespaces-shield]: https://github.com/codespaces/badge.svg
|
706
706
|
[deploy-button-image]: https://vercel.com/button
|
707
707
|
[deploy-link]: https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Flobehub%2Flobe-chat&env=OPENAI_API_KEY,ACCESS_CODE&envDescription=Find%20your%20OpenAI%20API%20Key%20by%20click%20the%20right%20Learn%20More%20button.%20%7C%20Access%20Code%20can%20protect%20your%20website&envLink=https%3A%2F%2Fplatform.openai.com%2Faccount%2Fapi-keys&project-name=lobe-chat&repository-name=lobe-chat
|
708
|
+
[deploy-on-alibaba-cloud-button-image]: https://service-info-public.oss-cn-hangzhou.aliyuncs.com/computenest-en.svg
|
709
|
+
[deploy-on-alibaba-cloud-link]: https://computenest.console.aliyun.com/service/instance/create/default?type=user&ServiceName=LobeChat%E7%A4%BE%E5%8C%BA%E7%89%88
|
708
710
|
[deploy-on-repocloud-button-image]: https://d16t0pc4846x52.cloudfront.net/deploylobe.svg
|
709
711
|
[deploy-on-repocloud-link]: https://repocloud.io/details/?app_id=248
|
710
712
|
[deploy-on-sealos-button-image]: https://raw.githubusercontent.com/labring-actions/templates/main/Deploy-on-Sealos.svg
|
@@ -25,7 +25,7 @@ Fill in the desired application name to be displayed to organizational users, ch
|
|
25
25
|
In the `Redirect URI (optional)` section, for the application type, select `Web`, and in the Callback URL, enter:
|
26
26
|
|
27
27
|
```bash
|
28
|
-
https://your-domain/api/auth/callback/
|
28
|
+
https://your-domain/api/auth/callback/microsoft-entra-id
|
29
29
|
```
|
30
30
|
|
31
31
|
<Callout type={'info'}>
|
@@ -72,10 +72,10 @@ When deploying LobeChat, you need to configure the following environment variabl
|
|
72
72
|
| Environment Variable | Type | Description |
|
73
73
|
| --- | --- | --- |
|
74
74
|
| `NEXT_AUTH_SECRET` | Required | Key used to encrypt Auth.js session tokens. You can generate the key using the following command: `openssl rand -base64 32` |
|
75
|
-
| `NEXT_AUTH_SSO_PROVIDERS` | Required | Select the single sign-on provider for LoboChat. Use `
|
76
|
-
| `
|
77
|
-
| `
|
78
|
-
| `
|
75
|
+
| `NEXT_AUTH_SSO_PROVIDERS` | Required | Select the single sign-on provider for LoboChat. Use `microsoft-entra-id` for Microsoft Entra ID. |
|
76
|
+
| `AUTH_MICROSOFT_ENTRA_ID_ID` | Required | Client ID of the Microsoft Entra ID application. |
|
77
|
+
| `AUTH_MICROSOFT_ENTRA_ID_SECRET` | Required | Client Secret of the Microsoft Entra ID application. |
|
78
|
+
| `AUTH_MICROSOFT_ENTRA_ID_TENANT_ID` | Required | Tenant ID of the Microsoft Entra ID application. |
|
79
79
|
| `NEXTAUTH_URL` | Required | This URL is used to specify the callback address for Auth.js when performing OAuth authentication. It is only necessary to set it when the default generated redirect address is incorrect. `https://example.com/api/auth` |
|
80
80
|
|
81
81
|
<Callout type={'tip'}>
|
@@ -24,7 +24,7 @@ tags:
|
|
24
24
|
在 `Redirect URI (optional)` 中,应用类型选择 `Web`,Callback URL, 处填写:
|
25
25
|
|
26
26
|
```bash
|
27
|
-
https://your-domain/api/auth/callback/
|
27
|
+
https://your-domain/api/auth/callback/microsoft-entra-id
|
28
28
|
```
|
29
29
|
|
30
30
|
<Callout type={'info'}>
|
@@ -69,10 +69,10 @@ https://your-domain/api/auth/callback/azure-ad
|
|
69
69
|
| 环境变量 | 类型 | 描述 |
|
70
70
|
| --- | --- | --- |
|
71
71
|
| `NEXT_AUTH_SECRET` | 必选 | 用于加密 Auth.js 会话令牌的密钥。您可以使用以下命令生成秘钥: `openssl rand -base64 32` |
|
72
|
-
| `NEXT_AUTH_SSO_PROVIDERS` | 必选 | 选择 LoboChat 的单点登录提供商。使用 Microsoft Entra ID 请填写 `
|
73
|
-
| `
|
74
|
-
| `
|
75
|
-
| `
|
72
|
+
| `NEXT_AUTH_SSO_PROVIDERS` | 必选 | 选择 LoboChat 的单点登录提供商。使用 Microsoft Entra ID 请填写 `microsoft-entra-id`。 |
|
73
|
+
| `AUTH_MICROSOFT_ENTRA_ID_ID` | 必选 | Microsoft Entra ID 应用程序的 Client ID |
|
74
|
+
| `AUTH_MICROSOFT_ENTRA_ID_SECRET` | 必选 | Microsoft Entra ID 应用程序的 Client Secret |
|
75
|
+
| `AUTH_MICROSOFT_ENTRA_ID_TENANT_ID` | 必选 | Microsoft Entra ID 应用程序的 Tenant ID |
|
76
76
|
| `NEXTAUTH_URL` | 必选 | 该 URL 用于指定 Auth.js 在执行 OAuth 验证时的回调地址,当默认生成的重定向地址发生不正确时才需要设置。`https://example.com/api/auth` |
|
77
77
|
|
78
78
|
<Callout type={'tip'}>
|
@@ -31,7 +31,7 @@ Before using NextAuth, please set the following variables in LobeChat's environm
|
|
31
31
|
| --- | --- | --- |
|
32
32
|
| `NEXT_AUTH_SECRET` | Required | The key used to encrypt Auth.js session tokens. You can use the following command: `openssl rand -base64 32`, or visit `https://generate-secret.vercel.app/32` to generate the key. |
|
33
33
|
| `NEXTAUTH_URL` | Required | This URL specifies the callback address for Auth.js when performing OAuth verification. Set this only if the default generated redirect address is incorrect. `https://example.com/api/auth` |
|
34
|
-
| `NEXT_AUTH_SSO_PROVIDERS` | Optional | This environment variable is used to enable multiple identity verification sources simultaneously, separated by commas, for example, `auth0,
|
34
|
+
| `NEXT_AUTH_SSO_PROVIDERS` | Optional | This environment variable is used to enable multiple identity verification sources simultaneously, separated by commas, for example, `auth0,microsoft-entra-id,authentik`. |
|
35
35
|
|
36
36
|
Currently supported identity verification services include:
|
37
37
|
|
@@ -56,7 +56,7 @@ Click on the links to view the corresponding platform's configuration documentat
|
|
56
56
|
|
57
57
|
## Advanced Configuration
|
58
58
|
|
59
|
-
To simultaneously enable multiple identity verification sources, please set the `NEXT_AUTH_SSO_PROVIDERS` environment variable, separating them with commas, for example, `auth0,
|
59
|
+
To simultaneously enable multiple identity verification sources, please set the `NEXT_AUTH_SSO_PROVIDERS` environment variable, separating them with commas, for example, `auth0,microsoft-entra-id,authentik`.
|
60
60
|
|
61
61
|
The order corresponds to the display order of the SSO providers.
|
62
62
|
|
@@ -69,7 +69,7 @@ The order corresponds to the display order of the SSO providers.
|
|
69
69
|
| Cloudflare Zero Trust | `cloudflare-zero-trust` |
|
70
70
|
| Github | `github` |
|
71
71
|
| Logto | `logto` |
|
72
|
-
| Microsoft Entra ID | `
|
72
|
+
| Microsoft Entra ID | `microsoft-entra-id` |
|
73
73
|
| ZITADEL | `zitadel` |
|
74
74
|
|
75
75
|
## Other SSO Providers
|
@@ -28,7 +28,7 @@ LobeChat 与 Clerk 做了深度集成,能够为用户提供一个更加安全
|
|
28
28
|
| --- | --- | --- |
|
29
29
|
| `NEXT_AUTH_SECRET` | 必选 | 用于加密 Auth.js 会话令牌的密钥。您可以使用以下命令: `openssl rand -base64 32`,或者访问 `https://generate-secret.vercel.app/32` 生成秘钥。 |
|
30
30
|
| `NEXTAUTH_URL` | 必选 | 该 URL 用于指定 Auth.js 在执行 OAuth 验证时的回调地址,当默认生成的重定向地址发生不正确时才需要设置。`https://example.com/api/auth` |
|
31
|
-
| `NEXT_AUTH_SSO_PROVIDERS` | 可选 | 该环境变量用于同时启用多个身份验证源,以逗号 `,` 分割,例如 `auth0,
|
31
|
+
| `NEXT_AUTH_SSO_PROVIDERS` | 可选 | 该环境变量用于同时启用多个身份验证源,以逗号 `,` 分割,例如 `auth0,microsoft-entra-id,authentik`。 |
|
32
32
|
|
33
33
|
目前支持的身份验证服务有:
|
34
34
|
|
@@ -53,7 +53,7 @@ LobeChat 与 Clerk 做了深度集成,能够为用户提供一个更加安全
|
|
53
53
|
|
54
54
|
## 进阶配置
|
55
55
|
|
56
|
-
同时启用多个身份验证源请设置 `NEXT_AUTH_SSO_PROVIDERS` 环境变量,以逗号 `,` 分割,例如 `auth0,
|
56
|
+
同时启用多个身份验证源请设置 `NEXT_AUTH_SSO_PROVIDERS` 环境变量,以逗号 `,` 分割,例如 `auth0,microsoft-entra-id,authentik`。
|
57
57
|
|
58
58
|
顺序为 SSO 提供商的显示顺序。
|
59
59
|
|
@@ -66,7 +66,7 @@ LobeChat 与 Clerk 做了深度集成,能够为用户提供一个更加安全
|
|
66
66
|
| Cloudflare Zero Trust | `cloudflare-zero-trust` |
|
67
67
|
| Github | `github` |
|
68
68
|
| Logto | `logto` |
|
69
|
-
| Microsoft Entra ID | `
|
69
|
+
| Microsoft Entra ID | `microsoft-entra-id` |
|
70
70
|
| ZITADEL | `zitadel` |
|
71
71
|
|
72
72
|
## 其他 SSO 提供商
|
@@ -29,9 +29,9 @@ LobeChat provides a complete authentication service capability when deployed. Th
|
|
29
29
|
#### `NEXT_AUTH_SSO_PROVIDERS`
|
30
30
|
|
31
31
|
- Type: Optional
|
32
|
-
- Description: Select the single sign-on provider for LoboChat. For multiple SSO Providers separating them with commas, for example, `auth0,
|
32
|
+
- Description: Select the single sign-on provider for LoboChat. For multiple SSO Providers separating them with commas, for example, `auth0,microsoft-entra-id,authentik`.
|
33
33
|
- Default: `auth0`
|
34
|
-
- Example: `auth0,
|
34
|
+
- Example: `auth0,microsoft-entra-id,authentik`
|
35
35
|
|
36
36
|
#### `NEXTAUTH_URL`
|
37
37
|
|
@@ -27,9 +27,9 @@ LobeChat 在部署时提供了完善的身份验证服务能力,以下是相
|
|
27
27
|
#### `NEXT_AUTH_SSO_PROVIDERS`
|
28
28
|
|
29
29
|
- 类型:可选
|
30
|
-
- 描述:选择 LoboChat 的单点登录提供商。如果有多个单点登录提供商,请用逗号分隔,例如 `auth0,
|
30
|
+
- 描述:选择 LoboChat 的单点登录提供商。如果有多个单点登录提供商,请用逗号分隔,例如 `auth0,microsoft-entra-id,authentik`
|
31
31
|
- 默认值: `auth0`
|
32
|
-
- 示例: `auth0,
|
32
|
+
- 示例: `auth0,microsoft-entra-id,authentik`
|
33
33
|
|
34
34
|
#### `NEXTAUTH_URL`
|
35
35
|
|
@@ -0,0 +1,33 @@
|
|
1
|
+
---
|
2
|
+
title: Deploy LobeChat on Alibaba Cloud
|
3
|
+
description: Learn how to deploy the LobeChat application on Alibaba Cloud, including preparing the large model API Key, clicking the deploy button, and other operations.
|
4
|
+
tags:
|
5
|
+
- Alibaba Cloud
|
6
|
+
- LobeChat
|
7
|
+
- Alibaba Cloud Compute Nest
|
8
|
+
- API Key
|
9
|
+
---
|
10
|
+
|
11
|
+
# Deploy LobeChat with Alibaba Cloud
|
12
|
+
|
13
|
+
If you want to deploy LobeChat on Alibaba Cloud, you can follow the steps below:
|
14
|
+
|
15
|
+
## Alibaba Cloud Deployment Process
|
16
|
+
|
17
|
+
<Steps>
|
18
|
+
|
19
|
+
### Prepare your API Key
|
20
|
+
|
21
|
+
Go to [OpenAI API Key](https://platform.openai.com/account/api-keys) to get your OpenAI API Key.
|
22
|
+
Or go to [Tongyi Qianwen API Key](https://bailian.console.aliyun.com/?apiKey=1#/api-key) to get your API Key.
|
23
|
+
|
24
|
+
### One-click to deploy
|
25
|
+
|
26
|
+
[![][deploy-button-image]][deploy-link]
|
27
|
+
|
28
|
+
### Once deployed, you can start using it
|
29
|
+
|
30
|
+
</Steps>
|
31
|
+
|
32
|
+
[deploy-button-image]: https://service-info-public.oss-cn-hangzhou.aliyuncs.com/computenest-en.svg
|
33
|
+
[deploy-link]: https://computenest.console.aliyun.com/service/instance/create/default?type=user&ServiceName=LobeChat%E7%A4%BE%E5%8C%BA%E7%89%88
|
@@ -0,0 +1,33 @@
|
|
1
|
+
---
|
2
|
+
title: 在 阿里云 上部署 LobeChat
|
3
|
+
description: 学习如何在阿里云上部署LobeChat应用,包括准备大模型 API Key、点击部署按钮等操作。
|
4
|
+
tags:
|
5
|
+
- 阿里云
|
6
|
+
- LobeChat
|
7
|
+
- 部署流程
|
8
|
+
- 大模型 API Key
|
9
|
+
---
|
10
|
+
|
11
|
+
# 使用 阿里云计算巢 部署
|
12
|
+
|
13
|
+
如果想在 阿里云 上部署 LobeChat,可以按照以下步骤进行操作:
|
14
|
+
|
15
|
+
## 阿里云 部署流程
|
16
|
+
|
17
|
+
<Steps>
|
18
|
+
|
19
|
+
### 准备好你的 API Key
|
20
|
+
|
21
|
+
前往 [OpenAI API Key](https://platform.openai.com/account/api-keys) 获取你的 OpenAI API Key
|
22
|
+
或 前往 [通义千问 API Key](https://bailian.console.aliyun.com/?apiKey=1#/api-key) 获取你的通义千问 API Key
|
23
|
+
|
24
|
+
### 点击下方按钮进行部署
|
25
|
+
|
26
|
+
[![][deploy-button-image]][deploy-link]
|
27
|
+
|
28
|
+
### 部署完毕后,即可开始使用
|
29
|
+
|
30
|
+
</Steps>
|
31
|
+
|
32
|
+
[deploy-button-image]: https://service-info-public.oss-cn-hangzhou.aliyuncs.com/computenest-en.svg
|
33
|
+
[deploy-link]: https://computenest.console.aliyun.com/service/instance/create/default?type=user&ServiceName=LobeChat%E7%A4%BE%E5%8C%BA%E7%89%88
|
@@ -9,12 +9,13 @@ tags:
|
|
9
9
|
- Docker
|
10
10
|
- Netlify
|
11
11
|
- Vercel
|
12
|
+
- 阿里云计算巢
|
12
13
|
- 个性化
|
13
14
|
---
|
14
15
|
|
15
16
|
# 构建属于自己的 Lobe Chat
|
16
17
|
|
17
|
-
LobeChat 支持多种部署平台,包括 Vercel、Docker
|
18
|
+
LobeChat 支持多种部署平台,包括 Vercel、Docker、 Docker Compose 和 阿里云计算巢 等,你可以选择适合自己的部署平台进行部署,构建属于自己的 Lobe Chat。
|
18
19
|
|
19
20
|
## 快速部署
|
20
21
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@lobehub/chat",
|
3
|
-
"version": "1.22.
|
3
|
+
"version": "1.22.11",
|
4
4
|
"description": "Lobe Chat - an open-source, high-performance chatbot framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.",
|
5
5
|
"keywords": [
|
6
6
|
"framework",
|
@@ -99,74 +99,74 @@
|
|
99
99
|
]
|
100
100
|
},
|
101
101
|
"dependencies": {
|
102
|
-
"@ant-design/icons": "^5.
|
103
|
-
"@ant-design/pro-components": "^2.7.
|
104
|
-
"@anthropic-ai/sdk": "^0.29.
|
102
|
+
"@ant-design/icons": "^5.5.1",
|
103
|
+
"@ant-design/pro-components": "^2.7.18",
|
104
|
+
"@anthropic-ai/sdk": "^0.29.2",
|
105
105
|
"@auth/core": "^0.34.2",
|
106
|
-
"@aws-sdk/client-bedrock-runtime": "^3.
|
107
|
-
"@aws-sdk/client-s3": "^3.
|
108
|
-
"@aws-sdk/s3-request-presigner": "^3.
|
106
|
+
"@aws-sdk/client-bedrock-runtime": "^3.675.0",
|
107
|
+
"@aws-sdk/client-s3": "^3.675.0",
|
108
|
+
"@aws-sdk/s3-request-presigner": "^3.675.0",
|
109
109
|
"@azure/core-rest-pipeline": "1.16.0",
|
110
110
|
"@azure/openai": "1.0.0-beta.12",
|
111
111
|
"@baiducloud/qianfan": "^0.1.9",
|
112
|
-
"@cfworker/json-schema": "^2.0.
|
113
|
-
"@clerk/localizations": "^3.0
|
114
|
-
"@clerk/nextjs": "^5.
|
115
|
-
"@clerk/themes": "^2.1.
|
116
|
-
"@codesandbox/sandpack-react": "^2.19.
|
117
|
-
"@cyntler/react-doc-viewer": "^1.
|
118
|
-
"@google/generative-ai": "^0.16.
|
112
|
+
"@cfworker/json-schema": "^2.0.1",
|
113
|
+
"@clerk/localizations": "^3.3.0",
|
114
|
+
"@clerk/nextjs": "^5.7.5",
|
115
|
+
"@clerk/themes": "^2.1.37",
|
116
|
+
"@codesandbox/sandpack-react": "^2.19.9",
|
117
|
+
"@cyntler/react-doc-viewer": "^1.17.0",
|
118
|
+
"@google/generative-ai": "^0.16.1",
|
119
119
|
"@huggingface/inference": "^2.8.1",
|
120
120
|
"@icons-pack/react-simple-icons": "9.6.0",
|
121
121
|
"@khmyznikov/pwa-install": "^0.3.9",
|
122
|
-
"@langchain/community": "^0.2.
|
122
|
+
"@langchain/community": "^0.2.33",
|
123
123
|
"@lobehub/chat-plugin-sdk": "^1.32.4",
|
124
124
|
"@lobehub/chat-plugins-gateway": "^1.9.0",
|
125
|
-
"@lobehub/icons": "^1.35.
|
126
|
-
"@lobehub/tts": "^1.
|
127
|
-
"@lobehub/ui": "^1.
|
128
|
-
"@neondatabase/serverless": "^0.10.
|
129
|
-
"@next/third-parties": "^14.2.
|
130
|
-
"@react-spring/web": "^9.7.
|
131
|
-
"@sentry/nextjs": "^7.119.
|
132
|
-
"@serwist/next": "^9.0.
|
133
|
-
"@t3-oss/env-nextjs": "^0.11.
|
134
|
-
"@tanstack/react-query": "^5.
|
125
|
+
"@lobehub/icons": "^1.35.4",
|
126
|
+
"@lobehub/tts": "^1.25.1",
|
127
|
+
"@lobehub/ui": "^1.151.5",
|
128
|
+
"@neondatabase/serverless": "^0.10.1",
|
129
|
+
"@next/third-parties": "^14.2.15",
|
130
|
+
"@react-spring/web": "^9.7.5",
|
131
|
+
"@sentry/nextjs": "^7.119.2",
|
132
|
+
"@serwist/next": "^9.0.9",
|
133
|
+
"@t3-oss/env-nextjs": "^0.11.1",
|
134
|
+
"@tanstack/react-query": "^5.59.15",
|
135
135
|
"@trpc/client": "next",
|
136
136
|
"@trpc/next": "next",
|
137
137
|
"@trpc/react-query": "next",
|
138
138
|
"@trpc/server": "next",
|
139
139
|
"@vercel/analytics": "^1.3.1",
|
140
|
-
"@vercel/edge-config": "^1.
|
140
|
+
"@vercel/edge-config": "^1.3.0",
|
141
141
|
"@vercel/speed-insights": "^1.0.12",
|
142
142
|
"ahooks": "^3.8.1",
|
143
|
-
"ai": "^3.
|
144
|
-
"antd": "^5.21.
|
145
|
-
"antd-style": "^3.
|
143
|
+
"ai": "^3.4.16",
|
144
|
+
"antd": "^5.21.4",
|
145
|
+
"antd-style": "^3.7.0",
|
146
146
|
"brotli-wasm": "^3.0.1",
|
147
147
|
"chroma-js": "^2.6.0",
|
148
148
|
"dayjs": "^1.11.13",
|
149
|
-
"debug": "^4.3.
|
149
|
+
"debug": "^4.3.7",
|
150
150
|
"dexie": "^3.2.7",
|
151
151
|
"diff": "^5.2.0",
|
152
|
-
"drizzle-orm": "^0.34.
|
152
|
+
"drizzle-orm": "^0.34.1",
|
153
153
|
"drizzle-zod": "^0.5.1",
|
154
154
|
"fast-deep-equal": "^3.1.3",
|
155
|
-
"file-type": "^19.
|
156
|
-
"framer-motion": "^11.
|
157
|
-
"gpt-tokenizer": "^2.
|
158
|
-
"i18next": "^23.
|
155
|
+
"file-type": "^19.6.0",
|
156
|
+
"framer-motion": "^11.11.9",
|
157
|
+
"gpt-tokenizer": "^2.5.0",
|
158
|
+
"i18next": "^23.16.1",
|
159
159
|
"i18next-browser-languagedetector": "^7.2.1",
|
160
160
|
"i18next-resources-to-backend": "^1.2.1",
|
161
161
|
"idb-keyval": "^6.2.1",
|
162
162
|
"immer": "^10.1.1",
|
163
163
|
"ip": "^2.0.1",
|
164
|
-
"jose": "^5.
|
164
|
+
"jose": "^5.9.4",
|
165
165
|
"js-sha256": "^0.11.0",
|
166
166
|
"jsonl-parse-stringify": "^1.0.3",
|
167
|
-
"langchain": "^0.3.
|
168
|
-
"langfuse": "^3.
|
169
|
-
"langfuse-core": "^3.
|
167
|
+
"langchain": "^0.3.2",
|
168
|
+
"langfuse": "^3.27.0",
|
169
|
+
"langfuse-core": "^3.27.0",
|
170
170
|
"lodash-es": "^4.17.21",
|
171
171
|
"lucide-react": "latest",
|
172
172
|
"mammoth": "^1.8.0",
|
@@ -175,51 +175,51 @@
|
|
175
175
|
"next": "14.2.8",
|
176
176
|
"next-auth": "beta",
|
177
177
|
"next-mdx-remote": "^4.4.1",
|
178
|
-
"nextjs-toploader": "^3.
|
178
|
+
"nextjs-toploader": "^3.7.15",
|
179
179
|
"numeral": "^2.0.6",
|
180
|
-
"nuqs": "^1.
|
181
|
-
"officeparser": "^4.
|
182
|
-
"ollama": "^0.5.
|
183
|
-
"openai": "^4.
|
184
|
-
"openapi-fetch": "^0.9.
|
180
|
+
"nuqs": "^1.20.0",
|
181
|
+
"officeparser": "^4.2.0",
|
182
|
+
"ollama": "^0.5.9",
|
183
|
+
"openai": "^4.68.1",
|
184
|
+
"openapi-fetch": "^0.9.8",
|
185
185
|
"partial-json": "^0.1.7",
|
186
186
|
"pdf-parse": "^1.1.1",
|
187
187
|
"pdfjs-dist": "4.4.168",
|
188
|
-
"pg": "^8.
|
189
|
-
"pino": "^9.
|
188
|
+
"pg": "^8.13.0",
|
189
|
+
"pino": "^9.5.0",
|
190
190
|
"polished": "^4.3.1",
|
191
|
-
"posthog-js": "^1.
|
192
|
-
"pwa-install-handler": "^2.6.
|
193
|
-
"query-string": "^9.1.
|
191
|
+
"posthog-js": "^1.174.2",
|
192
|
+
"pwa-install-handler": "^2.6.1",
|
193
|
+
"query-string": "^9.1.1",
|
194
194
|
"random-words": "^2.0.1",
|
195
195
|
"react": "^18.3.1",
|
196
196
|
"react-confetti": "^6.1.0",
|
197
197
|
"react-dom": "^18.3.1",
|
198
198
|
"react-fast-marquee": "^1.6.5",
|
199
|
-
"react-hotkeys-hook": "^4.5.
|
199
|
+
"react-hotkeys-hook": "^4.5.1",
|
200
200
|
"react-i18next": "14.0.2",
|
201
201
|
"react-layout-kit": "^1.9.0",
|
202
202
|
"react-lazy-load": "^4.0.1",
|
203
|
-
"react-pdf": "^9.1.
|
204
|
-
"react-virtuoso": "^4.
|
203
|
+
"react-pdf": "^9.1.1",
|
204
|
+
"react-virtuoso": "^4.12.0",
|
205
205
|
"react-wrap-balancer": "^1.1.1",
|
206
206
|
"remark": "^14.0.3",
|
207
207
|
"remark-gfm": "^3.0.1",
|
208
208
|
"remark-html": "^15.0.2",
|
209
209
|
"request-filtering-agent": "^2.0.1",
|
210
|
-
"resolve-accept-language": "^3.1.
|
210
|
+
"resolve-accept-language": "^3.1.8",
|
211
211
|
"rtl-detect": "^1.1.2",
|
212
212
|
"semver": "^7.6.3",
|
213
213
|
"sharp": "^0.33.5",
|
214
|
-
"shiki": "^1.
|
215
|
-
"stripe": "^15.
|
214
|
+
"shiki": "^1.22.0",
|
215
|
+
"stripe": "^15.12.0",
|
216
216
|
"superjson": "^2.2.1",
|
217
|
-
"svix": "^1.
|
217
|
+
"svix": "^1.37.0",
|
218
218
|
"swr": "^2.2.5",
|
219
219
|
"systemjs": "^6.15.1",
|
220
220
|
"ts-md5": "^1.3.1",
|
221
|
-
"ua-parser-js": "^1.0.
|
222
|
-
"unstructured-client": "^0.18.
|
221
|
+
"ua-parser-js": "^1.0.39",
|
222
|
+
"unstructured-client": "^0.18.1",
|
223
223
|
"url-join": "^5.0.0",
|
224
224
|
"use-merge-value": "^1.2.0",
|
225
225
|
"utility-types": "^3.11.0",
|
@@ -227,60 +227,60 @@
|
|
227
227
|
"ws": "^8.18.0",
|
228
228
|
"y-protocols": "^1.0.6",
|
229
229
|
"y-webrtc": "^10.3.0",
|
230
|
-
"yaml": "^2.
|
231
|
-
"yjs": "^13.6.
|
230
|
+
"yaml": "^2.6.0",
|
231
|
+
"yjs": "^13.6.20",
|
232
232
|
"zod": "^3.23.8",
|
233
233
|
"zustand": "^4.5.5",
|
234
234
|
"zustand-utils": "^1.3.2"
|
235
235
|
},
|
236
236
|
"devDependencies": {
|
237
|
-
"@commitlint/cli": "^19.
|
238
|
-
"@edge-runtime/vm": "^4.0.
|
239
|
-
"@huggingface/tasks": "^0.12.
|
240
|
-
"@lobehub/i18n-cli": "^1.
|
237
|
+
"@commitlint/cli": "^19.5.0",
|
238
|
+
"@edge-runtime/vm": "^4.0.3",
|
239
|
+
"@huggingface/tasks": "^0.12.22",
|
240
|
+
"@lobehub/i18n-cli": "^1.20.0",
|
241
241
|
"@lobehub/lint": "^1.24.4",
|
242
242
|
"@lobehub/seo-cli": "^1.4.2",
|
243
|
-
"@next/bundle-analyzer": "^14.2.
|
244
|
-
"@next/eslint-plugin-next": "^14.2.
|
243
|
+
"@next/bundle-analyzer": "^14.2.15",
|
244
|
+
"@next/eslint-plugin-next": "^14.2.15",
|
245
245
|
"@peculiar/webcrypto": "^1.5.0",
|
246
|
-
"@testing-library/jest-dom": "^6.
|
247
|
-
"@testing-library/react": "^16.0.
|
246
|
+
"@testing-library/jest-dom": "^6.6.2",
|
247
|
+
"@testing-library/react": "^16.0.1",
|
248
248
|
"@types/chroma-js": "^2.4.4",
|
249
249
|
"@types/debug": "^4.1.12",
|
250
|
-
"@types/diff": "^5.2.
|
250
|
+
"@types/diff": "^5.2.3",
|
251
251
|
"@types/ip": "^1.1.3",
|
252
252
|
"@types/json-schema": "^7.0.15",
|
253
|
-
"@types/lodash": "^4.17.
|
253
|
+
"@types/lodash": "^4.17.12",
|
254
254
|
"@types/lodash-es": "^4.17.12",
|
255
|
-
"@types/node": "^20.16.
|
255
|
+
"@types/node": "^20.16.13",
|
256
256
|
"@types/numeral": "^2.0.5",
|
257
|
-
"@types/pg": "^8.11.
|
258
|
-
"@types/react": "^18.3.
|
259
|
-
"@types/react-dom": "^18.3.
|
257
|
+
"@types/pg": "^8.11.10",
|
258
|
+
"@types/react": "^18.3.11",
|
259
|
+
"@types/react-dom": "^18.3.1",
|
260
260
|
"@types/rtl-detect": "^1.0.3",
|
261
261
|
"@types/semver": "^7.5.8",
|
262
|
-
"@types/systemjs": "^6.
|
262
|
+
"@types/systemjs": "^6.15.1",
|
263
263
|
"@types/ua-parser-js": "^0.7.39",
|
264
264
|
"@types/unist": "^3.0.3",
|
265
265
|
"@types/uuid": "^10.0.0",
|
266
266
|
"@types/ws": "^8.5.12",
|
267
267
|
"@vitest/coverage-v8": "~1.2.2",
|
268
268
|
"ajv-keywords": "^5.1.0",
|
269
|
-
"commitlint": "^19.
|
269
|
+
"commitlint": "^19.5.0",
|
270
270
|
"consola": "^3.2.3",
|
271
271
|
"dotenv": "^16.4.5",
|
272
272
|
"dpdm": "^3.14.0",
|
273
273
|
"drizzle-kit": "^0.25.0",
|
274
|
-
"eslint": "^8.57.
|
274
|
+
"eslint": "^8.57.1",
|
275
275
|
"eslint-plugin-mdx": "^2.3.4",
|
276
276
|
"eslint-plugin-unused-imports": "4.0.1",
|
277
277
|
"fake-indexeddb": "^6.0.0",
|
278
278
|
"glob": "^11.0.0",
|
279
279
|
"gray-matter": "^4.0.3",
|
280
|
-
"happy-dom": "^15.
|
281
|
-
"husky": "^9.1.
|
280
|
+
"happy-dom": "^15.7.4",
|
281
|
+
"husky": "^9.1.6",
|
282
282
|
"just-diff": "^6.0.2",
|
283
|
-
"lint-staged": "^15.2.
|
283
|
+
"lint-staged": "^15.2.10",
|
284
284
|
"lodash": "^4.17.21",
|
285
285
|
"markdown-table": "^3.0.3",
|
286
286
|
"node-fetch": "^3.3.2",
|
@@ -291,14 +291,14 @@
|
|
291
291
|
"remark-cli": "^11.0.0",
|
292
292
|
"remark-parse": "^10.0.2",
|
293
293
|
"semantic-release": "^21.1.2",
|
294
|
-
"serwist": "^9.0.
|
294
|
+
"serwist": "^9.0.9",
|
295
295
|
"stylelint": "^15.11.0",
|
296
|
-
"supports-color": "8",
|
297
|
-
"tsx": "^4.
|
298
|
-
"typescript": "^5.
|
296
|
+
"supports-color": "^8.1.1",
|
297
|
+
"tsx": "^4.19.1",
|
298
|
+
"typescript": "^5.6.3",
|
299
299
|
"unified": "^11.0.5",
|
300
300
|
"unist-util-visit": "^5.0.0",
|
301
|
-
"vite": "^5.4.
|
301
|
+
"vite": "^5.4.9",
|
302
302
|
"vitest": "~1.2.2",
|
303
303
|
"vitest-canvas-mock": "^0.3.3"
|
304
304
|
},
|
@@ -14,7 +14,7 @@ const provider = {
|
|
14
14
|
// TODO(NextAuth ENVs Migration): Remove once nextauth envs migration time end
|
15
15
|
clientId: authEnv.AZURE_AD_CLIENT_ID ?? process.env.AUTH_AZURE_AD_ID,
|
16
16
|
clientSecret: authEnv.AZURE_AD_CLIENT_SECRET ?? process.env.AUTH_AZURE_AD_SECRET,
|
17
|
-
tenantId: authEnv.AZURE_AD_TENANT_ID ?? process.env.AUTH_AZURE_AD_TENANT_ID,
|
17
|
+
// tenantId: authEnv.AZURE_AD_TENANT_ID ?? process.env.AUTH_AZURE_AD_TENANT_ID,
|
18
18
|
// Remove end
|
19
19
|
// TODO(NextAuth): map unique user id to `providerAccountId` field
|
20
20
|
// profile(profile) {
|
@@ -7,6 +7,7 @@ import CloudflareZeroTrust from './cloudflare-zero-trust';
|
|
7
7
|
import GenericOIDC from './generic-oidc';
|
8
8
|
import Github from './github';
|
9
9
|
import Logto from './logto';
|
10
|
+
import MicrosoftEntraID from './microsoft-entra-id';
|
10
11
|
import Zitadel from './zitadel';
|
11
12
|
|
12
13
|
export const ssoProviders = [
|
@@ -20,4 +21,5 @@ export const ssoProviders = [
|
|
20
21
|
Logto,
|
21
22
|
CloudflareZeroTrust,
|
22
23
|
Casdoor,
|
24
|
+
MicrosoftEntraID,
|
23
25
|
];
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import MicrosoftEntraID from 'next-auth/providers/microsoft-entra-id';
|
2
|
+
|
3
|
+
import { CommonProviderConfig } from './sso.config';
|
4
|
+
|
5
|
+
const provider = {
|
6
|
+
id: 'microsoft-entra-id',
|
7
|
+
provider: MicrosoftEntraID({
|
8
|
+
...CommonProviderConfig,
|
9
|
+
// Specify auth scope, at least include 'openid email'
|
10
|
+
// all scopes in Azure AD ref: https://learn.microsoft.com/en-us/entra/identity-platform/scopes-oidc#openid-connect-scopes
|
11
|
+
authorization: { params: { scope: 'openid email profile' } },
|
12
|
+
}),
|
13
|
+
};
|
14
|
+
|
15
|
+
export default provider;
|