• OAuth 2实战宝典
21年品牌 40万+商家 超1.5亿件商品

OAuth 2实战宝典

正版保障 假一赔十 可开发票

47.05 6.3折 75 全新

库存22件

广东广州
认证卖家担保交易快速发货售后保障

作者糜鹏程编著

出版社电子工业出版社

ISBN9787121467561

出版时间2023-12

装帧平装

开本其他

定价75元

货号14596715

上书时间2024-12-30

灵感书店

三年老店
已实名 已认证 进店 收藏店铺

   商品详情   

品相描述:全新
商品描述
作者简介
糜鹏程,京东零售担任高级工程师,主要负责开发平台相关的研发工作,对开放平台中各系统的具体实现有深入研究,目前担任开发和维护的JOS网关系统,日活调用量50亿左右。

目录
目录 第1章 OAuth2概述......................................................................1 1.1 1.2 OAuth 2 的定义 ·········································································.2 1.1.1 官方定义.................................................................................................................2 1.1.2 开放平台中的定义 .................................................................................................2 OAuth 2 的四种授权模式 ·····························································.3 1.2.1 隐式授权模式.........................................................................................................3 1.2.2 授权码授权模式 .....................................................................................................5 1.2.3 授信客户端密码模式 ...........................................................................................10 1.2.4 授信客户端模式 ...................................................................................................12 第2章 开放平台整体架构.............................................................15 2.1 2.2 2.3 2.4 功能架构 ···············································································.16 API 网关系统··········································································.18 2.2.1 API 整体架构 .......................................................................................................18 2.2.2 API 网关与授权系统的关系................................................................................19 控制台系统 ············································································.20 2.3.1 功能概述...............................................................................................................20 2.3.2 控制台系统与授权系统的关系 ...........................................................................20 服务市场 ···············································································.21 第3章 实战中的授权模式.............................................................22 3.1 3.2 3.3 授权码授权模式的应用 ·····························································.23 3.1.1 获取 code ..............................................................................................................23 3.1.2 获取授权信息.......................................................................................................27 3.1.3 刷新授权信息.......................................................................................................30 用户名密码授权码授权模式的应用 ··············································.31 授信客户端密码模式的应用 ·······················································.333.4 3.5 授信客户端模式的应用 ·····························································.34 3.4.1 标准授信客户端模式 ...........................................................................................34 3.4.2 自研应用...............................................................................................................35 3.4.3 自研授信客户端授权 ...........................................................................................35 插件化授权模式的应用 ·····························································.36 3.5.1 普通应用场景.......................................................................................................37 3.5.2 官方应用场景.......................................................................................................42 第4章 OpenID从理论到实战.......................................................48 4.1 4.2 4.3 4.4 4.5 OpenID 概述···········································································.49 4.1.1 OpenID 定义 .........................................................................................................49 4.1.2 OpenID 使用流程 .................................................................................................50 4.1.3 OpenID 与 OAuth 2 ..............................................................................................52 基于自增 ID 的 OpenID 方案·······················································.53 4.2.1 概述.......................................................................................................................53 4.2.2 基于单机模式下自增 ID 的实现方案 .................................................................54 4.2.3 基于雪花算法的 OpenID 生成方案 ....................................................................55 4.2.4 基于自增 ID 的 OpenID 生成方案总结 ..............................................................56 基于 Hash 算法的 OpenID 方案····················································.57 4.3.1 概述.......................................................................................................................57 4.3.2 Hash 算法简介......................................................................................................57 4.3.3 使用 Hash 函数计算 OpenID ...............................................................................58 4.3.4 基于 Hash 算法的 OpenID 方案总结 ..................................................................64 基于对称加密算法的 OpenID 方案 ···············································.64 4.4.1 概述.......................................................................................................................64 4.4.2 对称加密算法简介 ...............................................................................................64 4.4.3 基于对称加密算法的 OpenID 实践 ....................................................................66 4.4.4 基于对称加密算法的 OpenID 方案总结 ............................................................68 基于严格单调函数的 OpenID 方案 ···············································.69 4.5.1 相关概念...............................................................................................................69 4.5.2 基于严格单调函数的 OpenID 实践 ....................................................................70 4.5.3 基于严格单调函数的 OpenID 方案总结 ............................................................744.6 4.7 4.8 基于向量加法的 OpenID 方案 ·····················································.75 4.6.1 UUID 简介............................................................................................................75 4.6.2 基于向量加法的 OpenID 实践 ............................................................................76 4.6.3 矩阵乘法思路扩展 ...............................................................................................79 OpenID 小结···········································································.81 UnionID·················································································.83 4.8.1 UnionID 简介........................................................................................................83 4.8.2 UnionID 划分方案................................................................................................84 4.8.3 基于自增 ID 的 UnionID 方案.............................................................................86 4.8.4 基于 Hash 算法的 UnionID 方案.........................................................................88 4.8.5 基于对称加密算法的 UnionID 方案 ...................................................................90 4.8.6 基于严格单调函数的 UnionID 方案 ...................................................................92 4.8.7 基于向量加法的 UnionID 方案 ...........................................................................93 4.8.8 UnionID 总结........................................................................................................95 第5章 授权码授权模式回调地址实战...........................................97 VIII 5.1 5.2 5.3 5.4 5.5 普通回调地址 ·········································································.98 字符替换回调地址 ···································································.99 5.2.1 场景引入...............................................................................................................99 5.2.2 解决方案.............................................................................................................101 5.2.3 基于字符替换的回调地址方案总结 .................................................................106 自定义函数回调地址 ·······························································.106 5.3.1 FaaS 简介............................................................................................................106 5.3.2 FaaS 实践............................................................................................................108 5.3.3 自定义函数回调地址实践 .................................................................................109 code 生成方案 ········································································.112 5.4.1 基于随机数生成 code 方案................................................................................112 5.4.2 解决随机 code 冲突 ...........................................................................................114 5.4.3 基于 UUID 生成 code ........................................................................................116 code 消费··············································································.117 5.5.1 标准 code 消费策略 ...........................................................................................117 5.5.2 code 消费策略优化 ............................................................................................118第6章 签名................................................................................124 6.1 6.2 6.3 6.4 6.5 签名算法引入 ········································································.125 非对称加密简介 ·····································································.127 进一步探讨签名算法 ·······························································.128 常见的签名算法 ·····································································.129 6.4.1 非对称签名算法.................................................................................................129 6.4.2 开放平台实践中使用的签名算法 .....................................................................130 开放平台签名实例 ··································································.141 第7章 授权信息.........................................................................146 7.1 7.2 7.3 7.4 7.5 access_token 简介····································································.147 7.1.1 短生命周期的可刷新 access_token ...

—  没有更多了  —

以下为对购买帮助不大的评价

此功能需要访问孔网APP才能使用
暂时不用
打开孔网APP