Leanpub Header

Skip to main content

数字身份认证技术与实践

从概念到实战的深入理解

数字身份认证技术与实践
This book is 100% completeLast updated on 2023-12-10

本书最大的特点是全部案例都有开源的在线可运行的版本,对于一些企业特定的不便直接开源的系统,都写了一个最小化的开源版本。

案例丰富、但并非代码充斥,而是仅给予核心代码和详细说明,对于完整项目,都附有相关的仓库链接。

Minimum price

$19.00

$29.00

You pay

Author earns

$

Also available for 1 book credit with a Reader Membership

PDF
569
Pages
About

About

About the Book

探索身份认证的艺术:从理论精粹到实战精华

在这个数字化时代,身份认证不仅是保障信息安全的第一道防线,也是构建可信赖系统的核心。《数字身份认证技术与实践:从概念到实战的深入理解》是一本专为具备一定编程背景的专业人士和热情爱好者打造的宝典,旨在将您从业界的一线开发者转变为站在技术巨人肩上的先锋。

本书精心设计了四个部分,每一部分都是精心策划的学习之旅:

  • 理论精粹:我们首先带您探索身份认证的核心机制和安全学的基础知识,接着深入剖析行业内的标准协议和一流解决方案。
  • 实战精华:转入动手实践,本部分将引导您实施企业级身份认证方案,以模块化的章节设计,让您根据需要选择深入或浏览,确保每一步都紧跟实际应用。
  • 高级探索:为那些追求极致的专家们准备,这一部分揭示了更为复杂的身份认证框架,适合已经部署相关系统架构的开发者。
  • 未来视角:最后,我们将目光投向未来,为您揭示身份认证技术的新趋势,确保您在学习路径上始终领先一步。

本书的亮点在于其实用性——所有案例均提供开源的在线运行版本,让您可以即刻动手实验。对于那些难以公开的企业特定系统,我们提供了精简的开源实现。案例丰富而不泛滥,我们只提供核心代码和精要解释,并为完整项目附上了代码仓库链接。

无论您是寻求加固现有知识体系,还是希望在身份认证领域取得突破,这本书都将成为您不可或缺的伴侣。立即开启您的学习之旅,与我们一起,深入身份认证的世界,掌握保护数字身份的关键技术。

Author

About the Author

田杰

喜欢解决问题的程序员。


Contents

Table of Contents

目录

  • 第 1 部分:身份认证的基础概念 ​
  • 第 1 章:什么是身份认证 ​
  • 1.1 身份认证简介以及和授权的联系与区别 ​
  • 1.2 认证目标对象有哪些 ​
  • 1.3 认证场景有哪些 ​
  • 1.4 常用术语有哪些 ​
  • 1.5 小结 ​
  • 第 2 章:认证机制与相关算法 ​
  • 2.1 认证的基本原理,怎么证明你是谁 ​
  • 2.2 计算机安全学基础 ​
  • 2.3 常用算法 ​
  • 2.4 jwt 结构化令牌详解 ​
  • 2.5 小结 ​
  • 第 3 章:认证解决方案 ​
  • 3.1 云解决方案 ​
  • 3.2 开源解决方案 ​
  • 3.3 小结 ​
  • 第 2 部分:身份认证的实战应用 ​
  • 第 4 章:纯前端应用如何接入身份认证 ​
  • 4.1 实例讲解 ​
  • 4.2 安全性分析 ​
  • 4.3 小结 ​
  • 第 5 章:BFF 如何接入身份认证 ​
  • 5.1 BFF 架构的演进回顾 ​
  • 5.2 BFF 中的身份认证实现方式 ​
  • 5.3 BFF 中的身份认证流程 ​
  • 5.4 示例代码 ​
  • 5.5 实例讲解 ​
  • 5.6 小结 ​
  • 第 6 章:后端领域服务如何接入身份认证 ​
  • 6.1 领域服务和 BFF 有什么区别 ​
  • 6.2 实例讲解 ​
  • 6.3 小结 ​
  • 第 7 章:成熟的产品如何接入身份认证 ​
  • 7.1 在自托管 GitLab 实例中集成 Keycloak 登录 ​
  • 7.2 Keycloak 互相集成 ​
  • 7.3 用 oidc 方式在 keycloak 中集成阿里云登录方式 ​
  • 7.4 小结 ​
  • 第 8 章:社交登录实战 ​
  • 8.1 在 Keycloak 里集成 GitHub 登录 ​
  • 8.2 在 IdentityServer 中添加 GitHub 登录 ​
  • 8.3 在 Duende IdentityServer 中集成 Epic Games 登录 ​
  • 8.4 三步开发社交账号登录 ​
  • 8.5 小结 ​
  • 第 9 章:本部分的总结回顾 ​
  • 9.1 对接身份认证的一般套路 ​
  • 9.2 以 Keycloak 为例做个梳理 ​
  • 9.3 以一个集成测试结束 ​
  • 第 3 部分:高级主题 ​
  • 第 10 章:如何在微信小程序中集成认证平台 ​
  • 10.1 和 Web 相比,微信小程序有哪些限制 ​
  • 10.2 Web View 如何安全地取得小程序原生身份信息 ​
  • 10.3 个人版小程序如何对接身份认证平台 ​
  • 10.4 小结 ​
  • 第 11 章:GraphQL 身份认证 ​
  • 11.1 GraphQL 简介 ​
  • 11.2 在 GraphQL 中如何实现身份认证 ​
  • 11.3 小结 ​
  • 第 12 章:如何实现单点登录和用户联邦 ​
  • 12.1 用户连接与用户联邦 ​
  • 12.2 单点登录实战 ​
  • 12.3 用户联邦实战 ​
  • 12.4 在 Duende IdentityServer 中实现用户联邦 ​
  • 12.5 小结 ​
  • 第 13 章:如何实现统一登出 ​
  • 13.1 仅退出当前应用 ​
  • 13.2 退出当前应用和登录平台 ​
  • 13.3 小结 ​
  • 第 14 章:灵活实现扫码登录 ​
  • 14.1 基于 Spring Security 实现公众号关注即登录 ​
  • 14.2 基于 keycloak 的公众号关注即登录方案 ​
  • 14.3 基于 Authing.cn 的关注微信公众号登录的实现方案 ​
  • 14.4 对接微信登录的三种方式 ​
  • 14.5 小结 ​
  • 第 15 章:多因素身份认证 ​
  • 15.1 你所拥有的东西 ​
  • 15.2 你所知道的东西 ​
  • 15.3 你本身就是生物识别因素 ​
  • 15.4 小结 ​
  • 第 16 章:设备码授权流程 ​
  • 16.1 对接 Keycloak 设备码授权流程 ​
  • 16.2 对接 Duende IdentityServer 的设备码授权流程 ​
  • 16.3 在网页中对接设备码授权流程 ​
  • 第 17 章:NONCE 模式与令牌交换流程 ​
  • 17.1 NONCE 模式 ​
  • 17.2 令牌交换流程 ​
  • 第 4 部分:身份认证的趋势与展望 ​
  • 第 18 章:趋势与展望 ​
  • 18.1 OIDC 的新特性 ​
  • 18.2 Passkey 技术 ​
  • 18.3 FIDO ​
  • 18.4 FIDO2 和 WebAuthn ​
  • 18.5 基于零信任的身份认证 ​
  • 18.6 分布式身份认证 ​
  • 18.7 隐私保护和数据安全 ​
  • 18.8 AI 技术的应用 ​
  • 18.9 小结 ​
  • 结语 ​
  • 参考书目 ​

Also by the Author

Also by the Author

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub