liveBook · Manning

Access token pattern

As explained in Microservices Patterns, Second Edition

An authentication and authorization pattern in which a gateway passes a validated bearer token containing user information to invoked services.

In a microservice architecture, an API gateway typically authenticates users. The access token pattern carries user information, such as identity and roles, to invoked services: the gateway includes an access token, such as a JWT, in each request; each service validates the token and extracts the user information. section 7.6.2

How Microservices Patterns, Second Edition covers it

How deep it goes
Summarizes token passing, service-side validation, and information extraction without detailing their implementation.
Examples
Uses a JWT as an example of a token included in each service request.
What it assumes
Assumes an API gateway authenticates users in a microservice architecture.
What you can do after
Understand how a gateway propagates user information for invoked services to validate and extract.
How it connects
Connects API gateways, microservices, authentication, authorization, and JSON Web Tokens.

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.