Closed carsonfarmer closed 4 years ago
With the docs update, the swagger docs actually show each API endpoint is 'locked', and you can 'authorize' at the top. Its a nice UX for testing things out.
Good idea @sanderpick, added. The 'hacky' (its not that bad) version I added there is needed because the Basic Auth middlewear from gin doesn't add an error message to the response body... so our tooling doesn't pick it up.
Sweet!
Also includes username and password handling at the cli. Fixes #894. Note this is an initial implementation, probably not the 'final' version by any means. But let's try it out and discuss. Some details:
TEXTILE_USERNAME
ANDTEXTILE_PASSWORD
) respectively, along with per-command flags--username
and--password
. I would have preferred to usepin
orpincode
, but this conflicts with thepin
used intextile daemon
andtextile init
, which seem to mask this one?Here's how it works from the cli:
and here's the gif showing browser support