insomnia-plugin-workspace-jwt
v1.1.1
Published
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
Downloads
963
Maintainers
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
- Start Insomnia,
- Click "Preferences" and choose the "Plugins" tab,
- Enter
insomnia-plugin-workspace-jwt
and click "Install Plugin" - Close the dialog.
Usage
- Select any Document or Collection
- Click on the workspace drop down menu and select
Set Workspace JWT
- You will be asked to select the authorization request
- Define a JSONPath or XPath filter to reference the token in the response
or
- Select any Document or Collection
- Click on the request drop down menu and select
Use as Authorization request
- You will be asked to define a JSONPath or XPath filter to reference the token in the response
Note:
Ensure that No Authentication
is selected as the Auth type and no Authorization
header is defined for any requests
where you want this plugin to populate an Authorization
header.
Use environment variable WORKSPACE-JWT-TOKEN-PREFIX
to set the token prefix. Default prefix is Bearer
.
Cleanup saved data
- Click on the workspace drop down menu and select
Clear Workspace JWT data
- Confirm deletion