Skip to content

feat(oauth_token): add OAuthToken model + migration#315

Merged
stakach merged 1 commit into
masterfrom
auth-replacement
May 20, 2026
Merged

feat(oauth_token): add OAuthToken model + migration#315
stakach merged 1 commit into
masterfrom
auth-replacement

Conversation

@stakach
Copy link
Copy Markdown
Member

@stakach stakach commented May 20, 2026

Persistence backing for the auth.cr AuthlyAdapter::TokenStore. Records metadata of each issued OAuth2 access / refresh token so:

  • /auth/revoke can mark a token revoked without rotating the JWT signing key
  • /auth/introspect can return cid/sub/scope/exp for a Bearer

Most columns nullable on purpose — authly generates refresh tokens without calling store_token_metadata even when persist_jwt_tokens is on, so revoking such a token writes a revoke-only row.

Persistence backing for the auth.cr AuthlyAdapter::TokenStore. Records
metadata of each issued OAuth2 access / refresh token so:
  * /auth/revoke can mark a token revoked without rotating the JWT
    signing key
  * /auth/introspect can return cid/sub/scope/exp for a Bearer

Most columns nullable on purpose — authly generates refresh tokens
without calling `store_token_metadata` even when `persist_jwt_tokens`
is on, so revoking such a token writes a revoke-only row.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@github-actions github-actions Bot added the type: enhancement new feature or request label May 20, 2026
@stakach stakach merged commit b370eb4 into master May 20, 2026
8 of 9 checks passed
@stakach stakach deleted the auth-replacement branch May 20, 2026 06:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: enhancement new feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant