Skip to content

fix(indiekit): send the token to introspect in the request body - #1018

Merged
paulrobertlloyd merged 2 commits into
mainfrom
fix/indiekit-introspect-token-in-body
Oct 13, 2026
Merged

paulrobertlloyd merged 2 commits into
mainfrom
fix/indiekit-introspect-token-in-body

Conversation

@rmdes

@rmdes rmdes commented Oct 13, 2026

Copy link
Copy Markdown
Collaborator

Fixes #1017

introspectToken sends the token as a form-encoded token parameter in the POST body (RFC 7662 §2.1) instead of in the URL. The Authorization header is unchanged.

The introspection mocks now match that request (no query string, token in the body), so the existing introspectToken tests fail on main with Mock dispatch not matched for path '/introspect?token=JWT'. An endpoint-auth test covers the other side: a token sent only in the body is accepted.

@paulrobertlloyd
paulrobertlloyd force-pushed the main branch 2 times, most recently from 2f22f32 to b791821 Compare October 13, 2026 18:24
@paulrobertlloyd
paulrobertlloyd force-pushed the fix/indiekit-introspect-token-in-body branch from a8bc40f to 285dd2c Compare October 13, 2026 18:27
@paulrobertlloyd
paulrobertlloyd merged commit 2d43d60 into main Oct 13, 2026
2 checks passed
@paulrobertlloyd
paulrobertlloyd deleted the fix/indiekit-introspect-token-in-body branch October 13, 2026 18:56
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.

Access tokens are sent in the introspection URL, so they end up in access logs

2 participants