[authz]模块用于管理client_details, user,以及获取access_token去访问 [resources] 模块的资源.

操作说明
  1. 登录系统,使用初始的账号 test/test 或去 Users 先创建用户, 这用于测试Shiro安全是否工作

    (test)
    (test)
     

  2. 在开始OAuth2之前, 建议先理解OAuth2支持的5类grant_type, 请访问 https://andaily.com/blog/?p=103, 或直接去看看OAuth2协议 http://oauth.net/2/

  3. 管理client_details, 在初始时创建了默认的管理client_details testmobile (见initial-db.ddl文件), 你可以去 client_details 创建新的client_details来测试.
    ----- client_details是OAuth2中一个核心的组件

  4. 查看 oauth_test.txt 文件并进行OAuth2的流程测试; 也可下载 spring-oauth-client 项目来测试OAuth2的流程

菜单