#dev 2022-11-15
2022-11-15 UTC
ddd joined the channel
# angelo i have a button on my site to create a git repository. i'd like to create a token for access to it. i'm trying to reuse my indieauth server's token machinery. i'm currently simulating a standard auth flow but using an /internal/ client_id ("code-app" instead of "codesite.com") and skipping the code/code_challenge stuff. i'm currently skipping the consent screen but i'd like to eventually
# angelo k i basically replaced my "generate PAT" with this.. now i get to prefill in the scope and "client" details from the UX where i started (my /code/projects page). i'm storing the generated token in a htpasswd file for nginx->git-http-backend..
# angelo has anyone heard of or tried: https://github.com/nginxinc/NGINX-Demos/tree/master/oauth2-token-introspection-oss
# aaronpk another good reason we adopted the oauth introspection draft, so stuff like this works with indieauth servers https://indieauth.spec.indieweb.org/#access-token-verification-request
# barnaby drafted a first implementation of a function to remove false positive mf objects, initial tests seem to be working fine https://github.com/barnabywalters/php-mf-cleaner/blob/main/src/functions.php#L585 https://github.com/barnabywalters/php-mf-cleaner/blob/main/tests/CleanerTest.php#L631
slyduda and [tw2113_Slack_] joined the channel
# [jacky] alright so I've outlined what I'd do for the rust parser here https://gitlab.com/maxburon/microformats-parser/-/issues/15
Seirdy joined the channel
# [jacky] like I can try implementing some of the experimental ideas on https://github.com/microformats/microformats2-parsing/issues and maybe add them as https://rust.microformats.io so more people can try it out
# [jacky] like this one too https://github.com/microformats/microformats2-parsing/issues/47
# [jacky] Another good one (that I actually didn't consider and would like to avoid for my own wants) was raised in https://github.com/microformats/microformats2-parsing/issues/50
# barnaby [jacky]: imo xray is the current best example of how and when to imply a feed, and worth reviewing if you’re planning on writing similar code e.g. https://github.com/aaronpk/XRay/blob/main/lib/XRay/Formats/Mf2Feed.php#L6
geoffo joined the channel
# barnaby oh absolutely! to be clear, in my comment on https://github.com/microformats/microformats2-parsing/issues/47 I’m strongly against this behaviour being included in the mf2 parsing spec itself, which is what that repo is for
# barnaby and as usual, the indieweb wiki is the better source for consuming algorithms e.g. https://indieweb.org/feed#How_To_Consume in this case
# @typelogdev Can someone explain activity pub to me? Is it an official web spec? What does it give that webmentions don't (still leaning about these)? #indieweb #activitypub (twitter.com/_/status/1592339297637920768)
gRegor joined the channel
# @nileshtrivedi ↩️ RSS doesn't support comments by readers. WordPress had support for pingback/Webmention but users have shown preference for microblogging rather than long-form blogging. Plus WP is no replacement for YouTube/Instagram etc. ActivityPub has other flaws: (twitter.com/_/status/1592352521942892544)
geoffo and gRegor joined the channel
# gRegor indiebookclub updates if anyone wants to try them! https://indiebookclub.biz/updates#post-2022-11-14 Doing some cleanup and testing before I add it to IndieNews.
# [schmarty] gRegor++ !!
bterry joined the channel
# gRegor [snarfed], I've got the BF redirects set up and I sent fed.bridgy a wm for a post, but I don't find myself searching the @-@. No masto account, though, so I'm guessing cache? I'm searching on https://mastodon.social/search
# [aciccarello] gRegor, I followed you on my toot.cafe account. I'm curious to see how BF works from the mastodon side
AramZS, mro, sandy and Fokzo joined the channel
# Fokzo Heya ! Looking for a cheap VPS to host my stuff. Mostly to prevent loss of service when my internet goes out <.>
# Fokzo And as an offline backup
# Fokzo So, yeah, recommendation welcome o/
# @nezirzahirovic A Ruby gem for sending Webmention notifications. (from 28/05/2020) #ruby #rubyonrails #programming #gem #webmention https://www.rubyonrails.ba/single/a-ruby-gem-for-sending-webmention-notifications (twitter.com/_/status/1592437304487907334)
[snarfed], mro, barnaby, Fokzo and bterry1 joined the channel
# tommorris follow up from yesterday: I emailed gijs, he removed the 'h-full' class from his html tag, now works. post on masto: https://indieweb.social/@gijs/109344119010613589
# Fokzo tommorris: True ! I'll research the topic a bit more. I was curious about what you guys used/recommended for small-scale webhosting. Thanks for the starting point :3
[kimberlyhirsh] and [Murray] joined the channel
Feoh joined the channel
# Fokzo Depends on your tolerance and how fun you find it. Handling sysadmin stuff for my own hosting needs is more fun than hassle for me x)
# Fokzo Wouldn't do it for someone else, heh
# Fokzo Yeah, definetly. Unless you want to become their tech person ahah
# Fokzo Hmm. Still figuring out IRC though.
Seirdy joined the channel
# [jacky] If I can figure out https://jacky.wtf/2022/11/xt55, then I could have a demo for Sele by tomorrow tbh
# Loqi Trying to figure out why this configuration for a Fly.io config file (source: https://git.jacky.wtf/indieweb/sele/src/branch/feature/implement-setup-flow/fly.toml) isn't allowing it to resolve when I try to connect to its URL at https://proud-pine-61...
# barnaby would be happy to send a PR if you think it’d be straightforward to add, and have an idea what the best URL scheme would be. /twitter/@me/@likes/@app maybe?
mro and gxt joined the channel
# tommorris the one person I knew who worked on Twitter's API got uncermoniously purged the other day, without any prior notice (despite, y'know, both good manners and employment law requiring notice and consultation) so I'd assume stuff like oauth token approval is probably fairly low priority right now
geoffo joined the channel
# barnaby I’m passing my access token key and secret from the fields on https://granary.io/ to the constructor, is that the correct usage?
# [aciccarello] barnby, I may have missed this but if you are backfilling could you use a twitter data export?
# @typelogdev Anyone know of a webmentions test tool that will tell you why it failed if it did? Trying to post to /webmention ur… https://twitter.com/i/web/status/1592529735946760193 (twitter.com/_/status/1592529735946760193)
# [aciccarello] I assume it does. I just exported this week for historical purposes. Let me see if I can find that piece. There are a million json files.
# barnaby [snarfed]: here’s the stack trace: https://gist.github.com/barnabywalters/57c3095b89506cd074c68d387f20ecba
# [aciccarello] Yep, there is a likes.js file
# @schnarfed ↩️ AP and webmention are indeed both W3C recs: https://www.w3.org/TR/activitypub/, https://www.w3.org/TR/webmention/. AP is aimed more at federating multi-user servers with high traffic push JSON, webmention more at individual personal web sites, HTML w/microformats, more balanced btw push and pull. (twitter.com/_/status/1592558358376382465)
# @schnarfed ↩️ Yes, webmention needs your HTML to be fetchable by servers, without running JS. (twitter.com/_/status/1592558555126984704)
paulrobertlloyd joined the channel
# paulrobertlloyd @aaronpk Hello. I’m building my own IndieAuth endpoints, and looking to insure some level of interoperability with IndieAuth.com, which I know is somewhat outdated. I’ve noticed that a POST to /auth at IndieAuth.com returns a `scope` value as well as `me`. Is this a valid response? The spec suggests only `me` should be returned. Should implementations ignore anything besides `me`?
# [Murray] @barnaby I'd be interested to know how that goes. I've seen a few of the tools for converting Twitter archives have struggled with extracting likes, e.g. https://github.com/timhutton/twitter-archive-parser
# barnaby my processing chain for re-importing my old twitter reply contexts (and going forward for however long it lasts) is converting the tweet URL into a granary URL, fetching the html+mf2 equivalent, passing that to XRay and then post-processing the almost-jf2 which XRay produces slightly before storing it
# aaronpk paulrobertlloyd: it'd be better to compare against https://indielogin.com, I really need to spend some time to shut down indieauth.com at this point. it still has a lot of old behavior
# [jacky] interesting tool for 11ty users https://github.com/11ty/eleventy-activity-feed
paulrobertlloyd joined the channel
# paulrobertlloyd @aaronpk Oh, I’ll check that out. I previously built a token endpoint and got that working alongside IndieAuth.com/auth, but swapping out that for my own auth server, finding a whole set of assumption that are likely misplaced!
slyduda, gRegor, [Murray], [kimberlyhirsh], [chrisaldrich] and [campegg] joined the channel
# [jamietanna] Jacky still having issues with Fly?
paulrobertlloyd joined the channel
# paulrobertlloyd @aaronpk IndieLogin only does authentication, not authorisation, right? I’m getting a bit lost with where a token endpoint would know the desired scope, assuming the auth and token endpoints are completely separate.
# paulrobertlloyd Ah! Right, because with it all under my control, I know that a auth code is a JWT… but that might not always be the case.
# paulrobertlloyd So it sounds like I should go all in on my own server that does all the authentication journeys. Certainly makes things much easier. I’ll stop worrying about having things work with older/discrete services.
# paulrobertlloyd Yup, all the sections explicitly about token endpoints has been removed.
# paulrobertlloyd Think I’m going to avoid using RelMeAuth as few services seem to work with it anymore. Might look at PassportJs strategies… need to work on the actual authentication step, so far have basic password entry.
# [jamietanna] Awesome 😁
# paulrobertlloyd Right now my password works by storing a hash of it in an environment env, but possibly move storing that value in a database, not sure yet.
# paulrobertlloyd Here’s my WIP indieauth endpoint FWIW: https://github.com/getindiekit/indiekit/tree/499-endpoint-authorization
# paulrobertlloyd Maybe less so the former ;-)
# paulrobertlloyd Do you have a link to your Taproot implementation?
# paulrobertlloyd Ta
# @nachtfunke Idk why I haven’t found this article earlier
https://amberwilson.co.uk/blog/grow-the-indieweb-with-webmentions/ (twitter.com/_/status/1592577651948109825)
# @CodingPotions ↩️ En la IndieWeb también mencionan Bridgy que precisamente lo que hace es eso, publicar tu contenido también en redes, pero no lo he probado y no sé si tiene soporte para lo que digo de tweets más largos en hilos, que eso me molaría mucho.
https://brid.gy/ (twitter.com/_/status/1592582657111908352)
a and mro joined the channel
# gRegor Not sure if a bug, but the following/followers URLs here are missing the /user path https://fed.brid.gy/gregorlove.com
# [snarfed] btw interestingly Mastodon instances do have local URLs for BF posts, eg https://indieweb.social/@snarfed.org@snarfed.org/109327939703730432
mro joined the channel
# [snarfed] BF uses https://fed.brid.gy/r/[your full URL], eg https://fed.brid.gy/r/https://snarfed.org/2022-11-09_47872 , as the AS2 object's id and url, so you'd probably use that
# jeremycherfas Throwing myself on the good people here again with a Python problem.
# jeremycherfas I have a string in the form `[12.45924, 41.88564],[12.45935, 41.88573]` The digits are, of course, part of the one string. I would like to convert each set of digits into a float. Ideally I would end up with a list of lists, i.e. `[[12.45924, 41.88564],[12.45935, 41.88573]]` in which the numbers are floats.
# jeremycherfas I've tried everything I can think of and nothing seems to work. Very hard to search for solutions too. The numbers are lat long, if that makes any difference.
# [aciccarello] gRegor, I unfollowed/refollowed @gregorlove.com@gregorlove.com from my toot.cafe mastodon account. Are you looking for something in particular?
# jeremycherfas But there are no keys. Are you suggesting I add Keys?
# jeremycherfas Smacks head!
# jeremycherfas Thanks sknebel++
# jeremycherfas Snarfed++ too
# jeremycherfas And, while I am about it, barnaby++
# [aciccarello] gRegor, I don't see a new follow on my toot.cafe account 😕
# gRegor Showing up in the logs now, though not the following number there, so maybe takes a bit of time https://fed.brid.gy/user/gregorlove.com
# [aciccarello] Hey! It showed up!
# [aciccarello] (I don't have a long list to look through 😉)
# [aciccarello] snarfed++
mro and [tonz] joined the channel
# barnaby after eight years, there’s new version of php-mf-cleaner! https://github.com/barnabywalters/php-mf-cleaner
# [schmarty] barnaby++
[pfefferle], vilhalmer, mro, sp1ff, gRegorLove_ and geoffo joined the channel
# [schmarty] oof talk about admintax. popular "we'll run your mastodon instance for you" host masto.host is no longer taking new signups. and the last two days of updates seem like they have been grueling. https://mastodon.social/@mastohost/109344646859979730
[Zeina] joined the channel
# [timothy_chambe] Dave Winer is now on Mastodon, FYI:
# [timothy_chambe] https://twitter.com/davewiner/status/1592644579903541249
# @davewiner I'm getting a new follower every 5 seconds on http://mastodon.social. at times one every second or more. this is pretty amazing. i'm so hyped up now. what a day. (twitter.com/_/status/1592644579903541249)
# Zegnat [tantek]: interested to hear your thoughts, are pages like /now that have paths-by-convention another example of the /well-known antipattern? Even though the idea of them is to be complete content pages by themselves with no fixed structure?
barnaby joined the channel
# [tantek] more of an emergent pattern than a prescribed pattern, that's another contrast with the /well-known antipattern
# Loqi It looks like we don't have a page for "common pages" yet. Would you like to create it? (Or just say "common pages is ____", a sentence describing the term)
# Loqi pages is a place on your website where you list and link to individual (typically top level) page URLs on your own site, sometimes part of top level navigation or a list of links on a homepage https://indieweb.org/pages