Files
continew-starter/continew-starter-auth/continew-starter-auth-satoken/src/main/resources/default-auth-satoken.yml

11 lines
517 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

--- ### Sa-Token 配置https://sa-token.cc/doc.html#/use/config
sa-token:
# token 前缀(例如填写 Bearer实际传参 token 键: Bearer xxxx-xxxx-xxxx-xxxx
token-prefix: Bearer
# 是否尝试从 请求体 里读取 Token
is-read-body: true
# 是否尝试从 header 里读取 Token
is-read-header: true
# 是否尝试从 cookie 里读取 Token此值为 false 后StpUtil.login(id) 登录时也不会再往前端注入 Cookie适合前后端分离模式
is-read-cookie: false