Skip to content

微服务认证方案 SpringSecurity JWT Redis SSO VUE

Notifications You must be signed in to change notification settings

LaiDeJi/acl_parent

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Springboot + Springsecurity + spring-cloud-gateway + Redis + JWT + Nacos + MySQL
微服务的权限认证方案 未使用OAuth2.0 其中认证系统带有VUE前端

service_acl : 认证系统
service_order: 订单系统  不用连数据库 直接根据JWT 权限进行认证

认证系统用户:
admin/11111

nacos:
http://localhost:8848/nacos
nacos/nacos

POST测试流程:
http://localhost:8222/admin/acl/login
请求报文POST JSON:
{
    "username":"admin",
    "password":"111111"
}
返回:
{
    "success": true,
    "code": 20000,
    "message": "成功",
    "data": {
        "token": "eyJhbGciOiJIUzUxMiIsInppcCI6IkdaSVAifQ.H4sIAAAAAAAAAKtWKi5NUrJSSkzJzcxT0lFKrShQsjI0MzYztzQxNDWrBQDYqTJyIAAAAA.R8m0E7H57y9lt55tdk_2tDuCAI2DH_59CjtWhrj4cuMVMQW8o0onHMmrytZ1G_S0IyWEnn0F2ymtln5j6tO-WA"
    }
}

http://localhost:8222/admin/order/index/findAll
请求 header 里面 放入 token

教程:
https://www.bilibili.com/video/BV15a411A7kP

About

微服务认证方案 SpringSecurity JWT Redis SSO VUE

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%