insomnia-plugin-cloud-run-auth

0.1.1 • Public • Published

Google Cloud Run Authentication for Insomnia

This is a plugin for Insomnia that automates creating identity tokens for making API calls to authenticated Google Cloud Run instances.

Identity tokens have a short lifetime, and it can be annoying to have to manually refresh them during development. This plugin automatically refreshes the token by executing gcloud auth print-identity-token before each request.

Usage

Ensure you have installed the Google Cloud SDK and its bundled gcloud command-line interface.

Create a Bearer Token authentication and add the "Google Cloud Run Identity Token" template tag as the token value.

The settings specify a default path to the gcloud executable of ~/google-cloud-sdk/bin. If it is somewhere else on your machine you may need to change it.

Note that this plugin has only been tested on Mac OS X.

Readme

Keywords

none

Package Sidebar

Install

npm i insomnia-plugin-cloud-run-auth

Weekly Downloads

3

Version

0.1.1

License

MIT

Unpacked Size

3.29 kB

Total Files

4

Last publish

Collaborators

  • nawhi