Skip to content

Commit 5254020

Browse files
committed
Update to Postman collection script
When "login to vault" is run, the token is copied to the environment variable; you don't need to do this yourself any more!
1 parent 388a66f commit 5254020

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

Libraries/Postman/M-Files.postman_collection.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,19 @@
1010
"item": [
1111
{
1212
"name": "Login to Vault",
13+
"event": [
14+
{
15+
"listen": "test",
16+
"script": {
17+
"exec": [
18+
"var jsonData = JSON.parse(responseBody);\r",
19+
"\r",
20+
"pm.environment.set(\"MFAuthenticationToken\", jsonData.Value);"
21+
],
22+
"type": "text/javascript"
23+
}
24+
}
25+
],
1326
"request": {
1427
"method": "POST",
1528
"header": [

0 commit comments

Comments
 (0)