fix: Use ATproto localhost OAuth development mode

- Changed BLUESKY_CLIENT_ID to use http://localhost/ with redirect_uri parameter
- Updated magnitude.config.ts to use localhost:3000 for testing
- Removed public/client-metadata.json (no longer needed with localhost mode)
- Updated OAuth test to expect successful redirect to bsky.social

This leverages ATproto's special localhost client development mode which allows
local OAuth testing without requiring client metadata files.

See: https://atproto.com/specs/oauth#localhost-client-development

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-11-08 21:58:52 +00:00
parent 3779409298
commit bf163e2607
4 changed files with 11 additions and 25 deletions

View File

@@ -1,7 +1,7 @@
export default {
project: 'Ponderants',
// Use 127.0.0.1 instead of localhost per RFC 8252 for OAuth
url: 'http://127.0.0.1:3000',
// Use localhost for ATproto OAuth localhost development mode
url: 'http://localhost:3000',
// We will configure magnitude to find tests in this directory
tests: 'tests/magnitude/**/*.mag.ts',
};