Autogenerating Postman Collections for IndieAuth Servers

Featured image for sharing metadata for article

When I wrote Autogenerating Postman Collections for Micropub Servers, I had a good bit of fun with generating a Postman collection for Micropub servers - and it didn't hurt that it was to enter a hackathon!

But over the last few weeks I've been doing a bit more with my IndieAuth server, like implementing refresh tokens.

As part of this, and other changes I work on, there's a fair bit of manual testing to double check that I've done everything right, even though I'm pretty confident that my automated tests will catch things, it's worth ensuring that it actually works when using other tools.

To aid this, and to help others who may want to be testing their own IndieAuth servers, I wanted to build another app to do this!

How?

Similar to how I'd implemented my Micropub app, I've created a Ruby script (+ Sinatra web app) which takes a profile URL, determines the authorization and token endpoints, and generates a collection for us.

It supports the main journeys that an IndieAuth server supports - if there's anything you spot that's a problem, or you'd like adding, please raise an issue.

Demo

You can see an example of the generated configuration from my staging server, which is available as a snippet on GitLab, or you can try it against your own server based on instructions in the README.

You can also use the Heroku App, which has the added bonus of being able to point Postman at a URL, i.e. https://indieauth-postman.herokuapp.com/collection?profile_url=https://www.staging.jvt.me.

Written by Jamie Tanna's profile image Jamie Tanna on , and last updated on .

Content for this article is shared under the terms of the Creative Commons Attribution Non Commercial Share Alike 4.0 International, and code is shared under the Apache License 2.0.

#postman #ruby #indieauth #indieauth-postman.

Also on: IndieWebCamp logo IndieWeb.xyz logo

This post was filed under articles.

Interactions with this post

Interactions with this post

Below you can find the interactions that this page has had using WebMention.

Have you written a response to this post? Let me know the URL:

Do you not have a website set up with WebMention capabilities? You can use Comment Parade.