Skip to content
José da Cruz

Enterprise Architect, and Life Thinker

José da Cruz

Enterprise Architect, and Life Thinker

Token-Based Authentication

josedacruz, July 7, 2023July 7, 2023

Token-Based Authentication

is a method of authentication that relies on the use of tokens to grant access to resources.

  • Token information: username, roles, permissions, expiration date, metadata
  • Can be signed with a secret key or using a public-private key pair (authenticity).
  • The user starts to authenticate and receives a token from the server for future access.
  • The user (device) only needs to authenticate once, and then he presents the token.
  • Supports OAuth2, JWS, OpenID, and others
  • Pros: stateless, the server doesn’t store user information in the session (scalability).
  • Pros: secure, the token is encrypted and signed.
  • Pros: If the token is stolen it has a limited lifespan.
  • Pros: It is not dependent on specific devices, platforms, or domains.
  • Cons: deciding about token storage, expiration time, and size.

Related

architecture architectureauthenticationjwtoauth2openidsecuritytoken-based

Post navigation

Previous post
Next post

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

  • architecture (154)
  • artificial-intelligence (6)
  • books (2)
  • courses (4)
  • decision-frameworks (4)
  • finances (1)
  • java (8)
  • life-improvement (20)
  • metrics (3)
  • observability (2)
  • puzzles and challenges (3)
  • reviews (1)
  • security (8)
  • spring-boot (36)
  • Systems Thinking (3)
  • GitHub Weekly: MCP Tools Trending Right Now (September 28 – October 4, 2026)
  • The Bulkhead Pattern: Why One Slow Dependency Shouldn’t Sink the Whole Ship
  • Essential Reading: A Philosophy of Software Design — Fighting Complexity One Module at a Time
  • GitHub Weekly: Top 10 Trending Repos (September 21 – September 27, 2026)
  • The Volunteer Tax: Why Raising Your Hand in a Meeting Makes You the Permanent Owner
©2026 José da Cruz | WordPress Theme by SuperbThemes