#dev 2021-06-13

2021-06-13 UTC
justBull, [jgmac1106] and PuercoPop joined the channel
#
GWG
Is the expiration parameter in an authorization code the same as one in the token?
#
aaronpk
There is no expiration parameter associated with the authorization code
#
GWG
I figured.
#
GWG
I'm just storing both the authorization code and the tokens the same way
#
GWG
And realized one should use expires_in, so I'd have to change both
chee joined the channel
#
GWG
Expiration is working.
#
GWG
Now bed, more tomorrow...or rather today
hendursa1, capjamesg, barnaby and jeremycherfas joined the channel
#
@rowanmanning
House progress! Also, I've been kind of obsessing about webmentions this week so I feel technical again. Also, have you seen this sun!? ☀️ https://rowanmanning.com/weeknotes/33/
(twitter.com/_/status/1404064475167199235)
hendursaga, [jgmac1106] and [manton] joined the channel
#
[manton]
[jacky] Late reply here… When I moved from Jekyll to Hugo, I originally had a “blog engine” field internally which I imagined could allow someone to choose from various blog types. But I decided to go all-in on Hugo and going to stick with it because it makes sharing themes easier if users can depend on one format.
#
GWG
I think I finished building a basic expiring tokens configuration. Needs some tweaking though, but it works in testing.
[fluffy] and [snarfed] joined the channel
#
[fluffy]
per #meta, even ephemeral data needs to be more durable than what a cache allows for. My rule of thumb for anything that lives in redis/memcached/etc. is that if it can’t be reconstructed by other context, it doesn’t belong in a cache.
#
sknebel
redis sort-of straddles that line, since it can do persistence to various degrees
#
sknebel
(although if you configure it for the full settings, it's getting slow and mixing that with cache-only use cases isn't efficient)
neocow joined the channel
#
[fluffy]
yeah, but as aaron discovered, you still need to have all of the software connecting to redis being on board with that too
#
[fluffy]
so many things think of redis as being their own personal stomping ground, and that’s sort of how redis is designed in the first place. so you have to decide what your tolerance is for things evicting items they don’t own.
#
sknebel
been missing per-user namespaces in it too, for exactly such reasons
[jacky] joined the channel
#
[jacky]
gotcha! that makes more sense maintenance-wise
[schmarty] joined the channel
#
[jacky]
so for Lighthouse, I'm thinking about modifying the inbound HTML a bit (like cleaning up the HTML, removing XSS-esque things, etc) but I wonder if it's "taboo" to run it through a pull-down parser (like Commonmark) to do things like automatically linkifying URLs that are found. Could that be considered overstepping how a Webmention service could provide that to a consuming site?
#
[jacky]
Like what's to say that the consuming site _already_ does this? Granted, I can always make this configurable but I guess I wonder if I should make it opt-out or opt-in.
#
GWG
I now have the PR for token expiration set up for review. Weee
#
@riotdanhonks
Spent this afternoon screwing around trying to get IndieAuth working in Node. It doesn't work completely yet, but there's enough to understand how things interact https://github.com/trinitroglycerin/indieauth
(twitter.com/_/status/1404132915160752130)
shoesNsocks and jamietanna joined the channel
#
jamietanna
Nice one GWG :D
#
GWG
jamietanna: Somewhat different than other implementations
#
GWG
It is set to X seconds by default... X defaults to 2 weeks, but is customizable
#
GWG
And in the admin you can renew it for the same interval or make it permanent
#
jamietanna
That sounds good - is there anything in the consent journey to allow you to grant longer, or is it only after the consent?
#
GWG
I thought about making it in the consent journey, but I want to get some feedback from users
#
GWG
I debated it both ways
#
GWG
I thought having the permanent option in the consent screen might encourage people to use it
#
GWG
Trying to steer behavior
#
jamietanna
Yeah that makes sense
#
GWG
We'll see
barnaby, Jamietanna1 and reed joined the channel
#
GWG
First get it merged.. need to wait for a reviewer
calebjasik, nekr0z, Abhas[m], batkin[m], BinyaminGreen[m], LaBcasse[m], justBull, shoesNsocks, gerben, barnaby1, jamietanna, barnaby, michael, IWSlackGateway, gerben_, justBull7, [jacky], jeremycherfas and KartikPrabhu joined the channel