新書推薦:
《
东欧史(全二册)-“中间地带”的困境
》
售價:NT$
1010.0
《
虚拟资本:金融怎样挪用我们的未来
》
售價:NT$
352.0
《
刻意练习不生气
》
售價:NT$
179.0
《
大宋理财:青苗法与王安石的金融帝国(全彩插图本)
》
售價:NT$
500.0
《
安全感是内心长出的盔甲
》
售價:NT$
305.0
《
快人一步:系统性能提高之道
》
售價:NT$
505.0
《
我们为什么会做梦:让梦不再神秘的新科学
》
售價:NT$
352.0
《
算法图解(第2版)
》
售價:NT$
356.0
|
內容簡介: |
随着互联网的普及,合作共赢成了一个越来越受重视的话题。一些成熟的互联网企业,需 要与众多的第三方企业进行合作,以便为自己的用户提供丰富的个性化应用。在这个过程中, 企业需要将自身的一些能力(API)开放给第三方合作企业,具体的实现形式一般是搭建一个 专门的开放平台系统。无论企业通过何种方式来开放自身的能力,授权都是一个绕不开的话题。本书将通过 8 章 来详细对授权的相关内容进行阐述,主要内容包括 OAuth 2 概述、开放平台整体架构、实战中 的授权模式、OpenID 从理论到实战、授权码授权模式回调地址实战、签名、授权信息、基于 Spring Security 的 OAuth 2 实战。
|
關於作者: |
糜鹏程,京东零售担任高级工程师,主要负责开发平台相关的研发工作,对开放平台中各系统的具体实现有深入研究,目前担任开发和维护的JOS网关系统,日活调用量50亿左右。
|
目錄:
|
目录第1章 OAuth2概述......................................................................11.11.2OAuth 2 的定义 ·········································································.2 1.1.1 官方定义.................................................................................................................2 1.1.2 开放平台中的定义 .................................................................................................2 OAuth 2 的四种授权模式 ·····························································.31.2.1 隐式授权模式.........................................................................................................31.2.2 授权码授权模式 .....................................................................................................51.2.3 授信客户端密码模式 ...........................................................................................101.2.4 授信客户端模式 ...................................................................................................12第2章 开放平台整体架构.............................................................152.1 2.22.32.4功能架构 ···············································································.16 API 网关系统··········································································.182.2.1 API 整体架构 .......................................................................................................182.2.2 API 网关与授权系统的关系................................................................................19控制台系统 ············································································.20 2.3.1 功能概述...............................................................................................................20 2.3.2 控制台系统与授权系统的关系 ...........................................................................20 服务市场 ···············································································.21第3章 实战中的授权模式.............................................................223.13.2 3.3授权码授权模式的应用 ·····························································.233.1.1 获取 code ..............................................................................................................233.1.2 获取授权信息.......................................................................................................273.1.3 刷新授权信息.......................................................................................................30用户名密码授权码授权模式的应用 ··············································.31 授信客户端密码模式的应用 ·······················································.333.43.5授信客户端模式的应用 ·····························································.343.4.1 标准授信客户端模式 ...........................................................................................343.4.2 自研应用...............................................................................................................353.4.3 自研授信客户端授权 ...........................................................................................35插件化授权模式的应用 ·····························································.36 3.5.1 普通应用场景.......................................................................................................37 3.5.2 官方应用场景.......................................................................................................42第4章 OpenID从理论到实战.......................................................484.14.24.34.44.5OpenID 概述···········································································.494.1.1 OpenID 定义 .........................................................................................................494.1.2 OpenID 使用流程 .................................................................................................504.1.3 OpenID 与 OAuth 2 ..............................................................................................52基于自增 ID 的 OpenID 方案·······················································.534.2.1 概述.......................................................................................................................534.2.2 基于单机模式下自增 ID 的实现方案 .................................................................544.2.3 基于雪花算法的 OpenID 生成方案 ....................................................................554.2.4 基于自增 ID 的 OpenID 生成方案总结 ..............................................................56基于 Hash 算法的 OpenID 方案····················································.574.3.1 概述.......................................................................................................................574.3.2 Hash 算法简介......................................................................................................574.3.3 使用 Hash 函数计算 OpenID ...............................................................................584.3.4 基于 Hash 算法的 OpenID 方案总结 ..................................................................64基于对称加密算法的 OpenID 方案 ···············································.644.4.1 概述.......................................................................................................................644.4.2 对称加密算法简介 ...............................................................................................644.4.3 基于对称加密算法的 OpenID 实践 ....................................................................664.4.4 基于对称加密算法的 OpenID 方案总结 ............................................................68基于严格单调函数的 OpenID 方案 ···············································.694.5.1 相关概念...............................................................................................................694.5.2 基于严格单调函数的 OpenID 实践 ....................................................................704.5.3 基于严格单调函数的 OpenID 方案总结 ............................................................744.64.7 4.8基于向量加法的 OpenID 方案 ·····················································.754.6.1 UUID 简介............................................................................................................754.6.2 基于向量加法的 OpenID 实践 ............................................................................764.6.3 矩阵乘法思路扩展 ...............................................................................................79OpenID 小结················································
|
|