spring-security介绍

系统权限的本质
    认证的本质
    权限的本质

权限系统的设计
    主要应对的场景
    多系统权限设计
    数据库表实体设计

clever-security实现原理
    模块划分
    三方系统接入方案
    自动扫描注册系统权限

进阶教程
    登录方案说明(jwt和session)
    jwt设计
    jwt的Redis存储设计
    全局session设计
    session的Redis存储设计

高级使用
    配置文档
    使用第三方用户信息-LoadThirdUser接口
    自定义认证(登录)参数-CollectLoginToken接口
    自定义认证(登录)逻辑-AuthenticationLoginToken接口
    获取当前登录用户-AuthenticationUtils

管理控制台使用指南
    系统服务
    用户
    角色
    权限
    授权
    强制登出
    ...

登录

{
    "success": true,
    "message": "登录成功",
    "timestamp": 1564464322777,
    "needCaptcha": true,
    "user": {
        "username": "lizw",
        "telephone": "13243895947",
        "email": "1183409808@qq.com",
        "userType": 0,
        "roleNames": [],
        "authorities": ["[auto]:QNifAtPpURtwITd5kjl", "[auto]:fGJV2hb1Gms2S2g7N3E", "[auto]:TOSnaw3C1PBmlzp1wKk", "[auto]:v5zswz8F1WP0dBlfq2J", "[auto]:q3xI1KJFZ8w88Y2xI4F", "[auto]:JpNP0z6zhKtg0fmrbsl", "[auto]:C1zLBWs68i8pyCWubKl", "[auto]:LNCk4irGX8ZDeobvwAv"]
    },
    "token": "eyJhbGciOiJIUzUxMiJ9.eyJpc3MiOiJjbGV2ZXItc2VjdXJpdHktand0IiwiYXVkIjoiY2xldmVyLSoiLCJzdWIiOiJsaXp3IiwiZXhwIjoxNTY1MDM0MzAwLCJpYXQiOjE1NjQ0NjQzMjIsImp0aSI6IjM1MzU3MDgzNjkwMjMxMzk4NCIsInBlcm1pc3Npb25zIjpbIlthdXRvXTpMTkNrNGlyR1g4WkRlb2J2d0F2IiwiW2F1dG9dOkpwTlAwejZ6aEt0ZzBmbXJic2wiLCJbYXV0b106cTN4STFLSkZaOHc4OFkyeEk0RiIsIlthdXRvXTpDMXpMQldzNjhpOHB5Q1d1YktsIiwiW2F1dG9dOlFOaWZBdFBwVVJ0d0lUZDVramwiLCJbYXV0b106djV6c3d6OEYxV1AwZEJsZnEySiIsIlthdXRvXTpUT1NuYXczQzFQQm1senAxd0trIiwiW2F1dG9dOmZHSlYyaGIxR21zMlMyZzdOM0UiXSwicm9sZXMiOltdfQ.STuvKXlUNsZvtHBApQnYbjUQRUpNswvJm2O0j6W-WlcEsatx_dgNA0jOVtkTAOx1iKn-WDxOwzjM-NZ4Cmum6Q",
    "refreshToken": "lizw:d6PDuGz5gj4Cor8CZg8"
}

{
    "success": true,
    "message": "登录成功",
    "timestamp": 1564464322777,
    "needCaptcha": true,
    "user": {
        "username": "",
        "telephone": "",
        "email": "",
        "userType": 0,
        "roleNames": [],
        "authorities": []
    },
    "token": "",
    "refreshToken": ""
}

当前用户

{
    "username": "",
    "telephone": "",
    "email": "",
    "userType": 0,
    "roleNames": [],
    "authorities": []
}

登出

{
    "success": true,
    "message": "登录成功",
    "timestamp": 1564464322777,
    "user": {
        "username": "",
        "telephone": "",
        "email": "",
        "userType": 0,
        "roleNames": [],
        "authorities": []
    }
}
文档更新时间: 2019-07-30 17:45   作者:lizw