#wordpress 2018-09-07

2018-09-07 UTC
[tantek] and bradenslen joined the channel
#
GWG
Just landed
#
GWG
Indieauth the plugin or the thing?
tbbrown joined the channel
#
miklb
the plugin
#
miklb
also, welcome closer to home
#
miklb
I guess my question is, is it possible for an issue with the indieauth plugin to surface in the micropub plugin?
#
GWG
Yes, because one uses the other to log in
#
GWG
In order to increase the accuracy, the token now has the user number in it
#
GWG
At least in the Indieauth plugin
#
GWG
I wonder if there should be a url to user ID endpoint
#
GWG
Probably a security leak
#
miklb
the added endpoint? I could see that.
#
GWG
See which?
#
GWG
Nearly home
#
miklb
I thought you were saying an added user ID endpoint would be a security leak.
#
GWG
Well, the issue is this.
#
GWG
If it is protected, then I'd have to authenticate it with an IndieAuth token, which defeats the purpose of using it to match URLs
#
GWG
If it is protected, then I'd have to authenticate it with an IndieAuth token, which defeats the purpose of using it to match URLs \
#
GWG
On my computer for the first time in a bity
#
miklb
interesting. it's only because when chrisaldrich posted his error log today from OYS (which works for me) had the same user 0 as did failing to authenticate with Omnibear.
#
miklb
as does my Omnibear error I should say
#
GWG
Yes. Which is what I still can't figure out.
#
GWG
I need to figure out what to look at to troubleshoot that issue.
#
miklb
it's the only common denominator I can find
#
GWG
Yes. But it is a symptom of it not logging in.
#
GWG
But, the cause is still a mystery
#
miklb
Omnibear gets an auth token, it just hangs. I can't speak to what is happening between OYS and chris
#
miklb
the beta version has better logs so there is more to look at there. I could share that if it would help.
#
GWG
If you could.
#
GWG
I haven't looked at the beta version do the journey.
#
GWG
Did he try revoking his token and getting a new one?
#
miklb
who is he? keithjgrant ?
#
miklb
I haven't done that
#
GWG
I meant chrisaldrich in OYS?
#
miklb
that I do not know
#
miklb
is there a difference between /v2 on that user URL and /1.0 for the syndicate-to query?
#
miklb
miklb.com/wp-json/micropub/1.0/endpoint?q=syndicate-to vs https://miklb.com/wp-json/wp/v2/users
#
miklb
nevermind
#
miklb
completely different endpoints
#
miklb
long day was long
#
GWG
Mine too
#
GWG
I was just pointing out that the built-in endpoint already has the information needed without logging in
#
miklb
gotcha.
#
GWG
I could probably enhance it to add the author post url
#
miklb
GWG here's the log file from Omnibear failing at getting syndicate-to https://gist.github.com/miklb/0243dcafacae2b58f4cfba4c79d31531
[manton] joined the channel
#
GWG
I have a few ideas I can try.
#
GWG
It couldn't be a case sensitive issue, could it?
#
miklb
stranger things have happened
#
GWG
I'm looking at how it looks
#
GWG
It looks for HTTP_AUTHORIZATION in the $SERVER header
#
GWG
Then it looks for REDIRECT_HTTP_AUTHORIZATION
#
GWG
Then it tries to get all headers and looks for authorization. And it does strtolower.
#
GWG
So, can't be that.
#
GWG
miklb: After you get that rejection, if your WP_DEBUG is on, can you check your server error log.
#
GWG
What does it say other than unauthorized?
#
miklb
sure. Let me clear my logs and try a fresh test and check the server logs
#
miklb
same error as what chrisaldrich posted today is what my debug.log has
#
GWG
But did you see this? (Header Absent)
#
GWG
The interesting part is, that REST request note is a debug in IndieAuth.
#
GWG
But we're not seeing a request to IndieAuth.
#
GWG
Only to Micropub
#
miklb
what is the snydicate-to endpoint? I just noticed a setting in Omnibear that defaults to mp-syndicate-to
#
Loqi
It looks like we don't have a page for "snydicate-to endpoint" yet. Would you like to create it? (Or just say "snydicate-to endpoint is ____", a sentence describing the term)
#
GWG
syndicate-to is a query. mp-syndicate-to is a command.
#
miklb
ah, I misread the surrounding text in the extension. got it
#
GWG
This is weird.
#
GWG
I just added in an error log function. It has the token.
#
miklb
what has the token?
#
GWG
Micropub has a token with user 1 in the test I just ran. But its returning 0
#
miklb
that sounds like progress
#
GWG
I think I found a way to fix this.
#
GWG
Can you go into the Indieauth plugin, to includes/class-indieauth-authorize, change the priority of determine_current_user from 30 to 15 and try Omnibear?
#
GWG
Tell me if it worked
#
miklb
it did not, same error
#
GWG
Odd. It fixed it for me. But I'm not running the beta
#
miklb
I can switch
#
GWG
Odd.
#
GWG
Still going to file the PR for IndieAuth
#
GWG
miklb: What other plugins do you have installed?
#
miklb
I have quite a few. I'm clearing out all of the tokens I have for omnibear. There must be 20 in that list. Probably would have been easier to do in the db
#
GWG
I need to add in a 'bulk' option for that
#
miklb
didn't solve the problem, but it would be nice to be able to clear 100 quill tokens :-)
#
miklb
but Omnibear gets a token
#
GWG
Yes.
#
GWG
But it is not logging in.
#
GWG
For me, changing the priority seemed to work
#
GWG
Just wondering if another auth plugin is getting in the way
#
miklb
should I try lower?
#
GWG
You can't go lower than 11
#
miklb
I do use 2sa but that hasn't gotten in way of quill or indigenous.
#
GWG
Odd though.
#
miklb
I just use the TOTP
#
GWG
It shouldn't impact
#
miklb
only other question is about being multi-site. Is chrisaldrich on a network also?
#
GWG
I don't think he is.
#
GWG
But I should look into multi-site.
#
GWG
I never explored multi-site testing and should.
#
miklb
I wasn't sure with all the different sites he's got going
#
GWG
I suppose it is possible.
#
GWG
I wonder how people unit test for multi-site
#
miklb
it's just weird that it isn't consistent on any one client but same error for multiple people.
#
GWG
Well, the error is the same, but the cause might be different. It's a failure to authenticate.
#
miklb
sure, I'm just looking for patterns and commonality in the errors.
#
GWG
Yes. Me too
#
GWG
I appreciate it.
#
miklb
feels like we're so close.
#
GWG
Yes. Multi-site might be it.
Vyoma1, tantek__ and [pfefferle] joined the channel
#
[pfefferle]
good morning
bradenslen joined the channel
#
GWG
Still working on the mornings
#
miklb
what is morning
#
Loqi
It looks like we don't have a page for "morning" yet. Would you like to create it? (Or just say "morning is ____", a sentence describing the term)
[xavierroy] joined the channel
#
GWG
Hello, [xavierroy]
#
[xavierroy]
Hi [dshanske]
#
GWG
Been up to anything Indieweb?
#
[xavierroy]
No. It has been a while... Life intruded... Expecting to be a bit free in a week or two.
#
[xavierroy]
Been trying out a personal finance management app, firefly iii though 😀
#
GWG
Ah, life. What a pest
[keithjgrant] joined the channel
#
[xavierroy]
Been watching a lot of TV though.. would like a way to import it to my site. Any TV oriented micropub thing available?
#
GWG
How do you watch?
#
[xavierroy]
Mostly streaming. I track on trakt
#
[xavierroy]
I think I saw someone mention a trakt micropub interface somewhere
#
GWG
I haven't looked, but anything with an API is doable
#
miklb
what is watching
#
Loqi
It looks like we don't have a page for "watching" yet. Would you like to create it? (Or just say "watching is ____", a sentence describing the term)
#
miklb
what is watch
#
Loqi
A watch is a semi-passive type of post used to publish that you have watched a video (movie, TV, film), or a live show (theater, concert) https://indieweb.org/watch
#
Loqi
[grantcodes] trakt-to-micropub: Send watched items to your indieweb website with micropub
#
miklb
I knew I heard at least one example
tantek__, jackjamieson, [kevinmarks], [grantcodes], [cleverdevil], [eddie], [kiai], [tantek], [gregorlove], doubleloop1 and [keithjgrant] joined the channel