zoukankan      html  css  js  c++  java
  • spring-oauth-server实践:授权方式三:PASSWORD模式下 authorities:ROLE_{user.privillege}, ROLE_USER

    一、数据库配置

    1、oauth_client_details

    2、user_

    3、user_privillege

    二、password模式 授权过程

    1、授权者granter和请求参数

    ResourceOwnerPasswordTokenGranter

    org.springframework.security.oauth2.provider.password.ResourceOwnerPasswordTokenGranter@38b5f6bc

    请求参数信息

    2、创建access_token

    2.1、先创建OAuth2Authentication对象

       

    2.2、认证时获取权限列表

     

     默认ROLE_USER的添加

    3、创建access_token对象和refresh_token对象

    3.1、创建access_token和refresh_token对象

     

    3.2、保存access_token对象,同时保存oauth2Authentication对象

     其中,对access_token串摘要获得access_token对象存储主键!!!!!!

     

  • 相关阅读:
    HTTPS
    RPC
    2017.4.19上午
    2017.4.18下午
    2017.4.18上午
    2017.4.17下午
    2017.4.17上午
    2017.4.14下午
    2017.4.14上午
    2017.4.13下午
  • 原文地址:https://www.cnblogs.com/lexiaofei/p/7151816.html
Copyright © 2011-2022 走看看