#dev 2025-11-02
2025-11-02 UTC
aaronpk, bterry, NaomiAmethyst, DanQ, grufwub, Florian1, barnaby, Pixi, [benatwork] and ttybitnik joined the channel
#
[schmarty] aaronpk: i am having trouble understanding something with http://indielogin.com. using it with my indieauth server. i see indielogin make an auth request with no scopes, seems good, but then it tries to redeem the code at my _token_ endpoint. since there were no scopes requested, my server barfs at this point. i believe that indielogin should only be making requests to the authorization endpoint?
#
[schmarty] yeah i'm stuck a bit, here. should i give indielogin the benefit of the doubt and treat it _as if_ the request had gone to the authorization endpoint instead? i am also having trouble remembering exactly when this broke, but i think there was some recent indielogin maintenance?
#
aaronpk looks like january was the change https://github.com/aaronpk/indielogin.com/issues/121
#
[schmarty] ah, wow, ok.
#
[schmarty] well i think the spec is pretty clear that if there are no scopes requested that this request ought to be going to the auth endpoint.
#
[schmarty] hmm, i'm not seeing that comment. and the spec still lists this breakdown: https://indieauth.spec.indieweb.org/#x5-3-1-request
#
[schmarty] hmm, i interpreted that comment as specifically supporting the split (profile-only requests to auth endpoint, token-for-resource-access requests to token endpoint)
#
[schmarty] the advice to have indielogin, which is only requesting profile info, exchange the code at the token endpoint also goes against this section: https://indieauth.spec.indieweb.org/#access-token-response
#
[schmarty] ah, ok, yeah that clarifies the reasoning.
#
[schmarty] it seems like it affects multiple parts of the spec, so that might be part of it?
#
[schmarty] here are two possibilities i am looking at. first, i beg aaronpk to have indielogin request 'profile' scope, then everything is copacetic with the spec as-written.
#
[schmarty] second i am much less sure about, but it would be something like "rescuing" a request that looks like an invalid request for a token with empty scopes to treat it instead as if it was being handled by the old auth server behavior?
fry02 joined the channel
Paula joined the channel
#
[schmarty] 🎉

#
[schmarty] aaronpk: totally works!!
#
[schmarty] aaronpk++ thank you! indielogin++
proofreed joined the channel
#
[schmarty] [Jo] ++ haha, thanks, and have a plus for your bravery to try my rickety nginx/IndieAuth thing !
ttybitnik joined the channel
#
[tantek] For folks looking to setup alternative services, backends: https://european-alternatives.eu/
#
carrvo tantek++
#
carrvo aaronpk, if you are talking about compatibility with plain OAuth libs, mine requires the `sub` field to be populated buth IndieAuth populates `me`. I think I understand why, but my hands are tied with the lib.
#
carrvo Just a side note.
[Jo]2, [Al_Abut]1, geoffo_, [Al_Abut]2, bterry1, Pixi`, DanQ1, Xe, proofreed, rrix, sp1ff`, [Jo]3, jak2k, vidak, rgbivvv and [jeremycherfas] joined the channel
#
carrvo Yes. It needs something to map to Apache's user field (passed down the pipeline) and it hardcodes the value to come from `sub`. No `sub`, no user, no successful match.
#
[Jo]3 Can someone try to sign in on https://dead.garden/drwho and tell me what error they get (not expecting it to work for u but not for me)
#
carrvo I have some of it mentioned https://github.com/indieweb/wordpress-indieauth/pull/288 (I can't remember the best spot I documented it offhand.)
#
carrvo My provider returns `sub`! I have seen it with OIDC where they return `sub`...
#
carrvo Oh, sorry. Yes, I confused introspection with the preceding response. 🙁
#
carrvo I only found one way to make IndieAuth + mod_oauth work. I know it was designed for mod_auth_oidc...
#
carrvo I think there was some "I don't care what the token looks like because I can ask the introduction for a standard format" but that was a year ago.
#
carrvo *introspection
#
carrvo That would have been it! But at the end of the day things need to collapse to some format understood by both sides. I understand that introspection does that for those libraries.
#
carrvo Sorry, this got really far into the weeds as to why I am currently stuck with the `sub` field. I *do* have a project to replace it...eventually...
[artlung], DanQ, rhyswynne, shoesNsocks, Florian1, mahboubine, Florian2, rosipov1, rrix and CrimeWave joined the channel
#
rgbivvv i just bought a little foldable bluetooth keyboard so that i can SSH into my server and write Markdown on the go on my phone :)
DanQ joined the channel
Xe joined the channel
#
carrvo Jo, any specifics? I have some experience with wrangling SelfAuth specifically.
DanQ joined the channel
#
[Jo] Basically whenever I add token endpoints to my header selfauth stops working for me in all contexts (even ohttp://h.in the wiki login page); for http://tokens.indieauth.com I get invalid_request (Invalid code provided) and idk why
#
[Jo] whereas http://indieauth.com with external methods like email or github plays nice and works just fine as an authorization endpoint with the token endpoint
