#dev 2017-12-27

2017-12-27 UTC
leg, KartikPrabhu, [miklb], eli_oat and [keithjgrant] joined the channel
#
gRegorLove
Hmm, I was trying to use https://licit.li to test my wm endpoint discovery and make sure it followed the redirect, but having issues getting a response from the server with PHP fopen, wget, or curl.
eli_oat joined the channel
#
Loqi
Ok, I'll tell them that when I see them next
#
Loqi
[gRegorLove] Hmm, I was trying to use https://licit.li to test my wm endpoint discovery and make sure it followed the redirect, but having issues getting a response from the server with PHP fopen, wget, or curl.
renem, baxter, tbbrown, snarfed, [miklb], [tantek], snarfed1, KartikPrabhu, angelo and tantek joined the channel
#
Loqi
Zegnat: gRegorLove left you a message 4 hours, 30 minutes ago: https://chat.indieweb.org/dev/2017-12-27#t1514342717955200
#
Zegnat
!tell gRegorLove You having trouble accessing licit.li from your webmention sender is an – uuh – feature. Result of asking “what ifs” after midnight after IWC while setting up the server.
#
Loqi
Ok, I'll tell them that when I see them next
#
Loqi
gRegorLove: Zegnat left you a message 24 minutes ago: You having trouble accessing licit.li from your webmention sender is an – uuh – feature. Result of asking “what ifs” after midnight after IWC while setting up the server.
#
gRegorLove
It seems to be any type of get request from the command line. I didn't tinker with UA, so thought maybe it was blocking on that.
#
gRegorLove
`curl -v https://licit.li` returned "curl: (52) Empty reply from server"
#
Zegnat
It is really hard to spot.
#
Zegnat
Though curl on your command line should work. Maybe time to update curl? (hint-hint)
#
gRegorLove
That'd be up to dreamhost
#
gRegorLove
What's hard to spot?
#
tantek
Zegnat, I meant to say earlier, the use-case of limited-bandwidth at certain times, and wanting to "queue up" watching of videos (or any higher bandwidth usage) for later makes a lot of sense to me and is something I'd use myself
#
Loqi
tantek: aaronpk left you a message 8 hours, 22 minutes ago: regarding removing img tags in the content of photo posts, I'm curious about your thoughts on handling the use case discussed here https://chat.indieweb.org/dev/2017-12-23#t1514022441624700
#
Zegnat
The reason that it is failing is hard to spot gRegorLove. Some people who I thought would be on to me in seconds took a while to get it. It isn’t obvious at all.
#
Zegnat
It is just me being very annoying, basically. I might make licit.li more available again later :P
#
gRegorLove
Oh, so this is a riddle or something? Heh
#
tantek
aaronpk - not too worried about it - because sounds more theoretical (actual photo posts with image emojis) based on two distinct use-cases in the wild (photos, or text notes with image emojis)
#
Zegnat
gRegorLove, yeah. Though it would be harder to figure out for you if curl also isn’t working.
#
Zegnat
tantek, yeah, for me the consuming PostTypeDiscovery case is much more pressing than any theoretical argument on how to publish video posts. So I am just focusing on that :)
#
Zegnat
gRegorLove, this is my curl version which has no problem accessing licit.li: https://gist.github.com/Zegnat/64f6ffeba5bdbb54895cfd7aa0eeb86a
#
gRegorLove
Tried on a different server and yeah, curl's working. Is it something with the openssl version / supported ciphers?
#
gRegorLove
7.53.0-DEV worked
#
Zegnat
I am supporting all the usual ciphers. I wanted to support less ciphers actually, but can’t do that in nginx because whatever ciphers you set are enabled for all domains. And I do not want to cripple access to the family site :(
#
gRegorLove
and -v indicates it's using TLS1.2. The dreamhost server doesn't indicate that.
#
gRegorLove
keeps digging
#
gRegorLove
Only HTTP2?
#
Zegnat
taps side of nose
#
gRegorLove
Well, we'll see what dreamhost says about updating :)
#
Zegnat
I am doing it in a bit of a hacky way, which might confuse clients. So I might turn off this “feature” again.
#
Zegnat
But thought it would be funny.
#
gRegorLove
Even when I'm trying to fix things, gotta make things difficult for me Zegnat. jk ;)
#
Zegnat
This must have been a 1am, or maybe even 2am, thing that happened after IWC Berlin.
#
Zegnat
That is when I have my “best” ideas ;)
KartikPrabhu joined the channel
#
Zegnat
gRegorLove, if DreamHost does update curl, you might need something like this in your code: https://github.com/aaronpk/p3k-http/pull/1
#
Loqi
[Zegnat] #1 Allow curl to use HTTP/2
barpthewire, KevinMarks, KartikPrabhu and petermolnar joined the channel
#
@johnjohnston
On WordPress and Webmentions by Aaron Davis (Read Write Collect) In a backchannel conversation, I was asked about what is involved in setting up webmentions. I responded there, but thought that I would keep a note of it here: Hmmm, my suspicions to ... http://johnjohnston.info/blog/reply-to-aaron-davis-mrkrndvs-on-wordpress-and-webmentions/
(twitter.com/_/status/945972264201261057)
KevinMarks and KevinMarks_ joined the channel
#
Zegnat
Hello YouTube, welcome to the IndieWeb 🎉 https://i.imgur.com/EuSIMms.png
#
Zegnat
Though author url is still a bit questionable.
#
Zegnat
I have to say, extending XRay isn’t obvious.
#
sknebel
Zegnat: perfect time to improve the readme then
#
Zegnat
Not really a problem with the README. More an architectural one that I do not know how to fix.
#
Zegnat
You can’t just add a new Format file. You also need to touch XRay’s Fetcher and Parser class. And if you want to support the web front-end you need to change the controller as well. See commit: https://github.com/Zegnat/XRay/commit/31e9609920aae3e80da80b381d1569611d202cb9
#
Zegnat
First I was hoping I would only need to write a Format file and drop that in.
#
aaronpk
yeah, I didn't make a real plugin architecture for it
#
Zegnat
It is not hard per se. But I was surprised by e.g. the changes in Fetcher. I just copied whatever you were doing with one of the other silos
eli_oat joined the channel
#
Zegnat
Why does Omnibear never just work for me? 😭
#
Loqi
[Zegnat] #7 Should resolve relative URLs provided in Link headers.
#
grantcodes
You must be the edgiest of edge cases :P
#
Zegnat
*cough*
#
Loqi
[grantcodes] You must be the edgiest of edge cases :P
#
Loqi
ok, I added "https://chat.indieweb.org/dev/2017-12-27/1514387732934700" to the "See Also" section of /User:Vanderven.se_martijn
#
loqi.me
edited /User:Vanderven.se_martijn (+77) "/* See Also */ new section"
(view diff)
#
Zegnat
grantcodes, think of it this way: who needs unit tests when you have me around?
snarfed, KevinMarks, snarfed1 and [eddie] joined the channel
#
[eddie]
Zegnat: That xray commit will actually be very useful because right now when I parse a podcast url from overcast, I have custom logic in my site, but on my list is adding an overcast podcast info parser to my local xray, so I can use your commit as a guide! 🙂
#
[eddie]
Zegnat++
#
Loqi
zegnat has 41 karma in this channel (161 overall)
#
Zegnat
Yes, adding formats to XRay to bring in more silos feels like a good thing to do!
#
Zegnat
I didn’t know Overcast made special URLs for podcasts, [eddie]. Do you have an example? Are they per-series or per-episode?
#
Loqi
[aaronpk] #50 Refactor to make it easier to add new formats
#
Zegnat
Interesting
#
aaronpk
XRay can already parse podcast feeds directly tho so if you know the actual feed URL you can use that
#
Zegnat
I wonder if there is some sort of clever autoloading possible, so any PHP classes in the Formats directory (that implement some sort of interface) could automatically register themselves.
#
aaronpk
there's not a lot gained from that
#
aaronpk
the overhead required would probably not be worth it
#
Zegnat
No probably not.
#
aaronpk
declaring the new format class in one file isn't too much to ask
#
Zegnat
new XRay([Formats\XKCD::class, new Formats\YouTube($apikey)]); - maybe something like that?
#
Zegnat
Means people using XRay as a library can write their own Formats and they do not need to change any files deep inside their vendor directory.
#
Zegnat
That can also neatly encapsulate API keys, as you can pass them through the construct to only the class that needs them.
#
Zegnat
goes back to his Micropub workings. Feeling very productive today.
#
aaronpk
waits for a 1.6gb sql dump to restore to his laptop
#
schmarty
Speaking of refactoring, I got stuck on some PHP meta programming stuff yesterday. Wondering if other folks have played with the idea here.
#
schmarty
My goal is to have a bunch of handlers that can process new files, but to only load the ones specified in a config file.
#
aaronpk
there's probably a bunch of different ways to do that
#
Zegnat
Maybe look at some sort of event processing flows? Event = new file of type X is created, then all listeners configured for that event go off sequentially?
#
schmarty
I would like to avoid having to list them all in a registry. I was thinking of trying some autoload magic but didn’t get too far before I was interfering with composer
#
aaronpk
you might have to do it outside of composer
#
Zegnat
Yeah, without some magic auto instantiating of an entire folder or something to have them register themselves, you are going to need some sort of registry/list I think.
#
schmarty
aaronpk: I’m doing this inside a Caterpillar job, so I should probably be able to do the setup once inside a worker, I guess
#
Zegnat
And the magic part I don’t know how to do, else I would have looked at it for XRay :(
#
aaronpk
if you have your autoload config set up right then Caterpillar will use that already without having to first pre-declare the classes
#
aaronpk
Caterpillar just expects to be able to call a static method on a class. so if you can set up an autoload rule to find that file then you don't need to declare each class individually
#
schmarty
I tried a really silly thing where I named the php file after the config key, had the php file return the class name that it created, saved the result of the require in a string, and instantiated from that class name
#
schmarty
It worked but I needed to make sure I only required it once and got tripped up on the Caterpillar job being static and not being able to think of where to stash the key to class name mapping
#
schmarty
I think I need to learn more about autoload config
#
aaronpk
do you have this code somewhere I could peek at?
#
schmarty
I was up too late banging on this in silly ways and only thought “composer’a autoloader probably solves this” as my head hit the pillow
#
schmarty
I’m AFK at the moment and it’s all private repos for now. but this conversation has been helpful!!
#
schmarty
Zegnat++
#
Loqi
zegnat has 42 karma in this channel (162 overall)
#
schmarty
aaronpk++
#
Loqi
aaronpk has 97 karma in this channel (1513 overall)
#
[eddie]
Zegnat: I listen to all my podcasts in Overcast, and when I finish listening to an episode, I manually send a “listen” post to my website using Indigenous. I parse Overcast so that my h-cite can be actual information on the podcast. It’s how I generate these pretty listen posts: https://eddiehinkle.com/2017/12/21/14/listen/
#
Loqi
[Eddie Hinkle] 🎧 Listened to 253: I Think I Ordered One
#
aaronpk
I kind of forgot how well silo.pub's github integration works, I should really use that more often
KevinMarks, KevinMarks_ and tantek joined the channel
#
tantek
what is a poke
#
Loqi
Poke (or alternately tap, nudge, yo, hi, hello, ping, wink, flirt, pat, wave, etc.) is a relatively common social feature that ostensibly serves as a method to say hello, attract some one's attention, annoy them, or say "I'm thinking about you" https://indieweb.org/poke
#
tantek
"**relatively common** social feature"?!?
#
tantek
where else besides FB?
#
aaronpk
I mean there was a whole app based around that (Yo)
#
tantek
wat no. Yo was it's own minimal nonsense.
#
Zegnat
Dutch social network Hyves had it.
#
tantek
I vaguely remember Twitter having "nudge" a while ago but I think it is gone.
#
aaronpk
I think okcupid has something similar but I deleted my account so I can't check
#
tantek
certainly not "common"
#
Zegnat
Facebook Messenger now has “wave”
#
tantek
what is a gesture
#
Loqi
It looks like we don't have a page for "gesture" yet. Would you like to create it? (Or just say "gesture is ____", a sentence describing the term)
#
tantek
I really dislike citing a quora URL for something, they have such ugly JS
#
aaronpk
quora--
#
Loqi
quora has -1 karma
#
aaronpk
huh I don't remember the nudge feature at all
#
Zegnat
Alright. IndieAuth (happy flow) within Micropub endpoint done. Now onto accepting the Micropub requests.
#
tantek
2nd URL on quora and an annoying JS prompt
#
tantek
"Why do I need to sign in? / Quora is a knowledge-sharing community that depends on everyone being able to pitch in when they know something."
#
tantek
aaronpk "Nudge" used to show up as a link/button on people's profile pages
#
aaronparecki.com
edited /Indigenous (+0) "/* IndieWeb Usage */"
(view diff)
#
tantek
looks like MSN Messenger had a "nudge" feature long before FB Poke
#
tantek
ok this is worth splitting out
#
tantek
people treat them differently
#
Zegnat
Ugh. That MSN one was horrible. Made your window shake.
#
Zegnat
Or was that only with the Plus extension?
#
Loqi
awesome
John___ joined the channel
#
Zegnat
Working on any new year’s commitments this HWC day, tantek?
#
tantek
Zegnat, trying to find a suitable casual venue for HWC SF for tonight 😂
#
Zegnat
Also a good task to work on.
#
@tristandross
what a feature Nudge was. fucking up someone's shitty windows 95 dial-up computer for like 5 mins solid because they ignored you. class
(twitter.com/_/status/888132764314284035)
#
Zegnat
aaronpk and I are in a silent Mumble concentrating on out commitments.
#
Zegnat
Also, yes, MSN nudge shook the window: https://www.youtube.com/watch?v=LpUu2eyyPQM
#
tantek
wow some good ones here
#
tantek
oh Mumble
[eddie] joined the channel
#
[eddie]
Working on a pretty large update for the Indigenous beta for the new year 🙂
#
aaronpk
[eddie]: happen to be working on that push notification feature?
#
Zegnat
Now I kinda wish I had an iPhone ... does the app work on iPad?
j12t_ joined the channel
#
[eddie]
Zegnat: Work, yes. Look at all pretty? No. However, I do have an iPad that I use frequently so it’s definitely on the list to make it look better.
#
[eddie]
aaronpk: I was actually thinking about that recently and had some thoughts/questions
#
Zegnat
No worries. My first task is to get the Micropub server up before the new year.
#
aaronpk
I'd be very interested in that feature
#
Zegnat
If I can post a Happy New Year’s note at midnight, I will be happy
#
aaronpk
i'm also starting to think about that kind of thing for Monocle
#
tantek
what is mumb
#
Loqi
It looks like we don't have a page for "mumb" yet. Would you like to create it? (Or just say "mumb is ____", a sentence describing the term)
#
[eddie]
With microsub having a notification channel, I’m trying to decide if I should build it around microsub only
#
tantek
what is mumble
#
Loqi
Mumble is open-source voice chat software, with clients available for both desktop and mobile, as well as web browsers https://indieweb.org/Mumble
#
[eddie]
or if I should build a side door for notifications since microsub isn’t wide spread yet
#
aaronpk
[eddie]: my thoughts are to get all my notification content to show up in the notifications Microsub channel, and then have some way to get those to my phone as push notifications
#
[eddie]
Yeah that’s my plan as well. So I definitely have been thinking through how to get push notifications for the notification channel of a microsub server
#
aaronpk
I could see having some sort of setup in Monocle where you tell Monocle how to deliver push notifications, and then I'd put in this Indigenous push URL in the settings there
#
aaronpk
then any time Monocle added something to the notifications channel it would know to also go send that to the push server
#
aaronpk
tbh the easiest thing would probably be to make your endpoint speak Micropub
#
aaronpk
then if anyone else built a push notification server they could also make it speak Micropub and then everything would work together
#
[eddie]
Yeah, that makes sense.
#
[eddie]
If that’s the case, I don’t need to really work on making the server side speak microsub, because at that point it’s up to the microsub server to push the micropub request to the endpont
#
aaronpk
yeah I think that'd be the most flexible in the end
#
[eddie]
I had been thinking through whether I should be pulling from a microsub notification channel or waiting for a push
#
[eddie]
So that definitely seems like a good direction and prevents me from having to work through microsub stuff
#
aaronpk
and by "speak micropub" I mean just a subset of properties of course: content, name, photo?
#
[eddie]
Yeah, I’m thinking content, name, photo and u-url
#
aaronpk
oh yeah cause you can tap to launch them
#
[eddie]
Awesome logged that in the issue in case I forget the plan 🙂 That might not make it in this upcoming beta, but definitely the next
#
[eddie]
So definitely in January
#
aaronpk
sorry for all the twitter fav notifications grantcodes
KevinMarks joined the channel
#
loqi.me
created /challenge (+290) "prompted by tantek and dfn added by tantek"
(view diff)
#
loqi.me
edited /challenge (+57) "See Also"
(view diff)
#
loqi.me
edited /challenge (+163) "tantek added "2017-11-09 [http://micro.douglane.com/2017/11/09/microblog-photo-challenge.html Micro.blog Photo Challenge] (see also: https://www.manton.org/2017/11/5991.html)" to "See Also""
(view diff)
#
tantek
what is a birthday
#
Loqi
A birthday is the date when someone is born, however in the context of the indieweb, it is a feature displayed on some silos' user profiles that you can (or must) enter, and some prominently present to your friends on the month and day of your birthday, like Facebook's "BIRTHDAYS THIS WEEK" feature at the top of their events page https://indieweb.org/birthday
#
grantcodes
Ha no problem, I have silo notifications switched off, it's the webmention notifications I get 👍
gRegorLove joined the channel
#
aaronpk
well you'll see why I was doing that momentarily
#
tantek
what is birthdays
#
Loqi
It looks like we don't have a page for "birthdays" yet. Would you like to create it? (Or just say "birthdays is ____", a sentence describing the term)
#
tantek
birthdays is a feature on some social media [[silos]] that shows a page of people with current birthdays (today, recently, or soon), sometimes with how old they are, and UI to interact with them, sometimes with a daily notification of whose / how many people's birthday it is. E.g. https://www.facebook.com/events/birthdays/ (needs screenshot)
#
loqi.me
created /birthdays (+371) "prompted by tantek and dfn added by tantek"
(view diff)
#
tantek
birthday << birthdays
#
Loqi
ok, I added "[[birthdays]]" to the "See Also" section of /birthday
#
loqi.me
edited /birthday (+16) "tantek added "[[birthdays]]" to "See Also""
(view diff)
#
tantek
birthdays << birthday
#
Loqi
ok, I added "[[birthday]]" to the "See Also" section of /birthdays
#
loqi.me
edited /birthdays (+32) "See Also"
(view diff)
[eddie] joined the channel
#
tantek.com
edited /birthdays (+442) "add brainstorming, move FB to silo examples"
(view diff)
#
Zegnat
I am now uploading my Micropub experiment :D
#
Zegnat
Counts for vHWC right? Even outside of the scheduled time?
#
tantek.com
edited /birthdays (+137) "add notification text from FB"
(view diff)
#
aaronpk
whoops
#
aaronpk
sits and clicks refresh and wonders why the code isnt' working
#
aaronpk
realizes he's looking at the live site instead of dev site
tommorris, voxpelli and ScalaWilliam joined the channel
#
Zegnat
Apparently my live server did not have curl installed as PHP module. That was really confusing.
#
Zegnat
But now today’s experiment is live! https://sink.zegnat.net/
#
Zegnat
Anyone should be able to post to that site using Micropub. No Media Endpoint right now though.
#
Zegnat
Please do help me test.
raretrack joined the channel
#
aaronpk
it worked!
#
Zegnat
Ah, looks like you already spotted my first mistake aaronpk!
#
aaronpk
I did?
#
dgold
you stored the access_token!
#
dgold
naughty newt!
#
Zegnat
Indeed
#
Zegnat
files first bug
#
aaronpk
now anyone can post to sink.zegnat.net as me o.O
#
Zegnat
Yes. Or, well, dgold can if he didn’t clear it from his cache
kapowaz joined the channel
#
Zegnat
I just removed the micropub from the server
#
dgold
cache cleared
#
dgold
(or is it......)
#
dgold
mwuhahahahahahahahaha
#
Loqi
awesome
#
Zegnat
What client made that post, aaronpk? Because looks like it sends both the Auth header and the form encoded token?
#
aaronpk
I do that for fallback support
#
Zegnat
Which is something I didn’t expect. I’ll do some tests with Quill.
#
@colinstrickland
@davehodg Vaguely thinking about adding webmention support. I think comments are pretty broken. I turned them off when I killed WordPress. I don't think I ever got more than ten useful ones in a decade.
(twitter.com/_/status/946108566397685761)
gRegorLove_ joined the channel
#
dgold
aaronpk: it sends both?
#
aaronpk
yeah that was the easiest way I could make it work with servers that only supported one
#
Zegnat
I see you have been able to post too, dgold :D
#
Zegnat
Hmm, I should store what client is being used. That would be a good datapoint too.
#
Zegnat
files second issue
#
Zegnat
But it looks like the first demo is a success!
#
Zegnat
I can definitely see myself iterate on this and have my blog up and going again by the New Year
#
[eddie]
👏 congrats Zegnat!
#
Zegnat
aaronpk, auth tokens in the post body are now dropped: https://sink.zegnat.net/0yK8j2y5OYrONzqammew59rdhJW
#
[eddie]
!tell aaronpk: This isn’t something that HAS to be fixed, but if native micropub apps become more common, I wonder if redirect_uri on micropub.rocks should be expanded beyond http or https? (https://slack-files.com/T03QR2B2T-F8KP03FUJ-4845d82503)
#
Loqi
Ok, I'll tell them that when I see them next
#
Zegnat
redirect_uri is IndieAuth right? Those are specifically limited to HTTP.
#
[eddie]
Well the issue with that (and I realize there might be a slight bias against native apps in this community ;)) is that for native apps to login using OAuth you literally CAN’T use http as a redirect uri
#
[eddie]
or at least not without making it very complicated using a domain and deep linking
#
[eddie]
Well at least for iOS. Not sure how Android works
#
[eddie]
Hmmm, I guess maybe I could do a 301 redirect from http://indigenous.abode.pub/ios-login-redirect to my iOS scheme indigenous://auth/callback
#
[eddie]
That would allow IndieAuth to have a legitimate URL while still getting the iOS device to end up in the app
#
[eddie]
Hey, it worked!
#
[eddie]
Yay for redirects!
#
Loqi
😄
#
aaronpk
I thought we allowed non http redirects for IndieAuth
#
Loqi
aaronpk: [eddie] left you a message 18 minutes ago: This isn’t something that HAS to be fixed, but if native micropub apps become more common, I wonder if redirect_uri on micropub.rocks should be expanded beyond http or https? (https://slack-files.com/T03QR2B2T-F8KP03FUJ-4845d82503)
#
aaronpk
It's just the client id that has to be http
#
[eddie]
Yeah, client id as http makes sense
#
Zegnat
Ah, yes, custom schemes are allowed!
#
Zegnat
See section 4.2.2. in the spec.
tantek joined the channel
#
aaronpk
i'll fix it on micropub.rocks then!
#
Zegnat
Just make sure it is defined on the client_id URL, [eddie]
#
[eddie]
I do need to add that
#
[eddie]
Thanks Zegnat
#
Zegnat
4.2.2. in the spec even mentions using custom schemes for native applications. So you can just follow that.
#
aaronpk
deployed to micropub.rocks
#
[eddie]
Nice! It works!
#
[eddie]
I added the redirect_uri scheme to the client_id page and your micropub.rocks update accepted it 🙂
#
[eddie]
👏 Thanks guys!
#
[eddie]
I’m really excited to be able to use micropub.rocks to verify Indigenous’ feature set 🙂
j12t joined the channel
#
Zegnat
https://sink.zegnat.net/0yKEmZXXGSdnL3z2Y8Z8WS1QxWL - and now I show the client that is being used.
#
Zegnat
wonders if Indigenous works with sink.
#
[eddie]
Zegnat: The main thing that worries me is you mentioned Omnibear not working with relative URLS and I don’t know if Indigenous works with relative urls. I think that’s the only problem I would be concerned about
#
Zegnat
Oh, I took out the relative URLs from sink, for testint purposes.
#
[eddie]
ahhh gotcha
#
[eddie]
I’ll test it out
#
Zegnat
I wrote everything around a config file that contains the domain it is on. So I can always change that to just / for testing, or move it to different hosts. Sink’s own code doesn’t care.
#
sknebel
Wasn't omnibear fixed, or does it stumble somewhere else
#
Zegnat
It only resolves URLs in the HTML parser/scraper, not for Link headers.
#
Zegnat
aaronpk, is a logo a required property for h-app? I wasn’t too sure reading the IndieAuth spec, so I added one just in case.
#
aaronpk
not required no, but it makes indieauth.com a little prettier
#
sknebel
... wasn't that also in the code we fixed together? Hm...
#
Zegnat
Apparently not, sknebel
#
[eddie]
aaronpk: When the accept header to the micropub.rocks site is application/x-www-form-urlencoded I get back “Content-Type” = “text/html; charset=UTF-8"
#
[eddie]
aaronpk: Am I missing something or is that not right?
#
aaronpk
[eddie]: for a micropub requet?
#
[eddie]
Token endpont
#
aaronpk
that doesn't sound right
#
aaronpk
tho if you're developing anything new you should use accept: application/json
ancarda joined the channel
#
[eddie]
ohhh, is application/x-www-form-urlencoded somewhat depreciated for IndieAuth token endpoints?
#
aaronpk
hah yep looks like I forgot to set the header there :facepalm:
#
aaronpk
yeah JSON responses are the default now to comply with OAuth 2.0
#
Zegnat
The new fancy IndieAuth spec doesn’t support form-urlencoded at all, not even as a deprecated-but-accepted.
#
[eddie]
Apparently I don’t read well
#
[eddie]
I totally ignored: (!) The form-encoded content type is only here for historical reasons. New code shall use JSON.
mifga joined the channel
#
Zegnat
I would recommend working from https://indieauth.net/spec/ for anything new, [eddie]. I did for Sink today, and it is very clear.
#
Loqi
[Aaron Parecki] IndieAuth
#
[eddie]
Great, I’ll do that
#
aaronpk
heh I should probably do a pass on all the wiki pages now, updating them with the content from the spec
#
aaronpk
which is the reverse process I did to create that document :P
#
Zegnat
I should do another pass through https://indieweb.org/User:Vanderven.se_martijn/IndieAuth and get it ready for deployment on /IndieAuth.
#
Zegnat
Especially now that indieauth.net has taken shape
#
aaronpk
oh yeah!
#
[eddie]
Woo! Woo!
#
Zegnat
Awesome!
#
Zegnat
Oh, that reminds me, I should implement logout
#
Zegnat
files another issue
#
[eddie]
Two micropub servers authorized with Indigenous. One of them micropub.rocks! Two birds with one stone
raretrack_ joined the channel
#
Zegnat
[eddie], you may want to look into implementing https://indieauth.net/spec/#token-revocation for the logout button.
#
Zegnat
That way the token can be invalidated on the server.
#
[eddie]
Ohh! Good idea!
#
schenkenberg.nl
created /User:Schenkenberg.nl (+417) "Created page with "This is the user page for Tom Schenkenberg. I'm a personal technology enthusiast and co-founder of Ibuildings, a web application software development company in the Netherland...""
(view diff)
KartikPrabhu, j12t, [roshanvid], KevinMarks and tantek joined the channel
#
Zegnat
!tell schmarty I was trying to login to https://sink.zegnat.net/ from https://screech.schmarty.net/ but I failed on an Internal Server Error. Anything you know about?
#
Loqi
Ok, I'll tell them that when I see them next
#
Zegnat
Interesting to pick random Micropub clients and point them at the sink :D
#
schmarty
zegnat: MissingSchema: Invalid URL 'None': No schema supplied. Perhaps you meant http://None?
#
Loqi
schmarty: Zegnat left you a message 5 minutes ago: I was trying to login to https://sink.zegnat.net/ from https://screech.schmarty.net/ but I failed on an Internal Server Error. Anything you know about?
#
schmarty
an error when trying to fetch your endpoint's q=config
#
schmarty
i don't think screech handles relative URLs
#
Zegnat
There are no relative URLs.
#
Zegnat
I might not support q=config though
KartikPrabhu joined the channel
#
Zegnat
Hmm. q=config is a SHOULD (not a MUST) in spec. So Screech maybe shouldn’t count on it being there for all servers always.
#
Zegnat
But I will add it tomorrow and try again. Thanks for the quick debug!
#
schmarty
i don't have detailed values in the logs but given that error message i think screech has some strange value for your micropub endpoint.
[eddie] joined the channel
#
[eddie]
!tell aaronpk: Does micropub.rocks include the ability to do token revocation? I got a 400 error and I wasn’t sure if I did something wrong or if it isn’t supported. I seemed to get a 200 from indieauth.com’s token endpoint for eddiehinkle.com so I’m assuming the micropub.rocks token endpoint just doesn’t have that built it?
#
Loqi
Ok, I'll tell them that when I see them next
#
schmarty
not sure how it got to that point, so worth debugging if i get around to it! thanks for the test case. :}
#
Zegnat
I think it is doing a request for the q=config, trying to parse the HTML page it gets back as JSON (as if it succeeded) and then trying to take a media endpoint from the fauly-parsed JSON.
[tantek] joined the channel
#
Zegnat
I might be able to see something in my access logs. But again. That’ll be tomorrow :)
#
Zegnat
If you want to test it yourself, just try to login to sink.zegnat.net. Everyone can post to it and see what happens with their Micropub clients :D
#
schmarty
haha, neat!
#
Loqi
awesome
j12t and j12t_ joined the channel
#
aaronpk
it does not! I should add that
#
Loqi
aaronpk: [eddie] left you a message 8 minutes ago: Does micropub.rocks include the ability to do token revocation? I got a 400 error and I wasn’t sure if I did something wrong or if it isn’t supported. I seemed to get a 200 from indieauth.com’s token endpoint for eddiehinkle.com so I’m assuming the micropub.rocks token endpoint just doesn’t have that built it?
#
schmarty
a-ha! a combination of composer's autoload psr-4 configuration plus giving my handlers a namespace seems to work.
#
GWG
schmarty: I tried out your screech client, by the way
#
schmarty
i think this means i can start pulling logic out of jekyll plugins and into my publishing hook 🎉
#
schmarty
GWG: neat! how did it go?
#
GWG
schmarty: I opened an issue
#
schmarty
did you stop before trying a test post?
#
schmarty
("add docs" is a good issue but doesn't tell me how your experience went)
#
GWG
schmarty: I tried a test post.
#
GWG
It worked.
#
GWG
It inspired me to do some tweaks to support it
#
GWG
schmarty: What properties do you wish you supported?
#
schmarty
for screech? i want to add support for a poster image (probably just a u-photo). there are other things i have in mind but i need time to think of them before i just rattle off a bunch of plumbing ideas.
#
GWG
Hmm...
tantek and John___ joined the channel