Simply define a request from within Insomnia as authorization endpoint of the workspace and
reference the token in the response via JSONPath or XPath.
This plugin requires Insomnia.
- Start Insomnia,
- Click "Preferences" and choose the "Plugins" tab,
- Enter
insomnia-plugin-workspace-jwt
and click "Install Plugin" - Close the dialog.
- 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
- Click on the workspace drop down menu and select
Clear Workspace JWT data
- Confirm deletion