#dev 2018-06-16

2018-06-16 UTC
iasai and [tantek] joined the channel
#
GWG
If a Micropub client doesn't request scopes, what should a Micropub/IndieAuth server do?
#
aaronpk
If it doesn't request scopes it's making an authentication request
#
aaronpk
So don't issue an access token, just allow the authorization code to be verified
#
Loqi
[miklb] #133 Bug: Posting from Omnibear with IndieAuth fails.
#
aaronpk
Oops I remembered that wrong
#
aaronpk
response_type is the thing that tells it what kind of request it is
#
aaronpk
Scope is optional and the auth server should set a default if none was requested
#
GWG
aaronpk: It says there that the authorization server should deliver one. I'd better go check.
[cjwillcock] joined the channel
#
KartikPrabhu
!tell [kevinmarks]: please review the PR https://github.com/microformats/mf2py/pull/106
#
Loqi
Ok, I'll tell them that when I see them next
#
Loqi
[kartikprabhu] #106 new version 1.1.1
AngeloGladding and tantek__ joined the channel
#
tantek.com
edited /Planning (-25) "/* Berlin */ got rooms at Mozilla Berlin!"
(view diff)
#
aaronpk
Ooh does that mean Berlin dates are set?
renem, strugee, snarfed and eli_oat joined the channel
#
gRegorLove
chrisaldrich: the indiebookclub settings page now has the last micropub response. That might help debug the error you're getting. A couple other WordPress people have had it work, so I think maybe it's an outdated plugin?
[mrkrndvs], tantek__, eli_oat and tantek_ joined the channel
#
tantek_
aaronpk yes if they still work for Joschi!
chrisaldrich, [chrisaldrich], KartikPrabhu, snarfed and [sebsel] joined the channel
#
seblog.nl
edited /Planning (+13) "/* Berlin */"
(view diff)
[Vanessa] joined the channel
[kevinmarks] joined the channel
#
www.svenknebel.de
edited /Planning (+14) "/* Berlin */ $me"
(view diff)
[jgmac1106] and jeremych_ joined the channel
#
Zegnat
First time I actually see a .dev URL in use! https://pptr.dev/
#
jeremycherfas
Zegnat I am finally able to work a bit on my Grav micropub, and I have forgotten my password for /auth. Do I just delete config.php and rerun setup.php?
#
jeremycherfas
needs to take better notes
#
jeremycherfas
I suppose I could try and recover it first. I know it was very simple!
#
Zegnat
Selfauth has no need for any sort of persistent information, so you can redo the config file as often as you like
sebsel joined the channel
#
jeremycherfas
Omnibear is playing up again. Alas. And the Inspect pop-up doesn't seem to work any more, since 1.1.0
#
jeremycherfas
Still hangs on "Retrieving access token..." but does actually retrieve it.
#
jeremycherfas
Error authenticating to micropub endpoint.
#
jeremycherfas
But looks as if it isn't even sending the request.
#
jeremycherfas
Maybe I should open a tunnel to Quill instead.
#
Zegnat
I haven’t played with the latest Omnibear yet
#
jeremycherfas
Login fails with Quill through ngrok.
#
jeremycherfas
Would that be because auth_me is different?
#
jeremycherfas
I don't see how.
#
jeremycherfas
And I don't think there is any way to revert to an earlier version of Omnibear.
#
Zegnat
I think Omnibear has all its historical releases downloadable on GitHub
#
Zegnat
What is Omnibear?
#
Loqi
Omnibear is a browser extension for posting text notes, replies, and likes to your website using Micropub https://indieweb.org/Omnibear
#
Zegnat
And yes, login not working over something like ngrok could be because of domain validation in the IndieAuth flow
#
jeremycherfas
Ah. So it might need a new USER_URL ?
#
jeremycherfas
That would be a pain.
#
jeremycherfas
What is shpub
#
Loqi
shpub is a command line micropub client written by Christian Weiske https://indieweb.org/shpub
#
jeremycherfas
Maybe I should try that instead.
#
jeremycherfas
!tell cweiske Not seeing how to specify which server when I post a note from shpub
#
Loqi
Ok, I'll tell them that when I see them next
#
Zegnat
jeremycherfas: “You can select a specific server/connection with -s on all commands.”
#
jeremycherfas
Right. But -s="server" doesn't seem to work. Must option come before the comman, or after the command and the content?
#
jeremycherfas
"If you pass a third parameter, then that will be the name of the connection." if note is first parameter and content is 2nd, URL of server as third does NOT work
#
Zegnat
Not sure it works with =. Here is an example, it shows it as the first option specified: http://cweiske.de/shpub.htm#debugging
#
jeremycherfas
Brilliant. Thanks I'll try that.
#
jeremycherfas
It doesn't actually find /offlinepub.test/mp/
#
jeremycherfas
And yet, it is definitely there, and I can reach it with the exact url that the error message returns
#
Zegnat
Do you have a specific error messages from shpub?
#
jeremycherfas
Yes. 404 "The requested URL /offlinepub.test/mp/ was not found on this server."
#
jeremycherfas
I wonder whether it is something about relative URLs
#
Zegnat
If you do `shpub server -v` does that show correct URLs?
#
jeremycherfas
But the rel is correct <link rel="micropub" href="http://localhost:8888/offlinepub.test/mp/">
#
Zegnat
As shpub is stating the URL starting with a /, it should be relative to the domain, so sounds like it is doing the right thing
#
Zegnat
Ask shpub for the curl command it tries to use and see exactly what URL it is calling?
#
jeremycherfas
Could be permissions?
#
Zegnat
If you browser can access the URL, so should shpub.
#
jeremycherfas
Would permissions give a 404? Or more likely something like forbidden.
#
jeremycherfas
That's what I thought. Truly baffling.
#
Zegnat
And that URL is accessible in your browser?
#
jeremycherfas
Absolutely
#
Zegnat
Then it should also be curlable
#
jeremycherfas
I could try curling it direct.
#
jeremycherfas
I did it with -I and got a 200
#
Zegnat
Also fine. I have grown to doing -vvv which will display the whole back and forth between curl and the server. Including redirects and possible HTTPS negotiations. Can be helpful :)
#
Zegnat
And if you do the curl request that shpub can generate for you?
#
jeremycherfas
-vvv shows me a list of all the files in that location as html
#
jeremycherfas
404 not found.
#
Zegnat
A list of files?
#
jeremycherfas
Yes, because that's where nanopub.php lives.
#
Zegnat
Aaah!
#
jeremycherfas
Aaaah indeed.
#
Zegnat
You should include nanopub.php in the micropub URL then ;)
#
jeremycherfas
Need to point the endpoint at the actual endpoint, not just the folder!
#
jeremycherfas
Rubber ducking FTW.
#
Zegnat
rubberducking++
#
Loqi
rubberducking has 1 karma
#
Zegnat
Hmm, didn’t we add that before?
#
Loqi
agreed.
#
Zegnat
!karma rubberduck
#
Loqi
rubberduck has 0 karma
#
jeremycherfas
I feel we must have, somewhere, because Omnibear was working before, but I'm trying to find where.
#
Zegnat
Either you had a different rel="micropub" before, or maybe you were using skippy’s endpoint with Omnibear? Skippy’s sits at index.php I believe
#
jeremycherfas
I hard-coded $base_url in skippy's and that was working. Then decided to work with dgold's nanopub instead because that seemed simpler. :)
#
jeremycherfas
But even after changing the endpoint, shpub continues to use the previous one.
#
Zegnat
shpub might be stuck on the first endpoint it discovered
#
jeremycherfas
Seems like it.
#
jeremycherfas
How do you add a GET command to curl?
#
jeremycherfas
If I wanted to test q= for example
snarfed joined the channel
#
Zegnat
The curl default is GET. And those parameters are just ?q=bla behind the URL. So http://localhost:8888/offlinepub.test/mp/nanopub.php?q=something
#
Zegnat
I think you can find the shpub URL settings in ~/.config/shpub.ini :)
#
Zegnat
Though, hmm, that doesn’t seem to contain the endpoints.
#
jeremycherfas
I see the URL setting, and they are correct. So I thought it would go to the URL, discover the micropub endpoint, and then use that.
#
Zegnat
Maybe that is what it is doing, yea. checking source now
#
jeremycherfas
I could simply delete and start again.
#
Zegnat
Hang on
#
Zegnat
~/.cache/shpub/ has files with the endpoints
#
Zegnat
if you empty that folder, it should go and rediscover the endpoints
#
Zegnat
Or you can change it there, if you want, are just ini files
#
jeremycherfas
Didn't discover the new endpoint. I'll empty caches. Although I don't see why, as Chrome is displaying the new endpoint in source.
#
jeremycherfas
Oh now that's interesting. Shpub did not create new cache files even though I reauthroised.
#
jeremycherfas
Now getting an error from nanopub, which is definite progress.
#
jeremycherfas
The request lacks valid authentication credentials
#
jeremycherfas
And that is to do with $response['me']
#
jeremycherfas
So need to check in configs.php
#
Zegnat
Getting all your URLs synced up can be a bit of a pain in these situations
#
jeremycherfas
Fixed! Woohoo. But what I have used two of the three hours available this afternoon just to get back where I was. I doo think though that shpub is the easier tool to test from.
#
jeremycherfas
Zegnat++ for rubber ducking
#
Loqi
zegnat has 70 karma in this channel (226 overall)
#
jeremycherfas
Cweiske++ for shpub, even in his absence.
#
Loqi
cweiske has 37 karma in this channel (142 overall)
#
Zegnat
shpub, especially with the ability to grab the generated curl commands, is much “closer to the metal” in many ways
#
jeremycherfas
Which ordinarily would be scary, but in this case being able to see what's going on is actually reassuring.
#
jeremycherfas
Given Grav's folder structure, my goal is to see up variables that my fork of nanopub can use to decide where to put things.
#
Zegnat
command failing? Get the generated curl from shpub, add -vvv, run it yourself, see what is going on outside of expectations. Tweak the server. Redo curl. This is not really user friendly, but it definitely is developer friendly :)
#
jeremycherfas
I suppose it is best to create my own section within the existing configs.php
iasai joined the channel
#
Zegnat
I wouldn’t worry too much about where you are storing configs for the first implementation
#
Zegnat
Stepping away from my screen a bit, good luck with the code jeremycherfas :(
#
jeremycherfas
It is a beautiful afternoon here; I should do the same. Have fun, and thanks again.
[kevinmarks], barpthewire, [miklb] and snarfed joined the channel
#
jeremycherfas
Is there any reason why mkdir http://localhost:8888/grav-admin/user/pages/05.note/WTF3/ from the terminal creates the folder in usr/bin, and from a PHP program seems to have no effect whatsoever?
#
[miklb]
I don’t think you can mkdir a URL
#
[miklb]
you need the full path
#
Zegnat
yep. What [miklb] says.
#
jeremycherfas
"It was working before"
[miklb] and [cleverdevil] joined the channel
#
[cleverdevil]
!tell [grantcodes] I’m not sure if it’s me being on the iOS 12 beta or the latest metadata changes, but I can no longer use Together as a PWA. When I try and login, it opens my website in Safari rather than keeping the login process inside the PWA.
#
Loqi
Ok, I'll tell them that when I see them next
sebsel, barpthewire, swentel, KartikPrabhu, [kevinmarks], chrisaldrich, gRegorLove and [chrisaldrich] joined the channel
#
petermolnar
I made some simplifications to my CSS but I still feel like something is missing
#
petermolnar
I got rid of the body { font-size: } part
#
petermolnar
so it should be using the browser default, which will make it an interesting experiment
[kevinmarks] joined the channel
#
[kevinmarks]
If you use em/rem elsewhere that should still work
#
petermolnar
yep, I'm aware, and that works
#
petermolnar
but for a very, very long while, I always had a base 20px or similar defined
#
KartikPrabhu
having px sizes on the html element also works with browser resizing if you use em/rem everywhere
#
KartikPrabhu
I find that brwoser default font sizes are too small
#
Loqi
[KartikPrabhu] !tell [kevinmarks]: please review the PR https://github.com/microformats/mf2py/pull/106
[Vanessa] joined the channel
#
[kevinmarks]
Wow, looks like big improvements
#
KartikPrabhu
yup, and the experimental stuff for snarfed
#
KartikPrabhu
[kevinmarks]: if you do accept it it would also be good to add "tags" and cut a release
sebsel joined the channel
#
gRegorLove
!tell jackjamieson, jgmac1106 indiebookclub has an option for DOI Name now. Try it out and let me know what you think.
#
Loqi
Ok, I'll tell them that when I see them next
#
gRegorLove
chrisaldrich, In case you didn't see it (forgot to !tell) https://chat.indieweb.org/dev/2018-06-16#t1529119417375700
#
Loqi
[gRegorLove] chrisaldrich: the indiebookclub settings page now has the last micropub response. That might help debug the error you're getting. A couple other WordPress people have had it work, so I think maybe it's an outdated plugin?
#
gRegorLove
DOI might be of interest to you as well ^^
#
GWG
Gregorlove, it's not Micropub, it's Indieauth again
#
gRegorLove
Weird that it's working for some and not others. That's why I was thinking maybe he has an older version of some plugin, like indieauth
#
GWG
Gregorlove, I just knock them down as I see them. I haven't had a single issue I am trying to troubleshoot
#
gRegorLove
Let me know if there's anything I can do to help debug
#
GWG
Makes it hard. I found some bugs, and I could stand to write more unit tests
#
GWG
My next fix is pushing support for your read properties in Post Kinds
#
gRegorLove
access_token is not sent in the body since it's a JSON request, just the Authorization: Bearer header
KartikPrabhu joined the channel
#
GWG
Gregorlove, to which?
#
GWG
I am missing context
#
gRegorLove
indiebookclub doesn't send access_token in the body, only the HTTP Authorization header.
#
gRegorLove
Just an additional data point, if that matters to the WP plugin
#
GWG
The plugin should support both
snarfed joined the channel
#
gRegorLove
So maybe get_current_user_id() isn't returning the user_id
#
GWG
Gregorlove, it isn't the Micropub plugin
#
gRegorLove
The IndieAuth plugin doesn't return a 401 anywhere I can find.
#
gRegorLove
And that's Micropub plugin hooking into IndieAuth
#
gRegorLove
This error isn't during authorization, it's when the micropub post is sent. Micropub plugin must be hooking into IndieAuth somewhere.
#
gRegorLove
Sorry, clarifying, Indieauth plugin doesn't return a 401 with body "Unauthorized" that I can find. Only that line linked above does that.
#
GWG
The rest API does
#
GWG
The difference between the Micropub plugin and the IndieAuth plugin is that the IndieAuth plugin uses the WordPress authentication system and the Micropub plugin bypasses that and uses its own.
#
GWG
I would much rather work within the system, but apparently there are issues in handover.
KartikPrabhu, snarfed and [eddie] joined the channel
#
[eddie]
get things wrapped up
#
[eddie]
!tell aaronpk: I’m working hard on trying to get Indigenous out in time for IWS. I know for SURE I’ll at least have a “Pre-Order” button with a page with screenshots done, but I’m still trying to get the full thing ready for download before. Just to help me set my own expectations, do you think Aperture will/would be able to have a public opening by then, or does that not look possible anymore? That will help influence my choices of wh
#
Loqi
Ok, I'll tell them that when I see them next
snarfed joined the channel