Changeset 3ca24f9 in Klonkt


Ignore:
Timestamp:
06/20/2026 01:14:46 AM (3 months ago)
Author:
roboburr <roboburr@…>
Branches:
main
Children:
6fcd0cf
Parents:
3fb8390
Message:

ui(admin-google): clearer redirect URI instruction

Redirect URI shown in a prominent box with label, copyable URL, numbered
steps (Google Cloud Console → Credentials → OAuth client → Authorized
redirect URIs) and an exact-match warning (https, no trailing slash →
otherwise redirect_uri_mismatch).

Co-Authored-By: Claude <noreply@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/views/pages/admin-google.ejs

    r3fb8390 r3ca24f9  
    2727
    2828    <% if (google && google.redirectUri) { %>
    29       <p class="set-help" style="margin-bottom:.7rem">Zet deze <strong>exacte</strong> redirect-URI in je Google-client
    30         (Authorized redirect URIs):<br><code style="user-select:all"><%= google.redirectUri %></code></p>
     29      <div class="set-redirect">
     30        <div class="set-redirect-label">Redirect-URI — kopieer deze en plak 'm in Google</div>
     31        <code class="set-redirect-url" style="user-select:all"><%= google.redirectUri %></code>
     32        <ol class="set-redirect-steps">
     33          <li>Ga naar <a href="https://console.cloud.google.com/apis/credentials" target="_blank" rel="noopener">Google Cloud Console → APIs &amp; Services → Credentials</a>.</li>
     34          <li>Open jouw <strong>OAuth client-ID</strong> (type "Web application").</li>
     35          <li>Onder <strong>Authorized redirect URIs</strong> → klik <strong>+ ADD URI</strong> en plak de regel hierboven.</li>
     36          <li>Klik <strong>Save</strong> en wacht ~1 minuut.</li>
     37        </ol>
     38        <p class="set-redirect-warn">Moet <strong>exact</strong> kloppen: <code>https://</code> (geen <code>http</code>), juiste domein, en <strong>geen</strong> schuine streep aan het eind. Anders krijg je <em>"Error 400: redirect_uri_mismatch"</em>.</p>
     39      </div>
    3140    <% } else { %>
    3241      <p class="set-help" style="color:var(--accent)">Stel eerst <code>PUBLIC_BASE_URL</code> in — daar wordt de redirect-URI van afgeleid.</p>
     
    8291.alert { padding: 0.75rem 1rem; border-radius: 6px; margin-bottom: 1rem; }
    8392.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
     93.set-redirect { border: 1px solid var(--accent); border-radius: 10px; padding: 1rem; margin: 0 0 1.25rem; background: var(--paper); }
     94.set-redirect-label { font-weight: 700; font-size: 0.9rem; margin-bottom: 0.5rem; }
     95.set-redirect-url { display: block; padding: 0.6rem 0.8rem; background: var(--paper-2); border: 1px dashed var(--rule); border-radius: 6px; font-size: 0.9rem; word-break: break-all; }
     96.set-redirect-steps { margin: 0.85rem 0 0; padding-left: 1.3rem; font-size: 0.9rem; line-height: 1.55; color: var(--ink); }
     97.set-redirect-steps li { margin: 0.3rem 0; }
     98.set-redirect-steps a { color: var(--accent); }
     99.set-redirect-warn { margin: 0.85rem 0 0; font-size: 0.85rem; color: var(--ink-muted); }
     100.set-redirect-warn code { background: var(--paper-2); padding: 0.05rem 0.35rem; border-radius: 4px; }
    84101</style>
Note: See TracChangeset for help on using the changeset viewer.