Open Source Bridge - June 24th, 2014
Open Source Bridge - June 24th, 2014
Applicationclient_id = https://indiewebcamp.com/
redirect_uri = https://indiewebcamp.com/auth/callback
Userme = https://aaronparecki.com/
User's authorization serverauthorization_endpoint = https://indieauth.com/auth
<html lang="en">
<head>
<title>Aaron Parecki</title>
<link rel="authorization_endpoint" href="https://indieauth.com/auth">
</head>
<html lang="en">
<head>
<title>IndieWebCamp Wiki</title>
<link rel="redirect_uri" href="https://indiewebcamp.com/auth/callback">
</head>
When submitted, the server discovers the user's authorization_endpoint, and redirects the browser there with the parameters for the request.
https://indieauth.com/auth?me=https://aaronparecki.com/&
client_id=https://indiewebcamp.com/&
redirect_uri=https://indiewebcamp.com/auth/callback&
state=1234567890
HTTP/1.1 302 Found
Location: https://indiewebcamp.com/auth/callback?
code=xxxxxxxx&
state=1234567890&
me=https://aaronparecki.com/
POST https://indieauth.com/auth
code=xxxxxxxx&
redirect_uri=https://indiewebcamp.com/auth/callback&
client_id=https://indiewebcamp.com&
state=1234567890
HTTP/1.1 200 OK
me=https://aaronparecki.com/
Applicationclient_id = https://quill.p3k.io/
redirect_uri = https://quill.p3k.io/auth/callback
Userme = https://aaronparecki.com/
User's servicesauthorization_endpoint = https://indieauth.com/auth
token_endpoint = https://tokens.indieauth.com/token
micropub = https://aaronparecki.com/micropub
<html lang="en">
<head>
<title>Aaron Parecki</title>
<link rel="authorization_endpoint" href="https://indieauth.com/auth">
<link rel="token_endpoint" href="https://tokens.indieauth.com/token">
<link rel="micropub" href="/micropub">
</head>
<html lang="en">
<head>
<title>Quill</title>
<link rel="redirect_uri" href="https://quill.p3k.io/auth/callback">
</head>
When submitted, the server discovers the user's authorization_endpoint, and redirects the browser there with the parameters for the request.
https://indieauth.com/auth?me=https://aaronparecki.com/&
client_id=https://quill.p3k.io/&
redirect_uri=https://quill.p3k.io/auth/callback&
state=1234567890&
scope=post
HTTP/1.1 302 Found
Location: https://quill.p3k.io/auth/callback?
code=xxxxxxxx&
state=1234567890&
me=https://aaronparecki.com/
POST https://tokens.indieauth.com/token
me=https://aaronparecki.com/&
code=xxxxxxxx&
redirect_uri=https://indiewebcamp.com/auth/callback&
client_id=https://indiewebcamp.com&
state=1234567890&
scope=post
HTTP/1.1 200 OK
me=https://aaronparecki.com/&
access_token=XXXXXX&
scope=post
indiewebcamp.com/token-endpoint
POST https://aaronparecki.com/micropub
Authorization: Bearer XXXXXXXXXXXXXXX
Content-Type: application/x-www-form-urlencoded
h=entry&
content=Hello+World
HTTP/1.1 201 Created
Content-Type: application/x-www-form-urlencoded
Location: http://aaronparecki.com/notes/2014/06/23/1/
Link: <http://aaron.pk/n4Wj1> rel="shortlink"
POST https://aaronparecki.com/micropub
Authorization: Bearer XXXXXXXXXXXXXXX
Content-Type: application/x-www-form-urlencoded
h=entry&
content=Hello+World
location=geo:45.525185,-122.681633
POST https://aaronparecki.com/micropub
Authorization: Bearer XXXXXXXXXXXXXXX
Content-Type: multipart/form-data; boundary=-------xxxxxx
-------xxxxxx
Content-Disposition: form-data; name="h"
entry
-------xxxxxx
Content-Disposition: form-data; name="content"
Grabbing a drink and working on my slides while waiting to
get my hair cut! 🍸☀️✂️👍
-------xxxxxx
Content-Disposition: form-data; name="file"; filename="photo.jpg"
Content-Type: image/jpeg
[image data]