- architecture/: overview, technology stack, auth (OIDC + built-in IndieAuth), syndication (POSSE) rewritten; new database.md, deployment.md and indieweb-protocols.md; legacy stack marked historical - decisions/: reconstructed ADR-060 and ADR-063; 31 status corrections (superseded auth ADRs, proposed -> accepted); INDEX rebuilt - design/: reconstructed the v1.6.0 documents the webmention code cites; reports for 18 v2 releases without a design folder; INDEX rebuilt - projectplan/: BACKLOG rewritten (shipped items removed, open issues from the reviews added); RELEASE.md for v2.0.0-v2.10.1; INDEX - standards/: development setup (uv, tests, DEV_MODE), testing (CI test stage), git and release flow, versioning, coding standards, cookies - README, CLAUDE.md, .env.example (every setting the code reads, with defaults) brought up to date - 137 broken links repaired (old absolute paths, moved files); stale ADR references in code comments corrected (comments only) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
3.5 KiB
ADR-023: IndieAuth Client Identification Strategy
Status
Superseded by ADR-064 (was: Accepted)
StarPunk is now a registered OIDC client for login and publishes no h-app. (status updated 2026-11-03)
Context
StarPunk needs to identify itself as an IndieAuth client when initiating authentication flows. The current implementation uses a hidden h-app microformat which causes IndieAuth services to reject the client_id with "This client_id is not registered" errors.
IndieAuth specification requires clients to provide discoverable information about themselves using microformats. This allows authorization endpoints to:
- Display client information to users
- Verify the client is legitimate
- Show what application is requesting access
Decision
StarPunk will use visible h-app microformats in the footer of all pages to identify itself as an IndieAuth client.
The h-app will include:
- Application name (p-name)
- Application URL (u-url)
- Version number (p-version)
- Optional: logo (u-logo)
- Optional: description (p-summary)
Implementation:
<footer>
<div class="h-app">
<p>
Powered by <a href="https://starpunk.thesatelliteoflove.com" class="u-url p-name">StarPunk</a>
<span class="p-version">v0.6.1</span>
</p>
</div>
</footer>
Rationale
- Specification Compliance: IndieAuth spec requires client information to be discoverable via microformats parsing
- Transparency: Users should see what software they're using
- Simplicity: No JavaScript or complex rendering needed
- Debugging: Visible markup is easier to verify and debug
- SEO Benefits: Search engines can understand the application structure
Consequences
Positive
- IndieAuth flows will work correctly
- Client identification is transparent to users
- Easier to debug authentication issues
- Follows IndieWeb principles of visible metadata
- Can be styled to match site design
Negative
- Takes up visual space in the footer (minimal)
- Cannot be completely hidden from view
- Must be maintained on all pages that might be used as client_id
Alternatives Considered
1. Hidden h-app with display:none
Rejected: Some microformat parsers ignore display:none elements
2. Off-screen positioning
Rejected: Considered deceptive by some services, accessibility issues
3. Separate client information endpoint
Rejected: Adds complexity, not standard practice
4. HTTP headers
Rejected: Not part of IndieAuth specification, wouldn't work
5. Meta tags
Rejected: IndieAuth uses microformats, not meta tags
Implementation Guidelines
- Placement: Always in the footer, consistent across all pages
- Styling: Subtle but visible, matching site design
- Content: Minimum of name and URL, optional logo and description
- Testing: Verify with microformats parsers before deployment
Testing Checklist
- h-app is visible in HTML source
- No hidden, display:none, or visibility:hidden attributes
- Validates at https://indiewebify.me/
- Parses correctly at https://microformats.io/
- IndieAuth flow works at https://indielogin.com/
References
Related ADRs
- ADR-003: Authentication Strategy (establishes IndieAuth as auth method)
- ADR-004: Frontend Architecture (defines template structure)