gitoria

ident

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commita4887ea3a4887ea3ident#47: the selector's sign-in frame no longer has a Continue button; the identity row itself is the link (gate tests/signin.mjs fails on the old code)mrea4887ea3/components/home.hl

21.3 KB

  1. // components/home.hl — `/` and `/signin/:rid`: ALL OF IDENT (pieces 1+2, tickets #24 #25;
  2. // CONCEPT.md).
  3. // Signed out: email → a six-digit code by mail → signed in. There is no registration:
  4. // the first right code for an address creates the account with a DEFAULT IDENTITY, then
  5. // this page shows that identity's name fields and says they are optional (Skip).
  6. // Signed in: the account's identities (list, new, edit, delete — never the last one)
  7. // and its time zone (the browser's at the first login; changeable here).
  8. //
  9. // Under `/signin/<rid>` the page belongs to an APP'S LOGIN BUTTON (lib/apps.hl requestOf):
  10. // it names the app, signs in to ident if needed, then asks WHICH IDENTITY the app gets
  11. // (with a single identity it still shows which one, one click) and sends the browser back
  12. // to the app with a one-time code. Managing identities stays on `/`.
  13. //
  14. // Every step takes the server's answer from the CALL (the value form of emit): it rides
  15. // the ack, over the socket or the POST fallback.
  16. parent './main.hl'
  17. import { accountOfSession, setTimeZone, signOutEverywhere } from '../lib/accounts.hl'
  18. import { recordPending, dropPending, signInWithCode } from '../lib/login.hl'
  19. import { identityRows, createIdentity, updateIdentity, deleteIdentity } from '../lib/identities.hl'
  20. import { requestOf, grantRequest } from '../lib/apps.hl'
  21. import { siteName } from '../project.hl'
  22. session = null
  23. rid = null
  24. // 'code' on THE CODE PAGE `/code` and `/signin/<rid>/code` (ident#20; lib/api.hl codePage
  25. // renders this component there, only while the session has a pending code), else null
  26. step = null
  27. onCodePage = step == 'code'
  28. // the pending address, read by codePage from the session and handed in as a param (mission
  29. // 048): read here from the session, hl:web (64527baa) would re-derive it after EVERY face
  30. // that takes the session — after the 5th wrong code it turned null and the code form
  31. // vanished with nothing to click (gate "after 5 wrong tries even the RIGHT code is refused")
  32. pending = null
  33. // where this login lives: the email form, and the code page after "Send me a code"
  34. homeUrl = rid != null ? '/signin/' + rid : '/'
  35. codeUrl = rid != null ? '/signin/' + rid + '/code' : '/code'
  36. me = accountOfSession(&session)
  37. signedIn = me != null
  38. // THE APP'S LOGIN REQUEST (null on `/`, or when unknown / expired)
  39. request = rid != null ? requestOf(rid) : null
  40. forApp = request != null
  41. badRequest = rid != null && request == null
  42. appName = request != null ? request.app.name : ''
  43. appOrigin = request != null ? request.origin : ''
  44. forInvite = request != null && request.invite != ''
  45. requestLead = forInvite ? 'You are invited to ' : 'Sign in to '
  46. onWelcome = step == 'welcome' && me != null && forApp // a NEW address sent here from the selector's frame (ident#31): the default identity's form first
  47. choosing = forApp && me != null && !onWelcome // the identity choice for the app
  48. manage = rid == null && me != null // identities + time zone (only on `/`)
  49. meEmail = me != null ? me.email : ''
  50. timeZone = me != null ? me.timeZone : ''
  51. tzInput = timeZone
  52. identities = me != null ? identityRows(me.id) : []
  53. __title = siteName + (forApp ? ' | sign in to ' + appName : (me != null ? ' | your identities' : ' | sign in'))
  54. // the login steps (a View's `if` takes a member, so each step is one).
  55. // THE CODE STEP IS ITS OWN PAGE (ident#20, creator: "just make a /code where it checks a
  56. // pending code"): "Send me a code" records the address in this browser's session (face
  57. // rememberPending) and goes to `/code`; that page shows the code form for the session's
  58. // pending address (lib/login.hl pendingOf) — so a reload, a second tab or a re-seed keeps it.
  59. pendingEmail = onCodePage && me == null && !badRequest ? pending : null
  60. askEmail = me == null && !badRequest && !onCodePage
  61. askCode = pendingEmail != null
  62. email = ''
  63. sentTo = pendingEmail != null ? pendingEmail : ''
  64. code = ''
  65. message = ''
  66. notice = ''
  67. // THE IDENTITY FORM — new, edit, and right after the first login the default identity
  68. // ("welcome": the names are optional, Skip closes it)
  69. editing = onWelcome
  70. welcome = onWelcome
  71. notWelcome = !onWelcome // `if (!welcome)` in a View renders nothing: an `if` takes a member
  72. editId = '' // '' = a new identity, else the identity's id (a UUID)
  73. // the default identity the welcome form (/signin/<rid>/welcome) edits. It is its OWN member: `editId` must stay a plain value (a member made of an
  74. // expression is recomputed when `identities` changes, which reset the id of every identity edited on `/`)
  75. welcomeId = onWelcome ? '' + identities[0].id : ''
  76. editHeading = onWelcome ? 'Welcome — name your default identity' : ''
  77. fIdentityName = ''
  78. fNickname = ''
  79. fFirstname = ''
  80. fLastname = ''
  81. fAvatar = ''
  82. hasAvatarPreview = false
  83. avatarPreviewClass = hasAvatarPreview ? 'avatar' : 'avatar hidden'
  84. avatarRemoveClass = hasAvatarPreview ? 'quiet small' : 'quiet small hidden'
  85. View {
  86. identCard {
  87. if (forApp) {
  88. appRequest { id = "apprequest" requestLead strong { id = "appname" appName } " " requestOrigin { id = "apporigin" appOrigin } }
  89. }
  90. if (badRequest) {
  91. h1 { "Login request expired" }
  92. p { id = "badrequest" class = "message" "This login request is unknown or expired. Go back to the app and start the login again." }
  93. }
  94. if (askEmail) {
  95. h1 { "Sign in" }
  96. p { class = "lead" "We mail you a one-time code. There are no passwords, and no sign-up: the first login with an address creates its account." }
  97. form { id = "emailform"
  98. on submit(e) {
  99. e.preventDefault()
  100. emit ask(e)
  101. }
  102. label { "Email"
  103. input { id = "email" name = "email" type = "email" autocomplete = "email" required = "required" value = email on input(e) { emit setEmail(e.target.value) } }
  104. }
  105. button { id = "sendcode" type = "submit" "Send me a code" }
  106. }
  107. }
  108. if (askCode) {
  109. h1 { "Enter your code" }
  110. p { id = "sentto" class = "lead" "We sent a six-digit code to " strong { sentTo } ". It is valid for 10 minutes." }
  111. form { id = "codeform"
  112. on submit(e) {
  113. e.preventDefault()
  114. emit verify(e)
  115. }
  116. label { "One-time code"
  117. input { id = "code" name = "code" autocomplete = "one-time-code" inputmode = "numeric" pattern = "[0-9]{6}" maxlength = "6" required = "required" value = code on input(e) { emit setCode(e.target.value) } }
  118. }
  119. formButtons {
  120. button { id = "verify" type = "submit" "Sign in" }
  121. button { id = "back" type = "button" class = "quiet" "Other address" on click(e) { emit back(e) } }
  122. }
  123. }
  124. }
  125. if (signedIn) {
  126. if (editing) {
  127. form { id = "identityform"
  128. on submit(e) {
  129. e.preventDefault()
  130. emit saveForm(e)
  131. }
  132. h1 { id = "formheading" editHeading }
  133. if (welcome) {
  134. p { id = "welcome" class = "lead" "Your account is ready and has a default identity. All of these fields are " strong { "optional" } " — fill in what you like, or skip it and do it later." }
  135. }
  136. label { "Identity name " fieldHint { "(shown when you pick an identity in an app; optional)" }
  137. input { id = "fidentityname" name = "identityName" maxlength = "60" autocomplete = "off" value = fIdentityName on input(e) { emit setF('identityName', e.target.value) } }
  138. }
  139. label { "Nickname " fieldHint { "(optional)" }
  140. input { id = "fnickname" name = "nickname" maxlength = "60" autocomplete = "nickname" value = fNickname on input(e) { emit setF('nickname', e.target.value) } }
  141. }
  142. label { "First name " fieldHint { "(optional)" }
  143. input { id = "ffirstname" name = "firstname" maxlength = "60" autocomplete = "given-name" value = fFirstname on input(e) { emit setF('firstname', e.target.value) } }
  144. }
  145. label { "Last name " fieldHint { "(optional)" }
  146. input { id = "flastname" name = "lastname" maxlength = "60" autocomplete = "family-name" value = fLastname on input(e) { emit setF('lastname', e.target.value) } }
  147. }
  148. avatarField {
  149. img { id = "avatarpreview" class = avatarPreviewClass src = fAvatar alt = "" width = "48" height = "48" }
  150. label { "Avatar " fieldHint { "(optional; a picture apps can show, e.g. next to your comments)" }
  151. input { id = "favatarfile" type = "file" accept = "image/png,image/jpeg,image/webp,image/gif" }
  152. }
  153. input { id = "favatar" name = "avatar" type = "hidden" value = fAvatar on input(e) { emit setF('avatar', e.target.value) } }
  154. button { id = "avatarremove" type = "button" class = avatarRemoveClass "Remove picture" on click(e) { emit setF('avatar', '') } }
  155. span { id = "avatarnote" class = "avatar-note" }
  156. }
  157. formButtons {
  158. button { id = "saveidentity" type = "submit" "Save" }
  159. if (welcome) { button { id = "skip" type = "button" class = "quiet" "Skip" on click(e) { emit closeForm(e) } } }
  160. if (notWelcome) { button { id = "cancel" type = "button" class = "quiet" "Cancel" on click(e) { emit closeForm(e) } } }
  161. }
  162. }
  163. }
  164. if (choosing) {
  165. section { id = "choosesection"
  166. h1 { "Choose an identity" }
  167. p { class = "lead" "Which identity signs in to " strong { appName } "? The app gets only the identity's short id — no email, no names." }
  168. ul { id = "chooselist"
  169. for (row of identities) {
  170. li { class = "choice"
  171. if (row.hasAvatar) { img { class = "avatar" src = row.avatar alt = "" width = "32" height = "32" } }
  172. identityMain {
  173. identityLabel { row.label }
  174. identityShortId { class = "shortid" row.shortId }
  175. if (row.isDefault) { defaultBadge { "default" } }
  176. identityDetails { row.details }
  177. }
  178. button { type = "button" class = "choose" value = row.id "Continue" on click(e) { emit choose(e.target.value) } }
  179. }
  180. }
  181. }
  182. }
  183. }
  184. if (manage) {
  185. section { id = "identitiessection"
  186. sectionHead {
  187. h1 { "Your identities" }
  188. button { id = "newidentity" type = "button" class = "small" "New identity" on click(e) { emit openNew(e) } }
  189. }
  190. ul { id = "identities"
  191. for (row of identities) {
  192. li { class = "identity"
  193. if (row.hasAvatar) { img { class = "avatar" src = row.avatar alt = "" width = "32" height = "32" } }
  194. identityMain {
  195. identityLabel { row.label }
  196. identityShortId { class = "shortid" row.shortId }
  197. if (row.isDefault) { defaultBadge { "default" } }
  198. identityDetails { row.details }
  199. }
  200. identityActions {
  201. a { class = "used" href = row.usedHref "Used in…" }
  202. button { type = "button" class = "quiet small edit" value = row.id "Edit" on click(e) { emit openEdit(e.target.value) } }
  203. if (row.canDelete) { button { type = "button" class = "quiet small danger delete" value = row.id "Delete" on click(e) { emit remove(e.target.value) } } }
  204. }
  205. }
  206. }
  207. }
  208. }
  209. section { id = "timezonesection"
  210. h2 { "Time zone" }
  211. p { class = "lead" "Taken from your browser at your first login. Currently " strong { id = "timezone" timeZone } "." }
  212. p { id = "digestnote" class = "lead" "Your daily mail of notifications comes at 17:00 in this time zone." }
  213. form { id = "tzform"
  214. on submit(e) {
  215. e.preventDefault()
  216. emit saveZone(e)
  217. }
  218. label { "Time zone (IANA name, e.g. Europe/Vienna)"
  219. input { id = "tzinput" name = "timeZone" autocomplete = "off" maxlength = "64" required = "required" value = tzInput on input(e) { emit setTz(e.target.value) } }
  220. }
  221. formButtons {
  222. button { id = "savetz" type = "submit" "Save time zone" }
  223. button { id = "browsertz" type = "button" class = "quiet" "Use this browser's" on click(e) { emit useBrowserZone(e) } }
  224. }
  225. }
  226. }
  227. }
  228. }
  229. p { id = "notice" class = "notice" notice }
  230. p { id = "message" class = "message" message }
  231. }
  232. }
  233. on setEmail(v) { email = v }
  234. on setCode(v) { code = v }
  235. on setTz(v) { tzInput = v }
  236. on setF(name, v) {
  237. if (name == 'identityName') { fIdentityName = v }
  238. if (name == 'nickname') { fNickname = v }
  239. if (name == 'firstname') { fFirstname = v }
  240. if (name == 'lastname') { fLastname = v }
  241. if (name == 'avatar') { fAvatar = v hasAvatarPreview = v.trim() != '' }
  242. }
  243. // the browser's own time zone (IANA name) and whether a name is one it knows (`Intl` is a
  244. // browser global of client code, hybriel#18)
  245. browserZone = () => { return Intl.DateTimeFormat().resolvedOptions().timeZone }
  246. knownZone = (v) => { return v == 'UTC' || Intl.supportedValuesOf('timeZone').includes(v) }
  247. // THE CODE REQUEST is a plain POST to /api/code (lib/api.hl), not a face: only an HTTP
  248. // request carries the client IP (X-Client-IP) the per-IP limit counts (mission 010).
  249. // A refusal (400, 429) answers { error } and is shown like every other message.
  250. on ask(e) {
  251. message = ''
  252. res = fetch('/api/code', { method = 'POST' headers = { 'Content-Type' = 'application/json' } body = JSON.stringify({ email = email }) })
  253. r = res != null ? res.json() : null
  254. if (r == null) {
  255. message = 'the server did not answer — try again'
  256. return null
  257. }
  258. if (r.error != null) {
  259. message = r.error
  260. return null
  261. }
  262. // THE SESSION REMEMBERS THE STEP, then the browser goes to the code page. A function
  263. // route gets no session (hybriel#11), so the face records it; it refuses unless a
  264. // code for the address is really waiting.
  265. k = emit server rememberPending(r.email)
  266. if (k == null) {
  267. message = 'the server did not answer — try again'
  268. return null
  269. }
  270. if (k.error != null) {
  271. message = k.error
  272. return null
  273. }
  274. window.location.assign(codeUrl)
  275. }
  276. on verify(e) {
  277. message = ''
  278. r = emit server verifyCode(sentTo, code, browserZone())
  279. if (r == null) {
  280. message = 'the server did not answer — try again'
  281. return null
  282. }
  283. if (r.error != null) {
  284. message = r.error
  285. return null
  286. }
  287. askCode = false
  288. // signed in: the address bar leaves the code page (a reload of /code would go back
  289. // to it anyway — lib/api.hl codePage sends a signed-in browser there)
  290. window.history.replaceState(null, '', homeUrl)
  291. meEmail = r.account.email
  292. timeZone = r.account.timeZone
  293. tzInput = r.account.timeZone
  294. identities = r.identities
  295. signedIn = true
  296. notice = ''
  297. manage = !forApp
  298. choosing = forApp
  299. // the shell (components/main.hl) shows the user menu from the account: a page's emit reaches every level above it
  300. // (hybriel#193), so the header follows the in-place sign-in without a reload — the welcome form below stays in place
  301. emit shellSession(r.account.email)
  302. // THE FIRST LOGIN: the default identity's names, optional (for an app too: the
  303. // choice follows once the form is saved or skipped)
  304. if (r.created) {
  305. fillForm(r.identities[0])
  306. editHeading = 'Welcome — name your default identity'
  307. welcome = true
  308. notWelcome = false
  309. editing = true
  310. choosing = false
  311. }
  312. }
  313. // THE CHOICE: the server makes (or finds) this identity's id for the app and answers
  314. // the app's return URL with a one-time code — the browser goes there
  315. on choose(id) {
  316. message = ''
  317. notice = ''
  318. r = emit server chooseIdentity(rid, '' + id)
  319. if (r == null) {
  320. message = 'the server did not answer — try again'
  321. return null
  322. }
  323. if (r.error != null) {
  324. message = r.error
  325. return null
  326. }
  327. notice = 'Back to ' + appName + ' …'
  328. window.location.assign(r.url)
  329. }
  330. fillForm = (row) => {
  331. editId = row.id
  332. fIdentityName = row.identityName
  333. fNickname = row.nickname
  334. fFirstname = row.firstname
  335. fLastname = row.lastname
  336. fAvatar = row.avatar
  337. hasAvatarPreview = row.hasAvatar
  338. return null
  339. }
  340. rowOf = (id) => {
  341. for (row of identities) { if ('' + row.id == '' + id) { return row } }
  342. return null
  343. }
  344. on openNew(e) {
  345. message = ''
  346. notice = ''
  347. editId = ''
  348. fIdentityName = ''
  349. fNickname = ''
  350. fFirstname = ''
  351. fLastname = ''
  352. fAvatar = ''
  353. hasAvatarPreview = false
  354. editHeading = 'New identity'
  355. welcome = false
  356. notWelcome = true
  357. editing = true
  358. }
  359. on openEdit(id) {
  360. message = ''
  361. notice = ''
  362. row = rowOf(id)
  363. if (row == null) { return null }
  364. fillForm(row)
  365. editHeading = 'Edit ' + row.label
  366. welcome = false
  367. notWelcome = true
  368. editing = true
  369. }
  370. on closeForm(e) {
  371. editing = false
  372. welcome = false
  373. notWelcome = true
  374. message = ''
  375. choosing = forApp
  376. }
  377. on saveForm(e) {
  378. message = ''
  379. fields = { identityName = fIdentityName nickname = fNickname firstname = fFirstname lastname = fLastname avatar = fAvatar }
  380. let r = null
  381. if (editId == '' && welcome) {
  382. r = emit server editIdentity('' + welcomeId, fields)
  383. } else if (editId == '') {
  384. r = emit server addIdentity(fields)
  385. } else {
  386. r = emit server editIdentity('' + editId, fields)
  387. }
  388. if (r == null) {
  389. message = 'the server did not answer — try again'
  390. return null
  391. }
  392. if (r.error != null) {
  393. message = r.error
  394. return null
  395. }
  396. identities = r.identities
  397. notice = editId == '' && !welcome ? 'Identity created.' : 'Identity saved.'
  398. editing = false
  399. welcome = false
  400. notWelcome = true
  401. choosing = forApp
  402. }
  403. on remove(id) {
  404. message = ''
  405. notice = ''
  406. row = rowOf(id)
  407. if (row == null) { return null }
  408. if (!confirm('Delete the identity “' + row.label + '”?')) { return null }
  409. r = emit server dropIdentity('' + id)
  410. if (r == null) {
  411. message = 'the server did not answer — try again'
  412. return null
  413. }
  414. if (r.error != null) {
  415. message = r.error
  416. return null
  417. }
  418. identities = r.identities
  419. if ('' + editId == '' + id) { editing = false }
  420. notice = 'Identity deleted.'
  421. }
  422. on useBrowserZone(e) { tzInput = browserZone() }
  423. on saveZone(e) {
  424. message = ''
  425. notice = ''
  426. v = tzInput.trim()
  427. if (!knownZone(v)) {
  428. message = 'this browser does not know the time zone “' + v + '”'
  429. return null
  430. }
  431. r = emit server changeTimeZone(v)
  432. if (r == null) {
  433. message = 'the server did not answer — try again'
  434. return null
  435. }
  436. if (r.error != null) {
  437. message = r.error
  438. return null
  439. }
  440. timeZone = r.timeZone
  441. tzInput = r.timeZone
  442. notice = 'Time zone saved.'
  443. }
  444. // "Other address": the session forgets the pending sign-in, back to the email form
  445. on back(e) {
  446. message = ''
  447. r = emit server forgetPending()
  448. window.location.assign(homeUrl)
  449. }
  450. // ---- the faces ------------------------------------------------------------------------
  451. // A face's LAST parameter is the session (the framework appends it). Every face that
  452. // needs the account asks accountOfSession, which only accepts the framework's Session.
  453. // A face runs on a BLANK instance: it has its arguments and its imports, not this
  454. // component's members or functions.
  455. // (the code request is NOT a face since mission 010: POST /api/code in lib/api.hl — a face
  456. // sees no request headers, so it could not apply the per-IP limit; a face here would be a
  457. // way around it)
  458. // the right code signs the session in; the first one for an address creates the
  459. // account, its default identity and stores the browser's time zone
  460. on server verifyCode(email, code, timeZone, session) {
  461. if (session == null) { return { error = 'no session — reload the page' } }
  462. if (email == null || hlTypeName(email) != 'String' || code == null || hlTypeName(code) != 'String') { return { error = 'email and code must be strings' } }
  463. return signInWithCode(&session, email, code, timeZone)
  464. }
  465. on server addIdentity(fields, session) {
  466. let me = accountOfSession(&session)
  467. if (me == null) { return { error = 'you are not signed in' } }
  468. r = createIdentity(me.id, fields)
  469. if (r.error != null) { return r }
  470. return { identity = r.identity identities = identityRows(me.id) }
  471. }
  472. on server editIdentity(id, fields, session) {
  473. let me = accountOfSession(&session)
  474. if (me == null) { return { error = 'you are not signed in' } }
  475. r = updateIdentity(me.id, id, fields)
  476. if (r.error != null) { return r }
  477. return { identity = r.identity identities = identityRows(me.id) }
  478. }
  479. on server dropIdentity(id, session) {
  480. let me = accountOfSession(&session)
  481. if (me == null) { return { error = 'you are not signed in' } }
  482. r = deleteIdentity(me.id, id)
  483. if (r.error != null) { return r }
  484. return { deleted = r.deleted identities = identityRows(me.id) }
  485. }
  486. on server changeTimeZone(tz, session) {
  487. let me = accountOfSession(&session)
  488. if (me == null) { return { error = 'you are not signed in' } }
  489. r = setTimeZone(me.id, tz)
  490. if (r.error != null) { return r }
  491. return { timeZone = r.account.timeZone }
  492. }
  493. // the identity for the app's login request (lib/apps.hl grantRequest: a plain login, or an invite's): { url } or { error }
  494. on server chooseIdentity(rid, identity, session) {
  495. let me = accountOfSession(&session)
  496. if (me == null) { return { error = 'you are not signed in' } }
  497. if (rid == null || hlTypeName(rid) != 'String') { return { error = 'field rid must be a string' } }
  498. if (identity == null || hlTypeName(identity) != 'String') { return { error = 'field identity must be a string' } }
  499. return grantRequest(me.id, rid, identity)
  500. }
  501. // THE PENDING SIGN-IN (ident#20): recorded after POST /api/code answered, only while a
  502. // code for that address is really waiting (lib/login.hl recordPending); "Other address"
  503. // forgets it. Named apart from the store functions (faces dispatch by name, hybriel#36).
  504. on server rememberPending(email, session) {
  505. return recordPending(&session, email)
  506. }
  507. on server forgetPending(session) {
  508. return dropPending(&session)
  509. }
  510. on server signOut(session) {
  511. if (session != null) { session.user = null }
  512. return true
  513. }
  514. on server signOutAll(session) {
  515. let me = accountOfSession(&session)
  516. if (me == null) { return { error = 'you are not signed in' } }
  517. // pushed BEFORE the sessions go: the audience reads each connection's session user
  518. emit client signedOutAll(me.id)
  519. // THIS browser's own session stays (signed out, like "Sign out"): the page goes on in place — its notice shows and the
  520. // next code request works without a reload; every OTHER session of the account is dropped
  521. session.user = null
  522. return signOutEverywhere(me.id)
  523. }

