docs: update basic authentication documentation (#440)

更新关于 Basic Auth 认证的说明。

/kind documentation

```release-note
None
```
This commit is contained in:
Ryan Wang
2024-10-24 12:09:48 +08:00
committed by GitHub
parent 6e55c499ab
commit bb4ade60ec
2 changed files with 6 additions and 2 deletions

View File

@@ -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 账户的用户名和密码进行身份验证。