Repository navigation
fix(uxcore): Bob on Windrunner, sign in on Windrunner with a KeepSimple account - #263
Conversation
OpenAI retires custom GPTs on 11 December; Bob now lives on Windrunner. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
/sso/windrunner reads the visitor's existing KeepSimple session, has Strapi confirm it, and returns them to the Windrunner callback with an Ed25519-signed assertion (120 s, single nonce, aud windrunner.si). Visitors without a session get the usual sign-in modal and come back through the redirect cookie. The existing sign-in flow and stored sessions are untouched. Each request leaves one JSON log line with a hashed account id. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- An outage at Strapi no longer reads as a refused session. - A refused token is dropped the way the rest of the app drops it, so the sign-in that follows does not stall on the auth page. - Every failure leaves the loading screen: to the Windrunner callback when the server names it, back in history otherwise. - Late answers after the visitor left the page are ignored. - Closing the sign-in clears the return cookie; the cookie outlives an emailed sign-in link. - The assertion travels in the URL fragment, out of access logs. - email_verified only for Google and email-link sign-ins. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Only a Strapi 401 counts as a refused session; a 403 from a proxy or rule can no longer sign a visitor out. - The same-origin check compares against the host the request was served on, so it holds on every environment. - An account switch in another tab during the check restarts the check instead of vouching for the previous account. - A network failure in a tab with no history returns to the Windrunner callback instead of staying on the loading screen. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Claude finished @manager's task in 27s —— View job PR review: Bob on Windrunner and Windrunner SSO
AssessmentThe SSO bridge looks sound. I found no blocking issues. I read the code only. I did not run the app, the lint or any tests. What looks good
Inline comments
Other notes
|
| import Image from 'next/image'; | ||
| import { useRouter } from 'next/router'; | ||
| import React, { FC, useContext, useEffect, useState } from 'react'; | ||
| import Skeleton from 'react-loading-skeleton'; |
There was a problem hiding this comment.
This hunk reshuffles the whole import block and puts third-party packages (classnames, next/*, react) after the @uxcore/* aliases. That's the opposite of the repo's import order, and it looks like an unintended auto-sort. The PR only needs the bobUrl change, so please restore the original import block to keep the diff focused.
| why: entry.why, | ||
| status: entry.status, | ||
| user: entry.sub | ||
| ? createHash('sha256').update(entry.sub).digest('hex').slice(0, 12) |
There was a problem hiding this comment.
Nit: the comment says hashing means the log "never names a person", but a truncated unsalted SHA-256 of a small sequential integer id is trivially reversible by enumeration. Either salt it (HMAC with a server secret) or soften the claim.
| setShowLogIn(show); | ||
| if (!show) { | ||
| deleteRedirectCookie(); | ||
| router.back(); |
There was a problem hiding this comment.
Nit: router.back() when the visitor dismisses the sign-in modal can navigate off-site or do nothing if they landed here directly from Windrunner (no useful history). Consider sending them back to the Windrunner callback with error=access_denied&state=…, so the Windrunner side doesn't hang waiting on a login.
Bob moves off OpenAI custom GPTs, which close on 11 December, to windrunner.si/bob. KeepSimple accounts can now sign in on Windrunner.
/sso/windrunnerreads the visitor's existing session and has Strapi confirm it. It then returns the visitor to the Windrunner callback with a short-lived Ed25519-signed assertion carried in the URL fragment. A visitor without a session gets the usual sign-in modal.WINDRUNNER_SSO_PRIVATE_KEYin the runtime env. It is already present on prod and staging.Authorized for production by the owner on 2026-12-06.
🤖 Generated with Claude Code