feat: implement IndieAuth client discovery and URL validation
- Add IndieAuth metadata endpoint (/.well-known/oauth-authorization-server)
- Implement client information discovery (fetches metadata from client_id)
- Add URL validation per IndieAuth spec (profile & client URLs)
- Add redirect_uri validation against client's published metadata
- Add SSRF protection (blocks loopback address fetching)
- Add iss parameter to authorization responses
- Enforce PKCE for all clients (public and pre-registered)
- Update user profile instructions to include indieauth-metadata link
- Update documentation with discovery flow and security requirements
This fixes sign-in issues with modern IndieAuth clients and prevents
open redirect vulnerabilities by validating redirect URIs.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>