micropub chaining

 micropub chaining  is when you have one micropub endpoint itself use micropub to post to another micropub endpoint, like to POSSE a post to silos, or to a community site or other commons.

2015-06-08 Concept described in IRC by http://indiewebcamp.com/irc/2015-06-08/line/1433793069686

2015-06-23 Term proposed in IRC by undefined

Why
By supporting micropub chaining on the micropub endpoint, you can use any micropub client to post to your site, and let your server handle automatic POSSEing (e.g. via silo.pub) to silos, or cross-posting.

How to
Your server must be both a Micropub server implementation with an endpoint, and then have stored state to be able to be a Micropub client implementation to post to other Micropub endpoints.

IndieWeb Examples

 * has Micropub Chaining working via Postly to mpTweet as of 2015-07-27. mptweet first requests a token with scope "register" from the user site, then sends ?register=&register_token=.   When syndicating mpTweet only uses content + url

Authorization Flow
One of the more difficult pieces will be getting the user interface for the initial set up. Getting a token to the first endpoint in the chain will be a slightly confusing task. Say there is some external site PublishToSomeSilo.xyz that we want to add to our chained micropub endpoints, how do we add this?

~ 2015-06-25
 * 1) visit PublishToSomeSilo.xyz and select to sign-up (probably at this point you will authorize the site to publish on your behalf).
 * 2) redirect to primary sites endpoint with /?register=PublishToSomeSilo.xyz
 * 3) follow general flow as if /?register=PublishToSomeSilo.xyz is a client looking to use access  PublishToSomeSilo.xyz
 * 4) after verifying the token, store the token and URL and possibly other data (fields to add??) somewhere
 * 5) redirect to PublishToSomeSilo.xyz and get notification that your endpoint can now syndicate to this site.

Annotate canonical url for post
The chained (secondary) micropub endpoint may not be specifically designed to be a micropub endpoint. How does one specify the canonical url in micropub post? syndication-of= or maybe just url= but this has been overloaded already polling data to edit a post. ~ 2015-06-25

Custom text for syndicated copy
It might be beneficial to be able to send different syndication targets, different values for some fields (content for example) to allow syndicated copies to be abbreviated versions. How would the Micropub client application display this? how would it send the data as it requires embedded items (gets ugly in form encoding) ~ 2015-06-25