Authn & Authz for Microservice: Docs Index
·
Explanation and walkthrough authn/authz for microservice system with a sample mobile-banking PoC.
The story in one paragraph
A client logs in via Keycloak (IdP) and gets a JWT. It calls the banking API throughKong (gateway / PEP). Kong introspects the token with Keycloak, then asks OPA (PDP)
whether this caller may take this action. If allowed, Kong forwards the request tobanking-api-service (resource server), which independently re-validates the JWT before
returning data. alice can read only her own accounts; ops-admin can read any account.
Reading map
Part I — Foundations
- 01 — Concepts — authn/authz, IdP, PEP, PDP, JWT (start here)
- 02 — This Project Architecture — how the concepts map to components
- 03 — Request Flows — the end-to-end stories
- 04 — Local Demo Guide — run it and watch it work
Part II — Component Deep Dives
- 05 — Component Tour — one-paragraph map of all five components
- 06 — Keycloak / IdP — the IdP that issues tokens
- 07 — Kong — the gateway / PEP and its OPA plugin
- 08 — OPA — the PDP and its Rego policy
- 09 — banking-api-service — the resource server that re-validates
- 10 — identity-bootstrap-service — demo user setup
Part III — Token Mechanics
- 11 — JWT Signature, Validation & Introspection — signature, validation, introspection
- 12 — JWKS Deep Dive — JWK/JWKS and key selection by
kid - 13 — Access & Refresh Token Lifecycle — access/refresh tokens and renewal
Part IV — Reference
- 14 — Request & Response Details — wire-level headers, bodies, claims
Where to start
- New to the topic → 01 — Concepts
- Want the system fast → 02 — Architecture + 03 — Request Flows + 04 — Demo Guide
- Need wire-level payloads → 14 — Request & Response Details
Design and planning docs
- Docs reorganization — design
- Docs reorganization — plan
- Mobile-banking auth — design
- Mobile-banking auth — plan
openEuler 是由开放原子开源基金会孵化的全场景开源操作系统项目,面向数字基础设施四大核心场景(服务器、云计算、边缘计算、嵌入式),全面支持 ARM、x86、RISC-V、loongArch、PowerPC、SW-64 等多样性计算架构
更多推荐

所有评论(0)