Skip to Content
API Security in Action
book

API Security in Action

by Neil Madden
January 2021
Intermediate to advanced
576 pages
18h 9m
English
Manning Publications
Content preview from API Security in Action

6 Self-contained tokens and JWTs

This chapter covers

  • Scaling token-based authentication with encrypted client-side storage
  • Protecting tokens with MACs and authenticated encryption
  • Generating standard JSON Web Tokens
  • Handling token revocation when all the state is on the client

You’ve shifted the Natter API over to using the database token store with tokens stored in Web Storage. The good news is that Natter is really taking off. Your user base has grown to millions of regular users. The bad news is that the token database is struggling to cope with this level of traffic. You’ve evaluated different database backends, but you’ve heard about stateless tokens that would allow you to get rid of the database entirely. Without a database slowing ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Advanced API Security: OAuth 2.0 and Beyond

Advanced API Security: OAuth 2.0 and Beyond

Prabath Siriwardena
Logging in Action

Logging in Action

Phil Wilkins

Publisher Resources

ISBN: 9781617296024Supplemental ContentPublisher SupportOtherPublisher WebsiteSupplemental ContentPurchase Link