#dev 2024-12-12
2024-12-12 UTC
troojg joined the channel
# Kolev [mattl], why 11ty?
[Sophia_wood], MyNetAz, bterry, troojg and gRegorLove_ joined the channel
Salt, gRegor, [Sophia_wood] and [Joe_Crawford] joined the channel
# carrvo Tonight was supposed to be the night. I have my mindie to authenticate, my svn-auth to authorize, and SVN to serve: https://turner.enemyterritory.org/oauth/svn/indieweb/
# carrvo But of course it won't redirect to /oauth/index for I don't know why.
# carrvo And because of my ISP router limitations I can't test the public link (posted) so I have it duplicated with a local network domain.
# carrvo But a least anonymous access works! https://turner.enemyterritory.org/public/svn/indieweb/
# carrvo (But anonymous, for reasons, needs you to click login without needing to fill it in.)
# carrvo Grr...too late tonight to do more.
[Jo], [KevinMarks], jimw, [snarfed], Maxpm, ben, streety, Zegnat, voxpelli, fluffy, rjomara5853 and MyNetAz joined the channel
# funkylarma Personally I went with 11ty as I managed to get my old WordPress blog into a collection of markdown files and it feels like a easy way to host and preserve a local copy
nemonical, gRegor, gRegorLove_, jimw4, GuestZero, [morganm]1, [aciccarello]1, IWSlackGateway7, [tantek]2, [Murray]1, [benatwork], MyNetAz, Guest6, grufwub, dustinm`, al3xaurus and [snarfed] joined the channel
al3xaurus, Kolev and gRegor joined the channel; al3xaurus left the channel
# carrvo Fixed the redirect! Half my issue was that a regular expression had (///) instead of (|||). Very wrong meaning.
# Kolev Looks like someone is going to help me write a builder for Haunt, so that archives show up at year, month and day.
# carrvo I would appreciate someone willing to login to https://turner.enemyterritory.org/oauth/svn/indieweb/ just to make sure that it works with a different IdP.
# carrvo Kolev++
# [Joe_Crawford] @carrvo 500 error on /oauth/login for me
# carrvo Drat. 😢
# gRegor I also get a 500 there, entered https://gregorlove.com
# [Joe_Crawford] form also can be submitted without input. adding `required` to the input would do that.
# carrvo [Joe_Crawford]++ thanks for trying. I'll have to look at the logs.
# [Joe_Crawford] would _fix_ that, I mean.
sebbu2 joined the channel
# carrvo [Joe_Crawford]++ thanks for the added bonus of empty input!
# carrvo [gRegor]++ thanks for trying as well!
# carrvo Hopefully I just fixed it. And UI improvements.
barnaby joined the channel
# [Joe_Crawford] Got further: `Error: indieauth_error The authorization server did not return a valid response` (on submission of password from my server)
# funkylarma Could not find your authorization endpoint
# funkylarma No joy here:
# funkylarma Error: missing_authorization_endpoint
[pfefferle] joined the channel
# carrvo gRegor the issue with your request is easy: when I changed my requests to remove the file extension, I missed a reference. Will fix that shortly.
[aciccarello] joined the channel
# carrvo [Joe_Crawford] your request issue is trickier. My server received a 400 from https://apps.artlung.com/auth/ when indieauth-client-php library tried to authenticate and introspect.
# [Joe_Crawford] just retried. same. not sure I know what I ought to do. I put that in as a drop-in a few weeks ago.
# carrvo I am not sure what I need to do, because I don't know why your server thinks it is a 400 Bad Request.
# carrvo gRegor your issue should be fixed. Fingers crossed.
# carrvo I really appreciate the external testing! I thought there might be hiccups with a different IdP implementation.
# carrvo Excellent! That means I have something working in some way!! Super exciting!
# carrvo Oh..."with a 401" 😦
# carrvo Yes it is.
# gRegor Hm, wait. Just a regular GET to https://turner.enemyterritory.org/oauth/svn/indieweb/ is returning 401
# Loqi 401 is an HTTP/1.1 Status Code returned from a webserver to signify that your are not authorized to make a request to the URI https://indieweb.org/401
# carrvo It is intentional. I ended up using ErrorDocument with a double redirection...but I don't know if a variable it sets pre-includes the ? and didn't think it important enough yet.
# carrvo Good point about the user feedback. In the meantime check your cookies and the information might be there.
# carrvo The Apache OAuth requires a id token, but what I found was that IndieAuth with no scopes has no token, and with no introspection has an auth token (wrong kind).
# carrvo I am hoping that you have a "me" cookie...
# carrvo One sec, I'll check my logs again.
# [Joe_Crawford] my `me` cookie has a value of `https%3A%2F%http://2Fapps.artlung.com%2F`
# [Joe_Crawford] I do a flow and end up on the login form. But I do have 3 cookies. `auth_redirect`, `me` and `PHPSESSID`
# [Joe_Crawford] Different paths and subtly different domains on each. a_r and me have domain of `.http://turner.enemyterritory.org`while `PHPSESSID` has it without the `.` at beginning. path for first 2 is `/auth/` and `/` for `PHPSESSID`
# [Joe_Crawford] (and I'm using Safari on Mac)
# carrvo That sounds really good. I have auth_redirect cookie so that I can properly return you to your first endpoint at the end of it all.
# carrvo gRegor I just checked your metadata endpoint and you don't have an introspection endpoint. So you won't get further unless I redo stuff.
# carrvo How common is it for introspection to be used for IndieAuth sites?
# carrvo [Joe_Crawford] is the me the correct value? I'll think about why the domain is different but PHPSESSID is correct.
# [Joe_Crawford] `me` value is `https%3A%2F%http://2Fapps.artlung.com%2F` which matches domain I used.
# carrvo Oh! That would explain some code in SelfAuth!
# carrvo Unfortunately the Apache OAuth module is controlling the introspection so not now. But this is really good to know overall!
# gRegor Introspection was in 2022 spec update: https://indieauth.spec.indieweb.org/#changes-from-26-november-2020-to-12-february-2022
# carrvo [Joe_Crawford] I figured it out! You also don't have an introspection endpoint BUT the reason you did not make it as far as gRegor is that you don't have a metadata endpoint. This really helps flesh out some assumptions that I have made.
# [Joe_Crawford] betatesters++ glad it was helpful!
# carrvo In other words, this line broke: https://github.com/carrvo/mindie-client/blob/ba30991817cb3585b9e45be17b9668b160bbdd83/indieauth-client-php/redirect.php#L42C1-L42C83
# carrvo [edit] In other words, this line broke: https://github.com/carrvo/mindie-client/blob/ba30991817cb3585b9e45be17b9668b160bbdd83/indieauth-client-php/redirect.php#L42C1-L42C83
angelo joined the channel
# carrvo It could at least use some better error handling, any ideas on how to detect indieauth-client-php failing this function? Just check if the output is null?
# gRegor Some example code for that scenario: https://github.com/indieweb/indieauth-client-php?tab=readme-ov-file#discovering-the-required-endpoints
# carrvo I am super happy that this is 90%!!!! It looks like there are still hiccups to supporting the Apache OAuth module, but if I make any apps that consume the IndieAuth result directly they will work just fine!
# carrvo gRegor++ I remember skimming that now, that will suite my needs well.
# [Joe_Crawford] On my main site I don't run this stuff. I was testing with http://apps.artlung.com which I use for more exploratory stuff.
# [Joe_Crawford] "this stuff" = WP IndieAuth plugin on http://artlung.com - not running it. and `apps.` subdomain doesn't have WP on it.
# [Joe_Crawford] yeah, worked fine! I did it when Angelo was running his experiments.
# [Joe_Crawford] Dropped in quick
# [Joe_Crawford] yeah, it's as nice a way to say "go away" as I could think of .... not even sure how many years ago.
# [Joe_Crawford] https://github.com/artlung/selfauth was the thing I dropped in.
# [Joe_Crawford] derp. I mean https://github.com/Inklings-io/selfauth
# carrvo Any potential issues or usability complaints with returning `422 Unprocessable Content` in the middle of the double redirect? This would be for users without a metadata endpoint or mismatched issuer. https://github.com/carrvo/mindie-client/pull/7
# carrvo [edit] Any potential issues or usability complaints with returning `422 Unprocessable Content` in the middle of the double redirect? This would be for users without a metadata endpoint or mismatched issuer. https://github.com/carrvo/mindie-client/pull/7
# carrvo Now that I say it out loud I obviously should be treating the metadata and issuer as different codes when they fail.
barnaby joined the channel
# Loqi FedCM is a browser API for logging in to websites using external identity providers, and has an experimental feature "IdP Registration" which can let your own website be an identity provider to any website using IndieAuth https://indieweb.org/FedCM
# gRegor Looks like it's checking for `navigator.credentials` and `Chrome >= 128` in https://webmention.io/js/fedcm.js
Dryusdan and btrem joined the channel
# btrem I've written a post about self-documenting microformats in my website code. Wondering if I can ask if anyone wants to take a look at the draft copy and, perhaps, offer any suggestions or criticisms. Is that a thing? Is this the place to ask? (Couldn't decide if my query belongs her, or in #microformats, or #indieweb, or....?)