Add option to not store access tokens/validate by signature

Created on 21 November 2022, over 2 years ago
Updated 27 January 2023, about 2 years ago

Problem/Motivation

Issues such as #3195129: Add indexes to the oauth2_token table β†’ reveal the costs of overhead involved in storing all access tokens and verifying them by ID. We already validate the signature of the provided token, and the user is loaded so we can also check their status at runtime. I think it would be interesting/helpful for many types of larger/high volume sites to not store access tokens but verify them by signature only. This would probably work fine in most applications with a sufficiently short TTL for access tokens (and also make it lower cost to have a lower TTL. Fewer things to revoke.) We could also implement some sort of revocation list to do runtime denial of tokens for users disabled/"logged out" before expiration.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

✨ Feature request
Status

Active

Version

6.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States bradjones1 Digital Nomad Life

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024