insomnia-plugin-auth-wsse
v0.0.4
Published
Insomnia plugin: creates WSSE Auth header
Downloads
2
Maintainers
Readme
insomnia-plugin-auth-wsse
This plugin creates a WSSE auth token based on values configured in insomnia environment variables
and adds it to the request header in the format of X-WSSE: UsernameToken Username="USERNAME", PasswordDigest="OGQ2NWUxODdlOTJmYWE1NWRiYjczY2FlNzI1NTQ1ZDM2NjgyNGE3ZA==", Nonce="972390e2a6cc92822e1c", Created="2019-08-28T16:09:28.910Z"
.
If your insomnia request already has a X-WSSE header the plugin WILL NOT override it.
Compulsory environment variables used by this insomnia plugin are:
{
"wsse_username": "",
"wsse_password": "",
}
Optional:
- set
"wsse_sha1encoding": "hex"
for Emarsys API - Default:"base64"
all options"base64" | "latin1" | "hex"
- set
"wsse_debug": true
to log to console Insomnia -> View -> Toggle DevTool
To install plugin manually
application preference dialog
- Open the tab preference panel Insomnia -> Preferences -> Plugins.
- copy
insomnia-plugin-auth-wsse
in the field and click the button "Install Plugin"
manual installation (optional)
- Checkout this repository;
- run
npm i
oryarn install
- Copy source code to insomnia plugins directory(see paths below);
- Create environment variables(see structure above) with your values;
MacOS: ~/Library/Application\ Support/Insomnia/plugins/
Windows: %APPDATA%\Insomnia\plugins\
Linux: $XDG_CONFIG_HOME/Insomnia/plugins/ or ~/.config/Insomnia/plugins/