#dev 2021-07-11

2021-07-11 UTC
Seirdy joined the channel
#
aaronpk
hm this might end up being a bunch of extra work, looks like Laravel isn't compatihble with this PSR7 stuff out of the box
[KevinMarks] joined the channel
#
[KevinMarks]
When we were explaining how quicktime streaming worked at WWDC we acted out the protocol with big bits of card as the packets and each engineer playing the component they worked on
#
aaronpk
i literally can't figure out how to create a response that taproot\indieauth likes from within laravel
#
aaronpk
the usage example here is nice but I can't figure out how to make that Response object https://github.com/Taproot/indieauth#usage
#
Loqi
[Taproot] indieauth: A PSR-7-compatible PHP IndieAuth Server Implementation
#
aaronpk
ahhhhh got it
#
aaronpk
`Nyholm\Psr7\Response`
barnaby joined the channel
#
aaronpk
a wild barnaby appears
#
barnaby
indeed, very mysterious ;)
#
barnaby
this is useful feedback
#
barnaby
I had assumed that it was clear that any valid PSR7 ResponseInterface was sufficient, looks like it needs some extra clarification
#
aaronpk
my big issue with all the PSR stuff is that everyone kicks the documentation problem down the road
#
aaronpk
so unless you are intimately familiar with all the PSR standards, it's all very hard to use
#
barnaby
well in theory https://www.php-fig.org/psr/psr-7/ is all you need, as any implementation will be compatible with that
#
aaronpk
right, but most implementations don't create docs because they assume the PSR spec is good enough docs, but then the PSR specs don't actually tell you how to do anything in practice because they are documented for the implementation developers not the users
#
barnaby
so I guess I could at least link to that from my documentation
#
aaronpk
also it takes a surprising amount of digging through class hierarchies to even be able to tell whether something claiming to be an http response is or is not a psr7 compatible object
#
barnaby
that’s one of the things psalm is useful for
#
barnaby
if your code is type hinted to use the PSR-7 interfaces, and there’s a code path which will allow an incompatible object to be passed, psalm will likely pick it up
#
aaronpk
i mean before you even get to writing code
#
barnaby
but yes, I agree that it can be awkward to dig through 3rd party code and documentation
#
barnaby
complicated class hierarchies sounds more like a framework-specific issue though
#
aaronpk
because laravel uses symfony
#
aaronpk
but Symfony\Component\HttpFoundation\Response is not a PSR7 response
#
aaronpk
there is some sort of translation layer here https://laravel.com/docs/8.x/requests#psr7-requests
#
aaronpk
but even that section is a great exmaple of docs failing
#
aaronpk
without prior knowledge, there's no indication that "nyholm/psr7" is a PSR7 implementation
#
aaronpk
so eventually i figured out that's what it is, and that i could create a Nyholm\Psr7\Response object
#
barnaby
well I can’t solve the laravel problems, but I can definitely make my documentation clearer
#
barnaby
…tomorrow. it’s much too late for me to say anything coherent, I definitely appreciate any feedback you end up having about my indieauth libraries though!
#
aaronpk
yeah i'm not blaming you for this at all, i am just generally frustrated by lack of docs in laravel and PSR things
#
aaronpk
hmm, i am thinking i may prefer to use this the other way around
#
aaronpk
right now i have to do things like override templates and create response objects for this library
#
aaronpk
which makes it awkward to integrate with a full framework like laravel which has its own opinions about how those things work
#
aaronpk
instead, i'd prefer to hand the library request objects and have it give me back error or success objects and then i could pass those on to views myself
[schmarty] joined the channel
#
@DataG
So I finally got http://Webmentions.IO installed on my blog. It took an extra two weeks because of this tweet: the `5.` at the beginning was being interpreted by a Markdown parser as the start of an ordered list. Had to fix that: https://github.com/aarongustafson/jekyll-webmention_io/pull/149
(twitter.com/_/status/1414024395006398473)
#
@RubygemsN
authorio (0.8.0): Rails engine to add IndieAuth authentication endpoiont functionality https://rubygems.org/gems/authorio
(twitter.com/_/status/1414025862458925056)
Rattroupe joined the channel
#
Rattroupe
I wondered if you had some sort of automated alert for things like that
#
Rattroupe
Thanks! I emailed you a long time ago asking if this was a good idea, but I guess that's not the best way to contact you
#
Rattroupe
I then went here and got some generally encouraging remarks, and now here it is. A first pass at least. It seems to work
#
Rattroupe
Should it be added to the wiki, or any place else? I'm looking for feedback in general
#
aaronpk
ah yes sorry, my email inbox is a disaster
#
Rattroupe
can anyone make edits there?
#
aaronpk
if you have an indieauth enabled website you can log in!
#
Rattroupe
haha yes
#
Rattroupe
I started because I wanted indieauth enabled on my site but then thought it would be nice to make it a plugin so anyone with a rails-based site can turn it into an authentication endpoint
#
aaronpk
yes that sounds great!
#
Rattroupe
in theory it's all complete, just needs some people to test it out and submit bugs
Seirdy joined the channel
#
Rattroupe
Ok I added an entry on that wiki page. Is there anything else I should do to promote it?
#
aaronpk
i can add it to https://indieauth.net too
#
aaronpk
other than that, talk about it here! :)
#
aaronpk
and definitely come to the indieauth session next month https://events.indieweb.org/2021/08/indieauth-popup-session-8gwaJpICmh79
#
Rattroupe
I should be able to be there
angelo joined the channel
#
aaronpk
oh you can also make a wiki page for the project too, and add yourself as an example user of it
#
aaronpk
for example:
#
aaronpk
what is selfauth?
#
Loqi
selfauth is a single user authorization endpoint written as single-file PHP without a database https://indieweb.org/selfauth
#
aaronpk
what is Authorio?
#
Loqi
It looks like we don't have a page for "Authorio" yet. Would you like to create it? (Or just say "Authorio is ____", a sentence describing the term)
#
Rattroupe
ok working on it...
#
Rattroupe
what is Authorio?
#
Loqi
Authorio is a Rails engine / Ruby gem that enables authentication endpoint functionality https://indieweb.org/Authorio
[fluffy] joined the channel
#
[fluffy]
So, question… given that so many people are implementing mechanisms on their ticket auth flow to allow simply requesting a ticket, would it make sense to formalize that in the spec? I feel like it would be very useful for the social reader subscription case.
#
[fluffy]
As an optional thing of course.
#
[fluffy]
Like it could be something as simple as formalizing a GET or POST query on the resource token endpoint.
#
aaronpk
I feel like that should be thought through from more of an actual use case behind it
#
aaronpk
like actually thinking through the social reader flow
#
GWG
We have a lot of options
#
GWG
[fluffy]: Why the token endpoint as opposed to the ticket endpoint?
#
[fluffy]
Because there isn’t necessarily a ticket endpoint on the granting site
#
[fluffy]
And the token endpoint is guaranteed to be there
#
[fluffy]
Not to mention the ticket endpoint is for the requestor of the ticket
#
[fluffy]
While the token endpoint is what’s granting the token from a ticket.
#
[fluffy]
My ticket endpoint would point to my reader. Not to my site.
#
Loqi
[fluffy-critter] #87 Standard mechanism for requesting a ticket auth ticket grant?
angelo, oenone, hendursa1, capjamesg, nekr0z, reed, BinyaminGreen[m], Abhas[m], calebjasik, Lohn, astralbijection[, cambridgeport90[, LaBcasse[m], benatkin and rockorager joined the channel
#
Zegnat
Thanks for getting the ball rolling on that question with a GitHub issue! [fluffy]++
#
Loqi
[fluffy] has 10 karma in this channel over the last year (40 in all channels)
#
@mxbck
↩️ I have the same approach - only using a webmention-based analytics tool I made: https://mxb.dev/blog/webmention-analytics/
(twitter.com/_/status/1414196844050227206)
capjamesg joined the channel
#
capjamesg
Anyone have any experience using PageRank?
#
capjamesg
I have no background at all in NLP but I'm giving PageRank a spin for keyword identification on my search engine.
#
capjamesg
Sorry. Not PageRank... I meant TextRank.
#
@jgmac1106
I agree/ I run no analytics on my personal website but I also want to play with webmentions as a way to build a teacher dashboard. There is an agreement of observation of data between teacher and student. (https://quickthoughts.jgregorymcverry.com/s/MEr4q)
(twitter.com/_/status/1414215121308635139)
capjamesg joined the channel
#
GWG
Being as I'm thinking about resumes, wonder if I should resurrect https://indieweb.org/indorsements
#
GWG
What is assertion?
#
Loqi
An assertion is a relationship where one individual/organization makes a statement, asserts, or endorses that another’s statement is accurate in their opinion https://indieweb.org/assertion
#
GWG
Maybe talk to a certain person who liked to talk badges
capjamesg, KartikPrabhu, [fluffy] and [jgmac1106] joined the channel
#
[jgmac1106]
gwg webmention badges work fine....I am going to try and build them into my app as the world fights over Open Badges 3.0 and the Verifibiable Credential spec grows and grows while nobody uses it
jjuran, capjamesg, chee, [tantek] and [jacky] joined the channel
#
[jacky]
just wanna give a shoutout / :thumbsup: to everyone hacking on AutoAuth stuff!
barnaby, [jgmac1106] and KartikPrabhu joined the channel