#wordpress 2018-05-05

2018-05-05 UTC
#
GWG
So, it's the cookie?
#
aaronpk
Actual cause is unknown but somehow he got there and the cookie was not set
#
GWG
I got that problem before. The cookie expiration was being set with an improper time
#
GWG
I fixed it
#
GWG
Although I think I should replace current_time with time
#
GWG
Cookies should be set to UTC
#
[miklb]
why is there a cookie being set? I must have missed something
#
aaronpk
That's a good question actually, GWG why is it storing the authorization endpoint in a cookie?
#
aaronpk
Shouldn't it know that from the wordpress settings?
#
GWG
aaronpk: pfefferle did that, remember?
#
aaronpk
I don't
[chrisaldrich] joined the channel
#
GWG
There was an issue about keeping the endpoint data on redirect, so you and he added the cookie to store it
#
aaronpk
Weird I don't remember that
#
aaronpk
Was that before the new settings interface?
#
GWG
I didn't come up with the idea myself.
#
GWG
I implemented it because you two suggested it.
#
aaronpk
Oh gosh
#
GWG
Gosh?
#
aaronpk
I forgot about trying to log in to a wordpress site with a different IndieAuth server
#
Loqi
[aaronpk] (also the better solution is to store the endpoint in the session when you start to avoid needing to look it up again)
#
[miklb]
[colinwalker] your post to Drafts action requires the basic auth plugin, have you tested it with the new IndieAuth plugin?
#
[miklb]
!tell [colinwalker] your post to Drafts action requires the basic auth plugin, have you tested it with the new IndieAuth plugin?
#
Loqi
Ok, I'll tell them that when I see them next
#
GWG
[miklb]: What?
#
GWG
What action is this?
#
[miklb]
Drafts 5 for iOS
#
[miklb]
he’s using the REST API to post to WP
[manton] joined the channel
#
GWG
Oh, no wonder
[kevinmarks], helo1, [tantek], [chrisaldrich], tantek, dougbeal|mb1, [eddie], [jeremycherfas], chrisaldrich and [pfefferle] joined the channel
#
[pfefferle]
that was my “hack” to make it work with a different auth server… never thought it would be merged without changes 🙂
#
[pfefferle]
there are really some checks missing
sebsel, Zegnat[web], tantek, [jeremycherfas], [sebsel], [tantek], [kim_landwehr], [eddie], [unoabraham] and [colinwalker] joined the channel
#
[colinwalker]
!tell miklb I haven’t, would it work?
#
Loqi
Ok, I'll tell them that when I see them next
[miklb] joined the channel
#
[miklb]
It should
#
[colinwalker]
I’ll have to have a look at how I’d do the authentication.
#
[miklb]
my understand is that was one of the benefits of the indieauth plugin is that it could be used to auth the REST API
#
[miklb]
understanding
#
[colinwalker]
Interesting.
#
[miklb]
I haven’t done anything with REST API auth so I’m not sure of the process. But I’m very curious
#
[colinwalker]
Me too now 😆
#
[colinwalker]
I’love have a look when I get home or tomorrow.
#
GWG
You just have to send in a bearer token
rotozeev, [chrisaldrich] and davidmead joined the channel
#
davidmead
I just updated the WP IndieAuth plugin and now I don’t have a ‘Users > Manage Tokens’ in my WP menu. Is that correct?
[colinwalker] joined the channel
#
[colinwalker]
@GWG thanks. Forgive me if I’m being stupid but I’m getting “Your have entered a valid Domain, but you have no account on this blog.” How do I associate the domain to an existing WP account?
#
GWG
davidmead: If you aren't using the local endpoint, it will no longer show
#
GWG
davidmead: It is only useful if you do.
#
GWG
[colinwalker]: Add the URL to your user profile?
#
[colinwalker]
It already is.
#
davidmead
Ah, ok GWG. I’m still trying to figure out the issues with no micropub endpoint in my WP
#
davidmead
that was one thing aaronpk asked me to check before
#
GWG
I hope we can figure out any issues and fix them
#
GWG
[colinwalker]: Interesting. There is a simpler way. If you have the Indieweb plugin, and set your site to single author mode there, it will map that way
#
[colinwalker]
I don’t use the indieweb plugin, hmm. Might have to start doing so.
#
GWG
[colinwalker]: You shouldn't, but it is a good way to troubleshoot
#
GWG
Shouldn't have to, excuse me
#
[colinwalker]
OK thanks, will test.
#
GWG
We've found a few issues we want to tighten up where it doesn't work for everyone
#
davidmead
GWG yeah. i don’t know why everything just stopped working a month or so ago
#
GWG
davidmead: That's when I added the local endpoint
#
davidmead
GWG do you think I should strip out all the meta links I have on davidjohnmead.com/index.html ?
#
davidmead
wonder if those are causing a conflict when you get to davidjohnmead.com/blog which is the WP part
#
GWG
davidmead: Meta links I can't see why.
#
[colinwalker]
GWG Looks like that worked, it logged me in but I don’t see Manage Tokens.
#
davidmead
GWG I’m getting to that “burn-it-all-down-and-start-afresh” point ;-)
#
GWG
[colinwalker]: What setting do you have under General?
#
[colinwalker]
Local endpoint
#
GWG
Then you should see Manage Tokens under your user name.
#
GWG
Odd.
#
[colinwalker]
I wonder if it’s because my main posting account has limited permisisons
#
GWG
[colinwalker]: It's possible. How limited?
#
[colinwalker]
Basically it can post, update, and upload media
#
GWG
[colinwalker]: To see it, you need the 'read' capability which allows you access to the dashboard and user profile settings
#
[colinwalker]
It’s got that
#
GWG
Then it should be there
#
GWG
But, do you need to Manage Tokens?
#
[colinwalker]
Was under the impression I’d need to see it to use it elsewhere. If not what do I pass as the bearer token & in what format?
#
GWG
colinwalker, you can't see the bearer token
#
GWG
You'd need to request one using an IndieAuth flow.
#
GWG
Although issuing them manually is not a bad feature request
#
GWG
Once generated, they are not stored, only a hash of them is.
#
[colinwalker]
Ah. Got to try to figure out how to do that in javascript within Drafts then.
#
GWG
Try Gimmeatoken if you want to test
davidmead joined the channel
#
[colinwalker]
Gimmeatoken gives me “Missing Parameter: state”
[dgold] joined the channel