JSON Web Tokens

JSON Web Tokens (JWT) is pronounced JOT. It is a well-defined JSON schema or format to describe the tokens involved in a data exchange process. JWTs are described in RFC 7519.

JWTs are not tied to either OpenID Connect or OAuth 2.0. This means they can be used independently, irrespective of OAuth 2.0 or OpenID Connect. OpenID Connect mandates the use of a JWT for all the tokens that are exchanged in the process. In OAuth 2.0, the use of JWTs isn't mandated but a kind of de facto implementation format. Moreover, the .NET framework has in-built support for JWT.

The purpose of a JWT-based security token is to produce a data structure that contains information about the issuer and the recipient along with a description of the ...

Get Building Microservices with .NET Core now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.