Skip to content

Add consent, public clients, and refresh-token reuse detection - #4

Open
joneja09 wants to merge 1 commit into
cursor/client-admin-secret-hashing-b700from
cursor/consent-public-token-reuse-b700
Open

Add consent, public clients, and refresh-token reuse detection#4
joneja09 wants to merge 1 commit into
cursor/client-admin-secret-hashing-b700from
cursor/consent-public-token-reuse-b700

Conversation

@joneja09

Copy link
Copy Markdown
Owner

Depends on #3.

Completes the remaining self-hosted auth work (without Duende):

  • Consent screen at /consent before an authorization code is issued (remembered per user + client + scopes)
  • Public clients (requireClientSecret: false) — PKCE required, no client secret, no client_credentials grant. Seeded as demo-spa
  • Refresh-token reuse detection — tokens belong to a family; presenting a rotated token revokes the whole family

Tests

dotnet test: 14 passed.

Open in Web Open in Cursor 

Show a consent screen before issuing authorization codes, support public SPA clients that use PKCE without a secret, and revoke a refresh-token family if a rotated token is presented again.

Co-authored-by: Jeff Jones <joneja09@users.noreply.github.com>
@joneja09
joneja09 marked this pull request as ready for review August 26, 2026 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants