#wordpress 2020-05-05

2020-05-05 UTC
[jgarber], [KevinMarks], nickodd, [fluffy], [Ramiro_Ruiz], gRegorLove, Ruxton, chimo, [LewisCowles], jeremych_, [Arne], beko and [schmarty] joined the channel
[LewisCowles], [jgarber], nickodd, [tantek], [schmarty], [tw2113], [KevinMarks], gRegorLove, [chrisaldrich], [benatwork] and cal joined the channel; nickodd left the channel
#
GWG
Cal:If you have any other questions, I contribute to both the Micropub and the IndieAuth plugins
#
cal
Thanks GWG!
#
cal
How does indieauth.com get authorization from wordpress.com?
#
GWG
It doesn't.
#
GWG
IndieAuth.com can't do that.
#
cal
So, I'm logged in to my wordpress.com site
#
GWG
Simple summary explanation
#
GWG
It's a WordPress.com site?
#
cal
and then a client uses https://indieauth.com/auth to get authorization
#
cal
I guess indieauth.com redirects to wordpress.com or something?
#
GWG
The URL is?
#
cal
yes, I just set this for testing: https://pokemongoers.wpcomstaging.com/
#
GWG
Cal: Can you install plugins on the main site?
#
GWG
I know wordpress.com, unlike self-hosted, limits that
#
cal
I had to upgrade to a biz paid account
#
GWG
So, IndieAuth.com is a reference implementation of IndieAuth the protocol
#
GWG
You don't need IndieAuth.com for Micropub to work
#
cal
and then when I tried to install the plugin, it said the domain pokemongoers.wordpress.com had to be renamed to pokemongers.wpcomstaging.com
#
GWG
If you install Micropub by itself, it uses IndieAuth.com. If you install the IndieAuth plugin, it turns your site into an IndieAuth endpoint, so nothing external is needed
#
cal
so I've got micropub plugin installed on https://pokemongoers.wpcomstaging.com/
#
GWG
Yes. Try the second plugin as well. That eliminates the need for using indieauth.com
#
cal
and via curl I see: curl -I https://pokemongoers.wpcomstaging.com/ HTTP/2 200 server: nginx date: Tue, 05 May 2020 21:48:04 GMT content-type: text/html; charset=UTF-8 vary: Accept-Encoding host-header: WordPress.com vary: Cookie link: <https://pokemongoers.wpcomstaging.com/wp-json/micropub/1.0/media>; rel="micropub_media" link: <https://pokemongoers.wpcomstaging.com/wp-json/micropub/1.0/endpoint>; rel="micropub" link:
#
cal
<https://indieauth.com/auth>; rel="authorization_endpoint" link: <https://tokens.indieauth.com/token>; rel="token_endpoint" link: <https://pokemongoers.wpcomstaging.com/wp-json/>; rel="https://api.w.org/" link: <https://wp.me/766Bd>; rel=shortlink x-ac: 2.sjc _atomic_bur strict-transport-security: max-age=15552000; includeSubDomains; preload
#
GWG
If you want to use indieauth.com, you need to set up something called relmeauth.
#
cal
so the end point is set up
#
GWG
Cal: Just a pointer to a remote endpoint
#
GWG
If you want to use your WordPress login, you need https://wordpress.org/plugins/indieauth
#
Loqi
[IndieWebCamp WordPress Outreach Club] Description The plugin turns WordPress into an IndieAuth endpoint. This can be used to act as an authentication mechanism for WordPress and its REST API, as well as an identity mechanism for other sites. It uses the URL from the profile page to iden...
#
cal
so, this won't actually allow me to publish to the wordpress.com site?
#
GWG
Micropub does publishing.
#
GWG
IndieAuth is authentication
#
GWG
Micropub needs IndieAuth to get a token to post to your site
#
GWG
None of the Micropub clients want your username and password
#
cal
can I get the token from https://indieauth.com/auth ?
#
cal
(even tho' it's really a wordpress.com site?)
#
cal
As context, I'm trying to write a client for micropub, and just trying to figure out
#
cal
if I did have the client, what are the steps I would users of my client how they can use the client to publish to wordpress.com
#
GWG
Micropub is fairly simple. It just needs a token to get permission
#
aaronpk
I forget the limitations on wordpress.com, is it possible to install plugins at all?
#
cal
right I tried all the steps manually through micropub.rocks
#
cal
so I think I know micropub itself pretty well
#
cal
but just confused how with a micropub client, a user can practically use it to publish to a wordpress.com site
#
cal
@aaronpk, yes, I paid a trial $300 to upgrade https://pokemongoers.wpcomstaging.com/
#
cal
and then installed the micropub plugin (I think successfully, at least from Curl)
#
aaronpk
ah wow!
#
aaronpk
let me see if there are any wiki pages that explain this
#
cal
most of threadreaderapp users want to publish to wordpress.com, so I figured I should get at least that use case right
#
aaronpk
but, the more straightforward setup path is to install both the indieauth and micropub plugins, then you shouldn't ever see indieauth.com in the mix
#
cal
ah, ok, so install IndieAuth to use wordpress.com endpoints, and then the Micropub plugin
#
cal
I'll try that thanks!
#
aaronpk
yep! or more specifically, install IndieAuth to use wordpress' built in login. it's not specific to wordpress.com
#
cal
ah, got it!
#
cal
sorry, I've been so slow on implementing this... had a few Twitter related fires to squelch!
#
aaronpk
i can imagine
[fluffy] joined the channel