Test the OAuth well-known metadata MCP clients discover #143
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
CrowderSoup/vTodo!143
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "claude/oauth-metadata-tests"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
MCP clients find vTodo's OAuth endpoints through the RFC 8414 and RFC 9728 well-known documents (
/.well-known/oauth-authorization-serverand/.well-known/oauth-protected-resource, at the root and under/o/). django-oauth-toolkit serves them, but nothing in CI checked them.This adds
apps/api/tests/test_oauth_metadata.py, which checks that:/o, matching what the MCP server expects, and the authorize/token endpoints hang off itS256is supported, andimplicitandpasswordgrants stay out/o/forms describe the same authorization serverThe test was written in September (branch
task/114-oauth-metadata-coverage) and never merged. It's rebased onto today'smainunchanged; it's a test-only change with no app code touched.Tests
uv run pytest apps/api/tests/test_oauth_metadata.py: 5 passed on the rebased branch.🤖 Generated with Claude Code