This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-01-05
Channels
- # announcements (2)
- # babashka (23)
- # beginners (67)
- # biff (4)
- # calva (19)
- # cider (6)
- # clj-kondo (40)
- # clj-yaml (14)
- # clojure (3)
- # clojure-austin (13)
- # clojure-europe (18)
- # clojure-nl (1)
- # clojure-norway (26)
- # clojure-uk (5)
- # clojurescript (42)
- # datascript (2)
- # datomic (6)
- # emacs (32)
- # graalvm (8)
- # humbleui (12)
- # hyperfiddle (13)
- # jobs (5)
- # lambdaisland (1)
- # lsp (18)
- # malli (15)
- # off-topic (20)
- # overtone (1)
- # pathom (5)
- # pedestal (15)
- # portal (3)
- # reitit (13)
- # releases (1)
- # remote-jobs (1)
- # yamlscript (4)
Oh nice. Yeah that sounds very relevant then. Uh I think the comparison is something like railway to fibre optic?
In my latest in-roads on the adventure to smooth authentication of electric applications I have a solution in mind and I would like your feedback.
The only time we can read headers of the page is on page load, effectively insulating your electric application from the ring middleware stack.
In my case, I want to collect a phone number, send a 2FA code, and confirm it to be true, I can do this in electric lady land in nested (e/client (e/server..))
blocks
I can also save directly to the [shared] XTDB instance which you can see as the diamond between the "moon and the sun" or whatever we can wall/call them.
So, save to the database an "active session"
{phone {:expiry 123456475
:session-val "SEUTHOS751642753"}}
Okay, index by phone number, generate a session value in (e/server)
save to xtdb
Then, send an "over the air, over the wire" http POST to your Ring Middleware stack for your app. This POST shall: contain the phone and the session value, which the middleware will check against the xtdb values, confirm within expiry by whatever buffer, either mint a fresh session if close and otherwise, redraw the ring map = update the headers and finally, trigger a page refresh on the client via the successful response from that little blip across the waters there (an HTTP post)