67°F

Aaron Parecki

  • Articles
  • Notes
  • Photos
  • Day 51: Authorization Server for Micropub.rocks #100DaysOfIndieWeb

    February 9, 2017

    Today I implemented the authorization server for Micropub.rocks. This means it's now possible to sign in to Micropub.rocks from a Micropub client such as Quill.

    After you set up a new client in Micropub.rocks, it will provide you a URL to enter in the sign-in form in a Micropub client.

    You can copy and paste this URL into the sign-in form in Quill.

    When you click "sign in", you begin the authorization process for Quill. Quill provides more debugging information than you'd get in a typical Micropub client, but it's useful when you're just starting out building a server.

    Here we see that Quill was able to discover the necessary endpoints it will use during this flow. I also added an option to choose which scope Quill will request from the server, since we've been moving to the scopes "create update delete" rather than just "post".

    Once you click "Authorize", Quill will redirect to the authorization endpoint that is now built in to Micropub.rocks. Typical Micropub clients will skip this screen and redirect immediately. In fact, the next time you sign back in to Quill, it will skip this screen as well.

    Here we see the authorization prompt in Micropub.rocks. This is sort of a bare minimum prompt, and I plan on fleshing it out a little better in the future. When you click "Allow", then Micropub.rocks will generate an authorization code and redirect you back to Quill.

    Quill then makes a POST request to Micropub.rocks to exchange the authorization code for an access token, and shows the result to the user. (Again, a typical Micropub client will skip this confirmation and just redirect the user to the application at this point, and Quill bypasses this for returning users.)

    At this point the user is signed in, and Quill now has an access token it can use to create posts!

    Portland, Oregon
    Thu, Feb 9, 2017 10:00pm -08:00 #100daysofindieweb #micropubrocks
    3 mentions

    Other Mentions

    • Aaron Parecki aaronparecki.com
      My 2017 Year in Review
      Thu, Jan 4, 2018 2:40pm -08:00
    • Aaron Parecki aaronparecki.com
      Day 56: Added a Reset Login Button to Quill #100DaysOfIndieWeb
      Tue, Feb 14, 2017 9:11pm -08:00
    • 100 Days of IndieWeb aaronparecki.com/tag/100daysofindieweb
      Day 51: Authorization Server for Micropub.rocks #100DaysOfIndieWeb: aaronparecki.com/2017/02/09/18/…
      Fri, Feb 10, 2017 6:00am +00:00 (via brid-gy.appspot.com)
Posted in /articles using quill.p3k.io

Hi, I'm Aaron Parecki, Director of Identity Standards at Okta, and co-founder of IndieWebCamp. I maintain oauth.net, write and consult about OAuth, and participate in the OAuth Working Group at the IETF. I also help people learn about video production and livestreaming. (detailed bio)

I've been tracking my location since 2008 and I wrote 100 songs in 100 days. I've spoken at conferences around the world about owning your data, OAuth, quantified self, and explained why R is a vowel. Read more.

  • Director of Identity Standards at Okta
  • IndieWebCamp Founder
  • OAuth WG Editor
  • OpenID Board Member

  • 🎥 YouTube Tutorials and Reviews
  • 🏠 We're building a triplex!
  • ⭐️ Life Stack
  • ⚙️ Home Automation
  • All
  • Articles
  • Bookmarks
  • Notes
  • Photos
  • Replies
  • Reviews
  • Trips
  • Videos
  • Contact
© 1999-2025 by Aaron Parecki. Powered by p3k. This site supports Webmention.
Except where otherwise noted, text content on this site is licensed under a Creative Commons Attribution 3.0 License.
IndieWebCamp Microformats Webmention W3C HTML5 Creative Commons
WeChat ID
aaronpk_tv