I found myself struggling to get some APIs to play nice with restish's OAuth system (mostly them not implementing the standard protocol but quirky variants of it), and ended up using external-tool with some scripts. I struggled with the format because my brain isn't wired to work in the format the tool expects, so I wanted to help out and make the docs more explicit. I actually originally came up with a whole concept for a file-based auth system, but then realized I was way over-complicating just using external-tool.
I also provided a sample jq one-liner that could help someone in the same position as me. Maybe this helps the adoption seeing it's so easy to integrate your own scripts into restish.
Hi! Loving restish from what I've used it.
I found myself struggling to get some APIs to play nice with
restish
's OAuth system (mostly them not implementing the standard protocol but quirky variants of it), and ended up usingexternal-tool
with some scripts. I struggled with the format because my brain isn't wired to work in the format the tool expects, so I wanted to help out and make the docs more explicit. I actually originally came up with a whole concept for a file-based auth system, but then realized I was way over-complicating just usingexternal-tool
.I also provided a sample
jq
one-liner that could help someone in the same position as me. Maybe this helps the adoption seeing it's so easy to integrate your own scripts intorestish
.Anyway, let me know if I can help further.