#dev 2026-11-27

2026-11-27 UTC
girlonthemoon, redshuffle, troojg, daemonspudguy, grufwub, [Al_Abut], JadedBlueEyes15, [aciccarello], JoshuaMorris, [capjamesg] and [jeremycherfas] joined the channel
#
vikanezrimaya
Re: https://indieweb.org/migration#IndieAuth — what if IndieAuth could recognize redirects in the `me` URL?… Just not sure at which step to make sure it's robust and secure.
#
vikanezrimaya
In any case, we already assume that whoever controls the website controls the identity. What if 301 means a website is moving, and the identity is moving with it?
#
vikanezrimaya
Problem with this: most *current* implementations will silently handle a redirect at discovery time and will not assume the new identity has any relation to the old domain entered.
#
vikanezrimaya
Changing the `me` URL only in the final stage will break multi-user setups. No, this has to happen at discovery, right?…
#
vikanezrimaya
If I enter `fireburn.ru` into an IndieAuth box, then it redirects to, say, `vikanezrimaya.xyz` right off the bat, the intent should be obvious — unless I am, of course, missing something…
mossymaker joined the channel
#
vikanezrimaya
Do we carry the initial `me` hint, normalized to a domain, in the IndieAuth state? Do we also save any redirects that happened as part of discovery?… and if the initially-entered `me` URL, normalized per §3.4, is equal to an existing user, while a redirect occurred, the new `me` value should be considered authoritative? But then I don't know if many websites could cope with that. `UPDATE users WHERE url = ? SET url = ?` sounds trivial
#
vikanezrimaya
on paper but website owners may complain because their schema isn't designed for that. I'm guilty of this myself most likely!
#
vikanezrimaya
am I making something working or making something stupid?
barnaby, petermolnar, donquixote42[d], JoshuaMorris, ax562 and lavandula joined the channel
#
aaronpk
vikanezrimaya: there's notes in the spec about the differences between 301 vs 302 redirects. I don't know if anyone has built account migration into that, but it could be possible
barnaby, [social] and lanodan joined the channel
#
[tantek]
It's probably worth exploring
lanodan, DenMcH and troojg joined the channel
#
[Al_Abut]
I remember there's strong opinions on here on whether to use 301 or 302 but that's all I remember whenever it comes to actually picking one for my projects…?
DenMcH joined the channel
#
[artlung]
what is 301?
#
Loqi
301 (301 Moved Permanently) is an HTTP status code returned from a web server to indicate the URL is permanently redirected to another URL https://indieweb.org/301
#
[artlung]
what is 302?
#
Loqi
302 (302 Found) is an HTTP status code returned from a web server to indicate the URL is temporarily redirected to another URL https://indieweb.org/302
#
[Al_Abut]
Thanks [artlung]. I know the basics, it was easy enough to google up. I meant the social cues of why everyone seemed to pick one over the other, which I can't remember for the life of me.
[tw2113] joined the channel
#
offeringofpie
what is 418?
#
Loqi
🫖 418 is a little teapot, short and stout https://indieweb.org/418
#
offeringofpie
Yay! my favourite. My version of "sir, this is a Wendy's"
#
Loqi
woot
#
vikanezrimaya
aaronpk: oh so I *am* thinking of something working! :3 well, the Basic Redirect in §5.4 sounds like almost it, except the migration path shall be defined as follows: If the server has a pre-existing relationship with the URL entered as the `me` value (or any redirects at its path), and discovers a new redirect, after the ceremony, it MUST update any references to the old URL to use the canonical Profile URL returned in the current cer
#
vikanezrimaya
emony. How's that sound? Strict enough for a spec, no pitfalls?…
#
vikanezrimaya
offeringofpie: i think my website has an endpoint that returns 418 just for the whimsy
#
aaronpk
i think that's worth an experiment or two
#
[tantek]
what is 303
#
Loqi
It looks like we don't have a page for "303" yet. Would you like to create it? (Or just say "303 is ____", a sentence describing the term)
#
[tantek]
what is 307
#
Loqi
It looks like we don't have a page for "307" yet. Would you like to create it? (Or just say "307 is ____", a sentence describing the term)
#
[tantek]
ok I really thought we had that
#
[tantek]
307 is 307 Temporary Redirect, and should be used instead of [[302]] because it requires preserving the original request method (in contrast to how 302 was historically implemented), like a POST request MUST be resent as a POST request in the future.
#
[tantek]
ok nm re: 303
#
[Al_Abut]
307! Now I've got another one to look up…
#
offeringofpie
452 became prominent in Europe when visiting american newsletter sites, as a few just don't want to comply with GDPR
#
offeringofpie
451... I had one job 😅
mahboubine joined the channel
#
mahboubine
Hey aaronpk quick question: in oauth 2.0, if a client hits /authorize while already authorized but the new request has LESS scopes than what's currently granted, should I replace the existing scopes or just update them with any additional ones?
#
mahboubine
Basically should authorizing work like a PUT request or a PATCH request
#
mahboubine
I hope this is allowed, I know this question is not 100% relevant to the indieweb, but I've been using aaron's videos on oauth to learn about it and thought why not ask
#
mahboubine
I looked up the oauth 2.0 and 2.1 RFCs and couldn't find any specific guidelines on what to do in this situation
#
aaronpk
it's basically choose your own adventure as far as the specs are concerned: https://datatracker.ietf.org/doc/html/draft-ietf-oauth-v2-1#section-1.4.1
#
aaronpk
not sure what you mean by "replace" though... replace on what? generally speaking there is an internal concept of a "grant" that the user consent is tied to, and a client can request to expand that grant or can request a subset of the grant in any given authorization request
#
mahboubine
What I meant is: current grant has ["calls:read", "calls:write"] and the new authorization has ["users:delete"], if we use 'replace' the grant will be updated to only be ['users:delete']
#
mahboubine
whereas with an update it would be ['calls:read', 'calls:write', 'users:delete']
#
aaronpk
yeah, your call. depends on how you want the clients to behave. you can make arguments for doing it both ways. in an ecosystem deployment like indieauth we might make certain assumptions about indieauth clients and expected user behavior and make a particular recommendation or requirement.
#
aaronpk
as far as the spec is concerned, if the client asks for only `users:delete` in that request, but the AS adds that and grants a token with scopes that were previously issued, then the AS MUST return all the granted scopes in the token response https://datatracker.ietf.org/doc/html/draft-ietf-oauth-v2-1#section-3.2.3
#
mahboubine
Thanks, both rfc sections have very useful info that I hadn't thought about
#
mahboubine
I assumed scopes are attributes of the grant as a whole, but it seems they can be different on the token level as well, I will research this further
#
mahboubine
Thanks for your time once again.
#
[Al_Abut]
TIL that CSS solved one of my gripes with roundrects in the last year or so with the new `corner-shape: squircle`
#
[tantek]
Haha squircle++
#
Loqi
squircle has 1 karma over the last year
#
[Al_Abut]
Rounded corners in CSS were always a lesser of two evils for me - they're annoying because they get so jaggy near the flat edges, especially the less rounded it is, but better than completely sharp edges in a lot of design styles.
#
[tantek]
has anyone implemented webmention endpoints that are on their own domain which however 307 to a handler service like webmentionio? I am considering doing this to see if webmention senders handle this use-case properly
#
[tantek]
e.g. on your own site, link to rel=webmention href=/webmentionhandler, then have you webmentionhandler page 307 redirect to <//webmention.io/yourdomain/webmention>
#
aaronpk
hm, i've not tried that, but i have made a same-domain webmention endpoint that forwards the request to webmention.io itself
#
[tantek]
how is it forwarding the request? on the backend?
#
[tantek]
interesting, the section on sending does not say what to do in case of 307 from the endpoint: https://webmention.net/draft/#sender-notifies-receiver
#
[tantek]
may be helpful to define that explicitly
#
[tantek]
probably worth a wm rocks test too
#
[tantek]
hah already posted (so to speak) my opinion on this in https://github.com/w3c/webmention/issues/89#issuecomment-312692517
#
aaronpk
it just takes the 2 parameters from the request and makes a new http request with curl itself
#
[tantek]
got it so server-side. makes sense from a compat perspective
#
[tantek]
OTOH I’m thinking of pushing the cutting edge and returning a 307 and seeing what happens
#
[tantek]
at a minimum it would be a good test of whether Bridgy backfeed handles 307 from an endpoint
#
[tantek]
and then everyone else’s webmention sending code 🙂
#
[tantek]
i’d call it “own your webmention endpoint” similar to “own your links”
#
[tantek]
what are own your links
#
Loqi
Own your links is the concept of creating links on your own website that redirect to other properties you own, for instance social media accounts or content you have created on other websites https://indieweb.org/own_your_links
[tantek]1 joined the channel
#
[tantek]1
so to the outside world (view sourcerers, search engines?), it looks like you’re handling your webmentions yourselves, and they cache the endpoint with your domain instead of the endpoint with wmio
#
[tantek]2
that’s the “why” for doing it this way
bterry, rMdes-bnc1 and marc_in_- joined the channel