liveBook · Manning

Security pattern

As explained in Microservices Patterns, Second Edition

A pattern category for protecting communication and services in a distributed architecture.

Security patterns address the challenge of securing communication in a microservice architecture. An API gateway authenticates users, then passes user information to the services it invokes. section 7.6.2

The access token pattern carries user information from the gateway to services:

  • The gateway includes an access token, such as a JWT, in each service request. section 7.6.2
  • Each service validates the token and extracts information about the user, such as identity and roles. section 7.6.2

How Microservices Patterns, Second Edition covers it

How deep it goes
Defines the access-token flow at a high level, leaving implementation details unspecified.
Examples
Uses a JWT as an example token passed from an API gateway to a service.
What it assumes
Assumes an API gateway authenticates users before invoking services.
What you can do after
Apply the access token pattern by passing tokens in requests and validating them at services.
How it connects
Connects access tokens with API gateways, user authentication, and microservice communication.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Microservices Patterns, Second Edition. The section links point to the parts of the book it draws on.