#wordpress 2018-06-24

2018-06-24 UTC
[eddie], [nate658], [cleverdevil] and [jgmac1106] joined the channel
#
[jgmac1106]
but in a way that is the DIY ethos for WordPress. You aren't building some one off CMS, not at your skill level, Instead you spend a lot iof time diagnosing and trying to figure out why things don't work the way they should. Every WordPress user has to deal it. Something always breaking is a core feature of the experience
#
[jgmac1106]
that is IndieWeb or no IndieWeb.
jgmac1106 joined the channel
#
jgmac1106
@wiobyrne Reading Chrois’s post I forgot to try the export to Markdown option that might come out cleaner for a read post. Will try
#
GWG
Morning, jgmac1106
#
jgmac1106
hey buddy , hope the train has been awesome
#
GWG
jgmac1106: Umm...that's not for another 12 hours
#
jgmac1106
ohhh, my bad. I thought you did one of those cross country trains
#
GWG
No. I took the plane.
#
GWG
I'm only taking a train down from Seattle.
#
jgmac1106
I leave in two hours
#
GWG
That's good
#
GWG
I am just sitting here doing some WordPress work
#
jgmac1106
I have an online class starting Monday, last minute prep on that. Probably a ton on the flight
[wiobyrne], tantek__, [snarfed], [anika], sebsel, chrisaldrich and [eddie] joined the channel
#
[eddie]
Hmmm both my Wordpress instance and an Indigenous for iOS user’s instance keeps showing IndieAuth server did not return the same state parameter
#
Loqi
[vishae] #195 Issues with logging in
#
[eddie]
I think from looking at the Wordpress code it has something to do with cookies
#
GWG
There is a cookie that stores the state.
#
aaronpk
latest version?
#
[eddie]
Yep, I’ve installed the latest version on mine
#
[eddie]
I think it has to do with when you are logged out. Then you log in in order to authenticate the IndieAuth
#
[eddie]
I think it works fine if you are already logged in
#
aaronpk
hm does logging in delete that cookie somehow?
#
[eddie]
Ohhh maybe 🤔
[jgmac1106] joined the channel
#
[eddie]
I guess I should create a GitHub issue lol
#
GWG
How else can I retain the state? IP address check?
#
aaronpk
need to figure out how to persist the cookie even when they're logged out
#
aaronpk
other oauth plugins seem to have figured it out
#
Loqi
[EdwardHinkle] #70 Error: IndieAuth Server did not return the same state parameter
[chrisaldrich] joined the channel
#
GWG
It's a separate cookie, not the Wordp one.
#
GWG
WordPress
#
[eddie]
Hmm strange. There’s definitely something wrong with the authentication. I’ve recorded a video showing the behavior and it’s odd
#
[eddie]
If you click authorize it returns me logged out. But if I click on the “back to Wordpress” link it takes me to the Wordpress instance and I’m still logged in
#
GWG
Yes, cannot reproduce that.
#
GWG
Need to fix it though
#
aaronpk
[eddie]: can you write up the steps so GWG can try to reproduce it?
#
GWG
But the cookie is only used for websignin
#
aaronpk
I thought you stored the state in a cookie too?
#
aaronpk
the client sends the state parameter with the first request
#
GWG
I do, the state when it is the client
#
GWG
Not when the client is external.
#
aaronpk
it needs to store it when it's acting as a server too
#
aaronpk
in order for it to return the state back to the client
#
aaronpk
whatever the client sends as the state it needs to store
#
GWG
It passes it around, but never actually stores it
#
aaronpk
that's the problem then
#
GWG
Oh?
#
aaronpk
because when you're logged out, the plugin loses the continuous flow that it has normally
#
[eddie]
I realized I don’t think it’s necessarily about being logged out
#
[eddie]
I think I’m already logged in
#
[eddie]
It just looks like I’m logged out because it returns me to the “login screen”
#
[eddie]
[eddie] mentioned a file: Video of Wordpress indie auth issue.MP4.
#
[eddie]
Hmm doesn’t seem to share right to irc. I’ll add my steps to the GitHub issue
#
GWG
What would you suggest?
#
aaronpk
wait that's a weird error
#
aaronpk
why does wordpress say the indieauth server didn't return the state parameter
#
aaronpk
wordpress *is* the server in this case
#
GWG
The only place that string appears is in the web signin class
#
aaronpk
well that's confusing
#
GWG
Must be triggering somehow.
[dougbeal] joined the channel
#
GWG
Must be a failed check
[anika] and [nate658] joined the channel
#
aaronpk
what's weird is that I can log in to aperture just fine using my wordpress install
#
GWG
That's why I am confused
#
aaronpk
I tried when I was logged out of wordpress first too
#
GWG
I think it may be stripping something
[wiobyrne], [grantcodes] and [eddie] joined the channel
#
[eddie]
I’m wondering if it is related to iOS’s SFAuthenticationSession? It only allows cookies of the domain approved, so if there is a mismatch between www. And root, maybe that is going wrong?
[schmarty] joined the channel
#
GWG
Is everyone with a problem on iOS?
#
[eddie]
As I only run an iOS app, I haven’t heard of anyone having an issue that isn’t on iOS
[jgmac1106] joined the channel
#
[eddie]
So I would say, currently, yes
#
GWG
So, how do we solve?
#
[eddie]
I guess, if we understand more about the cookies that are being set, I can try and compare the values to how Apple handles the cookies in the SFAuthenticationSession and we can see if I can discover a mismatch in that way
#
[eddie]
it seems that it’s failing in $token->verify
#
[eddie]
that causes the error to be displayed
#
[eddie]
So if you can point me to where that cookie would be set
gRegor-mobile joined the channel
#
GWG
About 5 lines up
#
GWG
In the same function
#
GWG
But why is the problem there?
#
GWG
That code is only used for clients not for endpoints
#
GWG
It shouldn't be triggered by Indigenous
#
[eddie]
Oh really?
#
[eddie]
Well that’s strange
#
[eddie]
When I got to authorize in iOS it literally shows me the IndieAuth auth screen and when I press authorize it shows me the login/error screen
#
[eddie]
Those two screenshots are back to back
#
GWG
I think it's stripping the WordPress cookie so it is reverting breaking the redirection
#
[eddie]
Ahhh okay. Where would I look at the cookie to investigate what might be wrong between iOS and the cookie
#
GWG
The Wordpress cookie?
#
[eddie]
Well the authentication is fine, because if I click on a link within the same window to go to the dashboard, I’m already logged in
#
[eddie]
So I think it’s an issue with an IndieAuth Wordpress cookie
#
[eddie]
As opposed to an authentication cookie
#
aaronpk
[eddie]: what character set does your state parameter use
#
aaronpk
anything other than a-zA-Z0-9?
#
[eddie]
Ohhh good question, let me check
#
aaronpk
the plugin doesn't store the state in a cookie, it just passes it around between pages, so i'm wondering if it's a URL/html escaping issue
#
GWG
There is no Indieauth WordPress cookie for this function
#
GWG
That's the problem
#
[eddie]
Ohhh hmmm okay.
#
[eddie]
Nope, a-Z0-9
[grantcodes] joined the channel
#
GWG
I am not sure how that code is triggering. The state error should occur if you are not logged in and the code parameter is still being passed.
#
[eddie]
So my Wordpress is on “http://Wordpress.abode.pub”
#
[eddie]
Oddly Apple says it’s gonna use cookies from abode.pub
#
[eddie]
I wonder if it’s not able to get the subdomakn cookies?
#
GWG
How do we fix that?
#
[eddie]
Because now Indigenous isn’t having me be logged in
#
[eddie]
That’s a good question. I’ll google and see if there is anything I can do differently with SFAuthenticationSession
#
[eddie]
Wait, SFAuthenticationSession was depreciated in iOS 12! What?!?
#
[eddie]
They just introduced it in 11
#
[eddie]
Well maybe the solution is finding out Apple’s new approach to OAuth and using that
#
aaronpk
oh jeez
#
aaronpk
they keep changing it
#
[eddie]
Yeah. Looks like it’s ASAuthenticationSession now. Lol! But only in iOS 12, so I can make that change until September
#
[eddie]
Well looks like there is a little more for me to investigate. I’ll update the ticket after some more investigation on my side, GWG. Thanks for the brainstorming help GWG and aaronpk 🙂 I feel like I understand a bit more what *might* be going on
#
GWG
I wish it was simple.
#
[eddie]
Me it 😁 haha
mblaney_ and [tantek] joined the channel