Leanpub Header

Skip to main content

数字身份认证技术与实践

从概念到实战的深入理解

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

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

Minimum price

$19.00

$29.00

You pay

$29.00

Author earns

$23.20
$

...Or Buy With Credits!

You can get credits monthly with a Reader Membership
PDF
569
Pages
About

About

About the Book

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

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

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

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

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

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

Author

About the Author

田杰

田杰,英文名 Jeff Tian,网名 哈德韦

资深全栈工程师,经历过创业、外包,也有多家外企工作经历。

喜欢解决各种编程问题,包括但不限于前后端软件开发、DevOps、敏捷交付、各种系统集成等。

擅长 nodejs,并对 java C# python 等也有上手经验。

对认证授权有一些见解,不局限于 Keycloak。

有积极的开源贡献。

Contents

Table of Contents

前言:不仅仅是登录注册

  1. 第一部分:身份认证的基础概念

第一章:什么是身份认证

  1. 1. 身份认证简介以及和授权的联系与区别
  2. 2. 认证目标对象有哪些?
  3. 3. 认证方式有哪些?
  4. 4. 认证场景有哪些?
  5. 5. 常用术语有哪些?

第二章:认证机制、安全协议与加密算法

  1. 1. 认证的基本原理,怎么证明你是谁?
  2. 2. 计算机安全学基础
  3. 3. 非对称加密在身份认证过程中有哪些应用?
  4. 4. jwt 结构化令牌详解、有哪些组成部分,以及如何防篡改?

第三章:认证解决方案

  1. 1. 用户名和密码认证
  2. 2. 双因素认证
  3. 3. 多因素认证
  4. 4. 单点登录
  5. 5. OAuth
  6. 1. 云解决方案
  7. 2. 开源解决方案
  8. 第二部分:身份认证的实战应用
  9. 第三章:Web应用身份认证
  10. 第四章:移动应用身份认证
  11. 第五章:物联网身份认证
  12. 第六章:区块链身份认证

第四章:纯前端应用如何接入身份认证

  1. 4.1. OAuth 2.0 和 OpenID Connect
  2. 4.2. JSON Web Token(JWT)
  3. 4.3. Single-Page Application(SPA)框架集成
  4. 1. 认识 oidc-client.js
  5. 2. 实例讲解
  6. 3. 安全性分析

第五章:前端代理服务器 BFF 如何接入身份认证

  1. 5.1 为什么需要前端代理服务器 BFF?
  2. 5.2 BFF 中的身份认证需求
  3. 5.3 BFF 中的身份认证实现方式
  4. 5.4 BFF 中的身份认证流程
  5. 5.5 示例代码
  6. 5.6. BFF 架构的演进回顾
  7. 5.7. 实例讲解

2.3. 如何在 Full BFF 中接入认证平台?

第六章:后端领域服务如何接入身份认证

  1. 1. 都运行在服务器上,领域服务和 BFF 有什么区别?
  2. 2. 实例讲解
  3. 第三部分:高级主题

7. 多因素认证

第七章:如何在微信小程序中集成认证平台?

  1. 7.1 认证平台选择与准备工作
  2. 1. 和 Web 相比,微信小程序有哪些限制?
  3. 2. 在小程序中, Web View 如何安全地取得小程序原生身份信息?
  4. 3. 个人版小程序如何对接身份认证平台?

第八章:GraphQL 身份认证

  1. 2. 在 GraphQL 中如何对接身份认证?

第九章:用户联邦与多租户

  1. 1. 如何在 Keycloak 中联邦 LDAP 用户源?
  2. 2. 如何基于 Keycloak 实现自定义的联邦源?
  3. 3. 在 Duende IdentityServer 中如何实现用户联邦?
  4. 4. 如何基于 Duende IdentityServer 实现多租户身份源?

第十章:如何实现单点登录?

  1. 1. 如何使用路径挂载子应用?
  2. 2. 如何使用子域名挂载子应用?
  3. 3. 跨根域名的单点登录该怎么做?

第十一章:如何实现统一登录?

  1. 1. 不使用 iframe 的微前端如何实现 token 隔离?
  2. 2. 同一身份如何跨站互认?
  3. 结语:身份认证的未来趋势与展望

1. 多因素身份认证

2. 基于零信任的身份认证

3. 分布式身份认证

4. 隐私保护和数据安全

5. AI 技术的应用

  1. 参考书目

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.

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

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.)

In fact, authors have earned over $14 million writing, publishing and selling 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