Insomnia plugin for automatic token generation for requests using authentication service
- Go to your folder with plugins, for example:
cd /home/zeio/snap/insomnia/204/.config/Insomnia/plugins/
- Clone this repo:
git clone https://github.com/zeionara/authemeral.git
- Go to the project folder and install dependencies:
cd authemeral
npm install
- Open
Insomnia
, then navigate toApplication > Preferences > Plugins
to make sure that plugin is loaded; - Use template tag
Authentication token
wherever you need passing data required for locating and accessing the authentication service. This template tag will be replaced with an actual token upon request execution.