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

Update auth.md #660

Open
wants to merge 1 commit into
base: develop-astro-nacos
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/content/docs/latest/zh-cn/guide/user/auth.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ sidebar:
|-----|------|------|----|
|nacos.core.auth.enabled|false|1.2.0 ~ latest|是否开启鉴权功能|
|nacos.core.auth.system.type|nacos|1.2.0 ~ latest|鉴权类型|
|nacos.core.auth.plugin.nacos.token.secret.key|SecretKey012345678901234567890123456789012345678901234567890123456789(2.2.0.1后无默认值)|2.1.0 ~ latest|默认鉴权插件用于生成用户登陆临时accessToken所使用的密钥,**使用默认值有安全风险**|
|nacos.core.auth.plugin.nacos.token.expire.seconds|18000|2.1.0 ~ latest|用户登陆临时accessToken的过期时间|
|nacos.core.auth.plugin.nacos.token.secret.key|SecretKey012345678901234567890123456789012345678901234567890123456789(2.2.0.1后无默认值)|2.1.0 ~ latest|默认鉴权插件用于生成用户登录临时accessToken所使用的密钥,**使用默认值有安全风险**|
|nacos.core.auth.plugin.nacos.token.expire.seconds|18000|2.1.0 ~ latest|用户登录临时accessToken的过期时间|
|nacos.core.auth.enable.userAgentAuthWhite|false|1.4.1 ~ latest|是否使用useragent白名单,主要用于适配老版本升级,**置为true时有安全风险**|
|nacos.core.auth.server.identity.key|serverIdentity(2.2.1后无默认值)|1.4.1 ~ latest|用于替换useragent白名单的身份识别key,**使用默认值有安全风险**|
|nacos.core.auth.server.identity.value|security(2.2.1后无默认值)|1.4.1 ~ latest|用于替换useragent白名单的身份识别value,**使用默认值有安全风险**|
Expand Down Expand Up @@ -163,7 +163,7 @@ try {
待补充

### Open-API鉴权
首先需要使用用户名和密码登陆nacos
首先需要使用用户名和密码登录nacos

```plain
curl -X POST '127.0.0.1:8848/nacos/v1/auth/login' -d 'username=nacos&password=nacos'
Expand Down