使用jwt存储Token

This commit is contained in:
2023-08-21 23:37:24 +08:00
parent 826f9fb185
commit 02e76a8091
26 changed files with 1237 additions and 36 deletions

View File

@@ -10,10 +10,6 @@ spring:
name: bookservice
security:
oauth2:
client:
#基操
client-id: web
client-secret: 654321
resource:
#因为资源服务器得验证你的Token是否有访问此资源的权限以及用户信息所以只需要一个验证地址
token-info-uri: http://localhost:8500/sso/oauth/check_token
jwt:
key-value: lbwnb #注意这里要跟验证服务器的密钥一致,这样算出来的签名才会一致