File:micropub-auth-flow.png

Made with the open source sdedit UML sequence diagram tool.

Sequence code:
 * 1) ![Micropub: Obtaining an Access Token]

browser:Browser "User browser" client:Application "Micropub app's server" server:Webserver "User web server" authendpoint:Webserver "Auth endpoint" tokenendpoint:Webserver "Token endpoint" micropubendpoint:Webserver "Micropub endpoint"

browser:3. Redirect to auth endpoint=client.1. Click "Login" client:server.2. Fetch homepage client: Discover auth endpoint (1) client
 * 1 client
 * 1

browser:5. Redirect to\\nweb application=authendpoint.4. Verify user browser:8. Show page=client.Load page client:tokenendpoint.6. Exchange auth code\\nfor access token tokenendpoint:authendpoint. 7. Verify auth code client: Log user in (2) client
 * 2 client
 * 2

browser:Success!=client.9. Create a post client:Micropub endpoint\\ncreates post on website=micropubendpoint.10. Submit Micropub request\\nwith access token micropubendpoint:tokenendpoint.11. Verify access token