insomnia/plugins
Augusto Roman 208aec6ec8
Add "When Expired" setting for request resend trigger condition. (#2284)
This adds a new trigger condition for re-sending a request for the
`response` plugin called "When Expired". This condition allows
specifying a maximum age of a response to use. This is very useful when
configuring a hierarchy of environment variables that ultimately depend
on an auth token that needs to be refreshed periodically.

Previous workarounds are:
1. Use "always refresh". This fails in cases where you must use the same
   auth token since it is refreshed for every request.
2. Use "no history" or "never" and manually refresh the token. This is
   inconvenient and requires pinning the token.

Alternative solutions are:
1. Add more sophisticated logic to determine when the token needs to be
   refreshed (e.g. refresh if the current request returns a `401` status
   code)
2. Write a custom response plugin to time out the token. I believe this
   functionality is small enough and general enough to be contributed
   back generally.

Fixes #1972
2020-06-11 13:00:46 -07:00
..
insomnia-plugin-base64 lib@2.2.6 2020-05-20 20:15:22 -07:00
insomnia-plugin-cookie-jar lib@2.2.8 2020-06-09 13:27:38 +12:00
insomnia-plugin-core-themes lib@2.2.6 2020-05-20 20:15:22 -07:00
insomnia-plugin-default-headers pkg-v2.1.4 2020-01-06 14:19:56 -05:00
insomnia-plugin-file lib@2.2.2 2020-04-27 15:02:35 -07:00
insomnia-plugin-hash lib@2.2.2 2020-04-27 15:02:35 -07:00
insomnia-plugin-jsonpath lib@2.2.2 2020-04-27 15:02:35 -07:00
insomnia-plugin-kong-bundle lib@2.2.8 2020-06-09 13:27:38 +12:00
insomnia-plugin-kong-declarative-config lib@2.2.6 2020-05-20 20:15:22 -07:00
insomnia-plugin-kong-kubernetes-config lib@2.2.6 2020-05-20 20:15:22 -07:00
insomnia-plugin-kong-portal lib@2.2.8 2020-06-09 13:27:38 +12:00
insomnia-plugin-now lib@2.2.2 2020-04-27 15:02:35 -07:00
insomnia-plugin-os lib@2.2.2 2020-04-27 15:02:35 -07:00
insomnia-plugin-prompt lib@2.2.2 2020-04-27 15:02:35 -07:00
insomnia-plugin-request lib@2.2.8 2020-06-09 13:27:38 +12:00
insomnia-plugin-response Add "When Expired" setting for request resend trigger condition. (#2284) 2020-06-11 13:00:46 -07:00
insomnia-plugin-uuid lib@2.2.2 2020-04-27 15:02:35 -07:00