All deployment options
- [Deploy build 9816 of `identity:identity-gateway` to CODE](https://riffraff.gutools.co.uk/deployment/deployAgain?project=identity%3Aidentity-gateway&build=9816&stage=CODE&updateStrategy=MostlyHarmless&action=deploy)
- [Deploy parts of build 9816 to CODE by previewing it first](https://riffraff.gutools.co.uk/preview/yaml?project=identity%3Aidentity-gateway&build=9816&stage=CODE&updateStrategy=MostlyHarmless)
- [What's on CODE right now?](https://riffraff.gutools.co.uk/deployment/history?projectName=identity%3Aidentity-gateway&stage=CODE)
What does this change?
After reading @AshCorr's (https://github.com/guardian/gateway/pull/2855#discussion_r1718437474), I looked into adding a script to Hoppscotch that would automatically update the variables.
It turns out this is possible.. if I add it to the "Tests" scripts, which is a script that runs after the response has been received.
I added two scripts
IDX /interact
interaction_handle
from the response body and add it to theinteractionHandle
variableIDX /introspect (with ``interactionCode``)
stateHandle
from the response body and add it to thestateHandle
variableThis should make Hoppscotch easier to work with!
The variables that can't be automatically updated are:
passcode
password
email
These will still have to be updated manually.