Branches

Latest commits

  • a4887ea3ident#47: the selector's sign-in frame no longer has a Continue button; the identity row itself is the link (gate tests/signin.mjs fails on the old code)mre
  • d8ec703dident#45: /docs shows docs/IDENT.md (hl:markdown, vendored from ac1ed9da), one Docs entry in the main menu, README for developers only, gates tests/docs.mjs and tests/sessionwrites.mjs in deploy.shmre
  • ec6aad35Merge branch 'a28g-amp-callsites' into d45-docsmre
  • 6bfbd3f2ident#45: docs/IDENT.md, what ident is and how it works; CONCEPT.md marks one id per app as droppedmre
  • c0edca26ident#28 A28G: write & at every call that hands a session to an &-parameter; gate tests/sessionwrites.mjs pins that sign-in, pending address, embed sign-in and selector land in the session filesmre
  • 80965c08ident#28: README says the deploy goes through the standbymre
  • 2f41670cident#28: ident-standby service on port 45012 (no background round in the standby) and deploy.sh hands over through standby-swap.shmre
  • a544b261ident#28: README names the new vendored Hybrielmre
  • 716860b0ident#28: gates follow Hybriel ac1ed9da (lazy sessions, meta attribute order, JSON key order, default X-Frame-Options switched off for the embed page)mre
  • 889e00fbident#28: Hybriel master ac1ed9da (sessions reload a newer file, a replayed reconnect carries the server session); a startup fault exits 1 (on Error)mre
  • f5a55f8aident#11: apps can ask for nickname, firstname and lastname (fields list on /api/exchange, new POST /api/profile); empty fields come back null; gate checks, READMEmre
  • d8be66ebident: report and log line for the widget cache and frame height changemre
  • 2068f61aident#31: browsers revalidate the widget scripts on every load; the sign-in frame is exactly as tall as the current step (the frame page reports its height, selector.js accepts it from ident only)mre
  • a22d2daaident#31: the sign-in frame is no taller than the tallest step needs (plain CSS height per width), gate check for itmre
  • a77d1b22ident#31: the welcome form keeps editId a plain value (browser gate), README, wider rows in the framemre
  • 5c481bfdident#31: sign in to ident inside the selector's panel (email, code, identity in an iframe; a new address goes to ident in the same tab and comes back)mre
  • 061abfe2ident: the apps gate waits until the test app's login button stops moving before it clicks (the page grows after load and the click missed about every second run)mre
  • 45f7e4daident: the user menu's Sign out waits for the server before it reloads (the apps gate failed because the session could still be signed in)mre
  • f07658c7ident: home page shows the account once (account bar removed, the user menu carries email, Sign out, Sign out everywhere); wildcard origins https://*.domain for apps on many subdomains; gates follow (WIP: gates not re-run after the last edits)mre
  • f2c43bbbtheme: sync from layouts 4994037 (list rows stack, td word-keep, heading code, edited tap target)mre