Changeset 603d246 in Klonkt for src/views/pages/paid-gate.ejs

Timestamp:
07/21/2026 01:54:46 AM (7 weeks ago)
Author:
Robin <roboburr@…>
Branches:
main
Children:
c3d12a6
Parents:
e685f55
git-author:
Robin <roboburr@…> (07/21/2026 01:54:34 AM)
git-committer:
Robin <roboburr@…> (07/21/2026 01:54:46 AM)
Message:

Feature: show the exact Patreon redirect URI in the paid admin

Bart hit Patreon's own error page ("Redirect URI .../paid/callback is not
supported by client") because the redirect URI our OAuth flow sends was
never whitelisted in his Patreon client, and the admin page told him
nowhere what that URI is. Once we redirect to patreon.com with an
unregistered redirect_uri, Patreon refuses to send the visitor back (open
redirect protection) and shows its own JSON error, which we cannot skin.

The only real defence is correct setup, so the admin now shows the exact
redirect URI to paste into the Patreon client, with a copy button. The URI
is built the same way paid.js builds it (PUBLIC_BASE_URL or the request
host + /paid/callback), so they always match.

Changed files:
src/routes/admin-paid.js

  • compute redirectUri (matches paid.js) and pass it to the view

src/views/pages/admin-paid.ejs

  • "Zet deze redirect-URI in je Patreon-client" block + copy button

-robo
Co-Authored-By: Claude Opus 4.8 <noreply@…>

(No files)

Note: See TracChangeset for help on using the changeset viewer.