From bb4ade60ec13b1747aad3abe5e6264d6baa11f52 Mon Sep 17 00:00:00 2001 From: Ryan Wang Date: Thu, 24 Oct 2024 12:09:48 +0800 Subject: [PATCH] docs: update basic authentication documentation (#440) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 更新关于 Basic Auth 认证的说明。 /kind documentation ```release-note None ``` --- docs/developer-guide/restful-api/introduction.md | 4 +++- .../version-2.20/developer-guide/restful-api/introduction.md | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/developer-guide/restful-api/introduction.md b/docs/developer-guide/restful-api/introduction.md index 1899204..01f9187 100644 --- a/docs/developer-guide/restful-api/introduction.md +++ b/docs/developer-guide/restful-api/introduction.md @@ -60,7 +60,9 @@ axios.get('https://demo.halo.run/apis/content.halo.run/v1alpha1/posts', { ### Basic Auth :::warning -通过 Basic Auth 认证将在未来的版本默认关闭,请谨慎使用。 +Basic Auth 认证方式已经在 Halo 2.20 默认关闭,需要手动添加 `halo.security.basic-auth.disabled=false` 启动参数来开启。 + +配置详情可见:[配置列表](../../getting-started/install/config.md#halo-独有配置) ::: Basic Auth 是一种通过用户名和密码进行身份验证的方式,你可以使用 Halo 账户的用户名和密码进行身份验证。 diff --git a/versioned_docs/version-2.20/developer-guide/restful-api/introduction.md b/versioned_docs/version-2.20/developer-guide/restful-api/introduction.md index 1899204..01f9187 100644 --- a/versioned_docs/version-2.20/developer-guide/restful-api/introduction.md +++ b/versioned_docs/version-2.20/developer-guide/restful-api/introduction.md @@ -60,7 +60,9 @@ axios.get('https://demo.halo.run/apis/content.halo.run/v1alpha1/posts', { ### Basic Auth :::warning -通过 Basic Auth 认证将在未来的版本默认关闭,请谨慎使用。 +Basic Auth 认证方式已经在 Halo 2.20 默认关闭,需要手动添加 `halo.security.basic-auth.disabled=false` 启动参数来开启。 + +配置详情可见:[配置列表](../../getting-started/install/config.md#halo-独有配置) ::: Basic Auth 是一种通过用户名和密码进行身份验证的方式,你可以使用 Halo 账户的用户名和密码进行身份验证。