IndiePass / indiepass-desktop

An IndieWeb Desktop app with extensions for sharing information to micropub endpoints and reading from microsub endpoints
https://indigenous.marksuth.dev
GNU General Public License v3.0
41 stars 1 forks source link

Microsub Channels #45

Closed stephenpieper closed 4 years ago

stephenpieper commented 4 years ago

I've managed to get the app (Mac version) connected to Wordpress for posting but I can't get my microsub channels to load. I've added a token from Wordpress and my Aperture endpoint into settings. Is there a step I'm missing?

swentel commented 4 years ago

Is there a step I'm missing?

I don't think so. The likeliness of this being a bug in the app is much bigger at this stage of development :)

Could you try the following:

Hopefully, you see something on the right in the developer tools. Either good or bad, something would be a good start.

My assumption is that there might be something wrong while parsing the content, so some JS error will be triggered.

stephenpieper commented 4 years ago

Thanks. This is the error appearing in the developers tools. "Failed to load resource: the server responded with a status of 403 ()"

I can post notes and images to Wordpress from the Post page. It's just the microsub part that's not working,

swentel commented 4 years ago

Ok, so access denied. That means the token isn't valid for some reason. Trying to think what might be wrong here. My own setup uses micropub and microsub on the same server (my own site), so that's one difference. But that shouldn't matter too much - at least I think so.

swentel commented 4 years ago

This might be a weird question: do you use the android client by any chance as well? If that works, I might have a clue - or at least some more places where I can look to start debugging :)

swentel commented 4 years ago

I do have one clue though: Did you generate a new token for this to test? In that case, the scopes might not be set right.

stephenpieper commented 4 years ago

I don't use the android client (iOS).

I've tried a few tokens with different scopes but still no luck. I'm sure I've covered them all but could you tell me exactly which ones I should be using?

swentel commented 4 years ago

For getting the channels and timeline 'read' should be enough.

swentel commented 4 years ago

Just wondering, how do you create new tokens. Installed wordpress locally, but can't a place where to create tokens manually, that would probably allow me to help debugging.

swentel commented 4 years ago

nevermind, just found it! :)

swentel commented 4 years ago

I think I found the problem: Aperture compares the 'me' value that is send along with the response when asking for the token. The problem with generated tokens is that the me value is set to something like 'http(s)://domain/author/authorname', and what is stored in aperture is just http(s)://domain/ - and then Aperture returns a 403.

swentel commented 4 years ago

I checked with Aaron and the url which is stored is 'https://stephenpieper.net/', so the 'me' value for the token should also be that.

Apparently, you can set the 'root' user for the 'me' value via settings. Note that you also need the 'Website' filled in 'Your profile'. Then, everything should be fine :)

It only does that if you don't configure it in settings You have to declare what user reflects the root
swentel commented 4 years ago

Added this information in the README.