Skip to content

[P0-2][CRITICAL] Implement JWT refresh token with rotation #4

@cct08311github

Description

@cct08311github

TokenService.cs returns RefreshToken = "". No refresh mechanism.

Fix

  • Add RefreshTokenEntity, implement rotation with reuse detection
  • Expand ITokenService with RefreshTokenAsync, RevokeTokenAsync
  • Add API endpoints: POST /api/_account/refreshtoken, POST /api/_account/revoketoken
  • Apply DbSet to all demo DataContexts
  • DB migration: CREATE TABLE FrameworkRefreshTokens

Risk: Low (additive) | Effort: 2-3 days

Metadata

Metadata

Assignees

No one assigned

    Labels

    P0Critical prioritysecuritySecurity related

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions