Autogenerating Postman Collections for IndieAuth Servers
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
.