mirror of
https://github.com/RemainderTime/spring-boot-base-demo.git
synced 2026-05-30 06:27:46 +08:00
feat(auth): 添加token前缀配置支持
- 在sa-token配置中增加token-prefix字段 - 默认设置为Bearer前缀以符合标准认证协议 - 支持前端Authorization头的标准格式配置
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user