insomnia-plugin-workspace-jwt

This is a plugin for [insomnia](https://insomnia.rest) which provides workspace-wide JWT authentication. Tokens are automatically renewed when they expire. Simply define a request in the workspace as an authorization endpoint and reference the token in th

Usage no npm install needed!

<script type="module">
  import insomniaPluginWorkspaceJwt from 'https://cdn.skypack.dev/insomnia-plugin-workspace-jwt';
</script>

README

Insomnia plugin for workspace wide JWT authentication

Simply define a request from within Insomnia as authorization endpoint of the workspace and
reference the token in the response via JSONPath or XPath.

Pre-requisites

This plugin requires Insomnia.

Installation

  1. Start Insomnia,
  2. Click "Preferences" and choose the "Plugins" tab,
  3. Enter insomnia-plugin-workspace-jwt and click "Install Plugin"
  4. Close the dialog.

Usage

  1. Select any Document or Collection
  2. Click on the workspace drop down menu and select Set Workspace JWT
  3. You will be asked to select the authorization request
  4. Define a JSONPath or XPath filter to reference the token in the response

or

  1. Select any Document or Collection
  2. Click on the request drop down menu and select Use as Authorization request
  3. You will be asked to define a JSONPath or XPath filter to reference the token in the response

Cleanup saved data

  1. Click on the workspace drop down menu and select Clear Workspace JWT data
  2. Confirm deletion