#dev 2022-12-02
2022-12-02 UTC
# [snarfed]2 🔥
# [snarfed]2 [tantek] had curry for lunch
# [KevinMarks] A link preview caching proxy seems like a good answer. Didn't oEmbed do that a while ago? The Google favicon cache is ~ 15 years old now, and still works
# [snarfed]2 it's all pretty heavily discussed in https://github.com/mastodon/mastodon/issues/4486 and beyond. they agree, but can't because decentralization. they don't want to trust other instances in case they're malicious
mlncn joined the channel
# [jacky] Okay so I want to specify that a token is only usable for a particular resource. I'm thinking that `realm` might be the key I want to use per https://www.rfc-editor.org/rfc/rfc2617 (per https://www.oauth.com/oauth2-servers/the-resource-server/); would that make sense?
# Loqi It looks like we don't have a page for "realm" yet. Would you like to create it? (Or just say "realm is ____", a sentence describing the term)
# [tantek] that's not a realm, THIS is a realm: https://weizman.github.io/page-what-is-a-realm-in-js/
# aaronpk there's also Resource Indicators if you actually want the client to have to request it, but we haven't brought that into indieauth yet because it's not clear there is a need https://www.rfc-editor.org/rfc/rfc8707.html
# [jacky] I think I need to read more on claims w.r.t OAuth (I don't have the tooling, mainly using light assertions for that yet but I have been looking at https://paseto.io/ as a means of implementation)
[Joe_Crawford], mlncn, geoffo, Nuve, [jeremycherfas] and mro joined the channel
# IWDiscordRelay <capjamesg#4492> I thought I'd push myself to give a talk next year so I thought I'd start with something online: https://www.codementor.io/events/decentralized-website-communication-with-webmention-fwusximcte 😄
mro joined the channel
mro, [marksuth] and mlncn joined the channel
# IWDiscordRelay <capjamesg#4492> Will do!
# [KevinMarks] per https://github.com/mastodon/mastodon/issues/21913 is this another IndieAuth use case?
wskearney, mro, geoffo, mlncn and tiim joined the channel
# [manton] Speaking of, I blogged about my experience with Mastodon moving accounts. https://www.manton.org/2022/12/02/moving-from-mastodon.html
[chrisaldrich] joined the channel
# [snarfed]2 mantont++
# [snarfed]2 manton++
mro and gRegor joined the channel
# [catgirlinspace] what's a good way to handle authentication for myself on my website? like, i think i'd need a way to authenticate myself for logging into something like Quill for micropub right? should i just has my own password and store it in a file, making it hardcoded?
# [aciccarello] When is brute forcing passwords a concern? Do bots try dictionary attacks on authentication endpoints?
# [catgirlinspace] oh i didn't even think about 2fa. how hard is that to implement?
# [snarfed]2 right
# [snarfed]2 [catgirlinspace] if you make a long ish random password, and you don't use it anywhere else, and you use a password manager and only let it fill in your password on your site, you're fine, don't worry about 2FA
# [snarfed]2 `pwgen 32 1` is a good low tech way
# gRegor Hm, Monocle is showing the alt text on my gif reply as the p-name. The preview tool doesn't though, interestingly. Might be older php-mf2 parser somewhere? https://monocle.p3k.io/preview?url=https%3A%2F%2Fgregorlove.com%2F2022%2F12%2Funtitled-0221201173524%2F
# [catgirlinspace] is this a good design for handling sessions? on login page ask for password, then if correct set a cookie for like, checking totp code and redirect to ask for 2fa totp code. and then if thats correct, set a cookie for isAuthenticated and do whatever. all the cookies would be signed by the webserver im using.
# aaronpk it is, but this looks right https://xray.p3k.app/parse?url=https%3A%2F%2Fgregorlove.com%2F2022%2F12%2Funtitled-0221201173524%2F&pretty=true
# [snarfed]2 [catgirlinspace] rolling your own auth is dangerous, really easy to leave holes. I'd strongly suggest you use a library or whatever's built into your web framework instead
# [catgirlinspace] i'm using oak which i dont think has much for auth (pretty much the deno equivalent of express i think). not aware of any good auth libraries for deno either.
paulrobertlloyd joined the channel
# [snarfed]2 ^ yup
# [snarfed]2 (also https://www.google.com/search?q=oak+deno+user+auth turns up https://deno.land/x/dashport@v1.2.1 ?)
# [catgirlinspace] by "OAuth to a provider" that'd be like, GitHub right?
# [catgirlinspace] oooo dashport looks interesting.
# [catgirlinspace] thx for the link
gRegorLove_, gRegorLove__ and geoffo joined the channel
mro and paulrobertlloyd joined the channel
geoffo joined the channel
# [catgirlinspace] how exactly would i implement using GitHub with indieauth (other than relmeauth)? like, would it redirect from my website's indieauth thing to GitHub and then back to my website and then to where i'm logging in?
mro and geoffo joined the channel
# aaronpk apparently not https://aaronparecki.com/articles?tag=activitypub
mro_, [benatwork] and [tw2113_Slack_] joined the channel
# IWDiscordRelay <jacky#7226> passkeys are still Apple-only, no?
# IWDiscordRelay <jacky#7226> hmm I think the docs I was reading for something made it seem like they were the only ones with support
# IWDiscordRelay <jacky#7226> trying not to overload myself with the shiny but if this is a good alt, I can remove this argon stuff
# IWDiscordRelay <jacky#7226> hmm
# IWDiscordRelay <jacky#7226> > passkeys are meant to roam within the boundaries of the vendor ecosystem they have been created in
# IWDiscordRelay <jacky#7226> this feels good and bad at the same time
# IWDiscordRelay <jacky#7226> I guess it's pushing up the key management to your OS (or service you interface with on the Web)
# IWDiscordRelay <jacky#7226> hope this allows for third party key managers to be used in a browser (like if I wanted to use BitWarden instead of Chrome's flow)
# IWDiscordRelay <jacky#7226> (I guess that's possible with FIDO)
# IWDiscordRelay <jacky#7226> for those curious about "docs", it's https://simplewebauthn.dev/ (I use this for the client side bits of implementing WebAuthn)
# IWDiscordRelay <jacky#7226> what is WebAuthn
# IWDiscordRelay <jacky#7226> yeah they were the first place I saw it mentioned
# Loqi Web Authentication (WebAuthn) is a W3C Recommendation for an API to access public key credentials, including for a browser, optionally with the use of a hardware key https://indieweb.org/webauthn
# Loqi It looks like we don't have a page for "passkey" yet. Would you like to create it? (Or just say "passkey is ____", a sentence describing the term)
[ender] joined the channel
# [ender] [catgirlinspace] as other people said in #indieweb, I think 11ty (eleventy) is the most popular option for templating at the moment. I haven't used it extensively but find it pretty cool + there is a huge community of people who use it that can always help with technical issues
[benji] and [campegg] joined the channel
# [catgirlinspace] i'd probably throw deno in a docker container
# [tantek] I have a strange use-case due to a publishing error though I think it has non-strange use-cases too. I want to "flag" a past post of mine in such a way that it is replaced by (redirected to) a newer post *if* the referrer is NOT my own site, but show some form of "plain text redirect" e.g. "This post has been replaced by: (link)" when navigating it from within my site/domain, e.g. from /archives. Has anyone else found a need for
# [tantek] non-strange use-case for this: you have a general "how to" post that you update every so often, once a year (e.g. in my case, "How to pack for SXSW" (yes, back in the day) which I'd update once a year sometime before the conference). I'd want other people's links to the OLD versions (permalinks) of the post to automatically redirect viewers to the newest version, while if you happen to find old versions via navigating my archives,
# [snarfed]2 sometimes it's easier to maintain those as evergreen "pages" instead of dated posts
# [snarfed]2 (but begs the question of whether/how to show them in feeds though, with which date(s), etc)
# [snarfed]2 evergreen++
# [benji] ↩️ I tested Lume (Deno's static site generator) a few weeks ago to see if it was worth migrating my eleventy site. I was able to get a basic blog up and running fairly quickly but decided against migrating my site in the end but I would use it if I was setting up something new. It also deploys to Netlify and I'm sure GitHub pages pretty easily
# [ender] i have thought of making some tool along the lines of git diffs between different versions of evergreen posts, using wasm-git, the details for how to do such a thing evade me however
# [ender] yes, choosing links can be stressful
# [snarfed]2 that's not quite true. thinking of mine, I often do have a sense at the beginning whether something will be an evergreen page or dated post
# [snarfed]2 but definitely not 100%, agreed
# aaronpk 2012: wrote a post at /2012/etcetc. 2014 noticed it was getting a lot of traffic. 2015 redirected /2012/etcetc to /oauth, made a new page /2012/v1 with the original contents
# [snarfed]2 eh that's a minor problem. ie, not much harm in having a rarely updated page
# [snarfed]2 rendering separate created and last updated dates on evergreen pages helps
# [snarfed]2 people also often use page vs post
# [snarfed]2 right, which is why dates in URLs make sense for posts, less for pages that are updated more often
geoffo joined the channel
# [snarfed]2 lol https://snarfed.org/mac-setup
# [snarfed]2 (created and last updated dates, no date in URL)
# [snarfed]2 oh no laptop setup is too personal
# [snarfed]2 yeah I enjoy the deliberately dated company logos on https://snarfed.org/resume, eg Google's
# [ender] I would use https://slay.sh/ for generic mac laptop setup, I forget to use it when I need to though
# aaronpk https://indieauth.spec.indieweb.org/ <-- always latest version
# aaronpk https://indieauth.spec.indieweb.org/20201126/ <-- latest version links to previous dated version
# [snarfed]2 [ender] https://snarfed.org/why_i_run_shells_inside_emacs
# aaronpk no, because unless you are intentionally trying to link to an old version, you should be linking to the living standard at https://indieauth.spec.indieweb.org/
# [tantek] ah yes top of "thread" 🙂 https://chat.indieweb.org/dev/2022-12-02#t1670019622734700
# [KevinMarks] No, you pick an evergreen url once you decide that it is one, redirect the old one to that, and make the new evergreen one link to previous versions (which could be evergreen slug +date)
# [KevinMarks] Oops, I was scrolled up a bit. That was in response to an earlier point.