shrub/pkg/arvo/sys
fang ef89cf2410
eyre: rework eauth to be client-initiated
Instead of doing formal network traffic on the host-side whenever a
login attempt gets initiated, we now do it no earlier than when we're on
the client-side. This has the important property that network traffic
can only be initiated by authenticated HTTP requests. The previous
implementation, where hosts sent pleas when an unauthenticated HTTP
client said then wanted to log in, was vulnerable to abuse.

So now, formally, the eauth flow starts at the client's confirmation
screen. There is an optional step preceding this, where an attempt is
started on the host (and data is still stored for this), but to get the
redirect target, the host uses remote scry to get the eauth URL out of
the client ship.

Hosts now also give attempt-specific return URLs, useful in case they
are accessible (or even serving different content) from different
hostnames.
2023-06-09 15:46:04 +02:00
..
vane eyre: rework eauth to be client-initiated 2023-06-09 15:46:04 +02:00
arvo.hoon arvo: decrements kelvin 2023-04-25 09:29:32 -04:00
hoon.hoon Merge pull request #6509 from urbit/jon/doccords-lustar-tistar 2023-05-02 11:23:15 -04:00
lull.hoon eyre: rework eauth to be client-initiated 2023-06-09 15:46:04 +02:00
zuse.hoon zuse: kelvin 412 2023-05-04 11:42:41 -04:00