The Role of APIs in Microservices
Chapter 2: Designing Security for APIs
Psychological Acceptability
Chapter 3: Securing APIs with Transport Layer Security (TLS)
Setting Up the Environment
Securing Order API with Transport Layer Security (TLS)
Protecting Order API with Mutual TLS
Running OpenSSL on Docker
Chapter 4: OAuth 2.0 Fundamentals
Authorization Code Grant Type
Resource Owner Password Credentials Grant Type
Client Credentials Grant Type
How to Pick the Right Grant Type?
OAuth 2.0 Bearer Token Profile
JWT Secured Authorization Request (JAR)
Pushed Authorization Requests (PAR)
Chapter 5: Edge Security with an API Gateway
Setting Up Zuul API Gateway
Running the Zuul API Gateway
Enabling TLS for the Zuul API Gateway
Enforcing OAuth 2.0 Token Validation at the Zuul API Gateway
Setting Up an OAuth 2.0 Security Token Service (STS)
Testing OAuth 2.0 Security Token Service (STS)
Setting Up Zuul API Gateway for OAuth 2.0 Token Validation
Enabling Mutual TLS Between Zuul API Gateway and Order Service
Securing Order API with Self-Contained Access Tokens
Setting Up an Authorization Server to Issue JWT
Protecting Zuul API Gateway with JWT
The Role of a Web Application Firewall (WAF)
Chapter 6: OpenID Connect (OIDC)
Amazon Still Uses OpenID 2.0
Understanding OpenID Connect
Requesting User Attributes
Requesting Custom User Attributes
OpenID Connect Identity Provider Metadata
Dynamic Client Registration
OpenID Connect for Securing APIs
Chapter 7: Message-Level Security with JSON Web Signature
Understanding JSON Web Token (JWT)