From 0f9a28afb62276371c10300db069676647afc08d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B5=B7=E8=A8=80?= <2439534736@qq.com> Date: Thu, 28 May 2026 16:28:48 +0800 Subject: [PATCH] =?UTF-8?q?feat(auth):=20=E6=B7=BB=E5=8A=A0token=E5=89=8D?= =?UTF-8?q?=E7=BC=80=E9=85=8D=E7=BD=AE=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在sa-token配置中增加token-prefix字段 - 默认设置为Bearer前缀以符合标准认证协议 - 支持前端Authorization头的标准格式配置 --- src/main/resources/sa-token-config.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/resources/sa-token-config.yml b/src/main/resources/sa-token-config.yml index cb58600..78d8385 100644 --- a/src/main/resources/sa-token-config.yml +++ b/src/main/resources/sa-token-config.yml @@ -2,6 +2,8 @@ sa-token: # token name (frontend needs to use this name, e.g., Authorization: Bearer xxxx, or just satoken: xxxx) token-name: Authorization + # token prefix (standard for Bearer tokens) + token-prefix: Bearer # token validity period (seconds), -1 means never expire timeout: 2592000 # token temporary validity (seconds), -1 means never expire