Commit cffa0fd6 authored by Denis Karpenok (EPAM)'s avatar Denis Karpenok (EPAM)
Browse files

Pre-requests for Refresh token

parent 148ec12b
......@@ -39,7 +39,15 @@
"script": {
"id": "6ec4157a-6f98-4282-a25a-8380ff018228",
"exec": [
""
"cp = pm.environment.get(\"cloud_platform\");\r",
"\r",
"if (cp == \"GCP\") {\r",
" pm.environment.set(\"Scope\", \"email openid profile\")\r",
" }\r",
"else {\r",
" client_id = pm.environment.get(\"CLIENT_ID\");\r",
" pm.environment.set(\"Scope\", client_id + \"/.default openid profile offline_access\")\r",
"}"
],
"type": "text/javascript"
}
......@@ -91,7 +99,7 @@
},
{
"key": "scope",
"value": "{{CLIENT_ID}}/.default openid profile offline_access",
"value": "{{Scope}}",
"type": "text"
}
],
......
......@@ -39,7 +39,15 @@
"script": {
"id": "98a5c83b-afaa-444a-a219-bd37323691da",
"exec": [
""
"cp = pm.environment.get(\"cloud_platform\");\r",
"\r",
"if (cp == \"GCP\") {\r",
" pm.environment.set(\"Scope\", \"email openid profile\")\r",
" }\r",
"else {\r",
" client_id = pm.environment.get(\"CLIENT_ID\");\r",
" pm.environment.set(\"Scope\", client_id + \"/.default openid profile offline_access\")\r",
"}"
],
"type": "text/javascript"
}
......@@ -91,7 +99,7 @@
},
{
"key": "scope",
"value": "{{CLIENT_ID}}/.default openid profile offline_access",
"value": "{{Scope}}",
"type": "text"
}
]
......
......@@ -39,7 +39,15 @@
"script": {
"id": "9bded3bd-bec0-41f9-b67e-9fd26cbf8a5d",
"exec": [
""
"cp = pm.environment.get(\"cloud_platform\");\r",
"\r",
"if (cp == \"GCP\") {\r",
" pm.environment.set(\"Scope\", \"email openid profile\")\r",
" }\r",
"else {\r",
" client_id = pm.environment.get(\"CLIENT_ID\");\r",
" pm.environment.set(\"Scope\", client_id + \"/.default openid profile offline_access\")\r",
"}"
],
"type": "text/javascript"
}
......@@ -91,7 +99,7 @@
},
{
"key": "scope",
"value": "{{CLIENT_ID}}/.default openid profile offline_access",
"value": "{{Scope}}",
"type": "text"
}
],
......
......@@ -39,7 +39,15 @@
"script": {
"id": "c56f4f37-e599-46e6-98e7-a348b4789c80",
"exec": [
""
"cp = pm.environment.get(\"cloud_platform\");\r",
"\r",
"if (cp == \"GCP\") {\r",
" pm.environment.set(\"Scope\", \"email openid profile\")\r",
" }\r",
"else {\r",
" client_id = pm.environment.get(\"CLIENT_ID\");\r",
" pm.environment.set(\"Scope\", client_id + \"/.default openid profile offline_access\")\r",
"}"
],
"type": "text/javascript"
}
......@@ -91,7 +99,7 @@
},
{
"key": "scope",
"value": "{{CLIENT_ID}}/.default openid profile offline_access",
"value": "{{Scope}}",
"type": "text"
}
],
......
......@@ -39,7 +39,15 @@
"script": {
"id": "a6cf2112-c63c-4589-86fd-ac073c6f0543",
"exec": [
""
"cp = pm.environment.get(\"cloud_platform\");\r",
"\r",
"if (cp == \"GCP\") {\r",
" pm.environment.set(\"Scope\", \"email openid profile\")\r",
" }\r",
"else {\r",
" client_id = pm.environment.get(\"CLIENT_ID\");\r",
" pm.environment.set(\"Scope\", client_id + \"/.default openid profile offline_access\")\r",
"}"
],
"type": "text/javascript"
}
......@@ -91,7 +99,7 @@
},
{
"key": "scope",
"value": "{{CLIENT_ID}}/.default openid profile offline_access",
"value": "{{Scope}}",
"type": "text"
}
],
......
......@@ -39,7 +39,15 @@
"script": {
"id": "6cd6c8c0-c453-4eab-8f0f-64c0568033eb",
"exec": [
""
"cp = pm.environment.get(\"cloud_platform\");\r",
"\r",
"if (cp == \"GCP\") {\r",
" pm.environment.set(\"Scope\", \"email openid profile\")\r",
" }\r",
"else {\r",
" client_id = pm.environment.get(\"CLIENT_ID\");\r",
" pm.environment.set(\"Scope\", client_id + \"/.default openid profile offline_access\")\r",
"}"
],
"type": "text/javascript"
}
......@@ -91,7 +99,7 @@
},
{
"key": "scope",
"value": "{{CLIENT_ID}}/.default openid profile offline_access",
"value": "{{Scope}}",
"type": "text"
}
]
......
......@@ -39,7 +39,15 @@
"script": {
"id": "dca24583-9073-4ddb-a61c-65671c0a7b6a",
"exec": [
""
"cp = pm.environment.get(\"cloud_platform\");\r",
"\r",
"if (cp == \"GCP\") {\r",
" pm.environment.set(\"Scope\", \"email openid profile\")\r",
" }\r",
"else {\r",
" client_id = pm.environment.get(\"CLIENT_ID\");\r",
" pm.environment.set(\"Scope\", client_id + \"/.default openid profile offline_access\")\r",
"}"
],
"type": "text/javascript"
}
......@@ -91,7 +99,7 @@
},
{
"key": "scope",
"value": "{{CLIENT_ID}}/.default openid profile offline_access",
"value": "{{Scope}}",
"type": "text"
}
]
......
......@@ -39,7 +39,15 @@
"script": {
"id": "0cc0b6b1-e90f-40b0-b2aa-f635fea16750",
"exec": [
""
"cp = pm.environment.get(\"cloud_platform\");\r",
"\r",
"if (cp == \"GCP\") {\r",
" pm.environment.set(\"Scope\", \"email openid profile\")\r",
" }\r",
"else {\r",
" client_id = pm.environment.get(\"CLIENT_ID\");\r",
" pm.environment.set(\"Scope\", client_id + \"/.default openid profile offline_access\")\r",
"}"
],
"type": "text/javascript"
}
......@@ -91,7 +99,7 @@
},
{
"key": "scope",
"value": "{{CLIENT_ID}}/.default openid profile offline_access",
"value": "{{Scope}}",
"type": "text"
}
]
......
......@@ -39,7 +39,15 @@
"script": {
"id": "db546b8f-46a0-49c6-b6ff-2205d1956273",
"exec": [
""
"cp = pm.environment.get(\"cloud_platform\");\r",
"\r",
"if (cp == \"GCP\") {\r",
" pm.environment.set(\"Scope\", \"email openid profile\")\r",
" }\r",
"else {\r",
" client_id = pm.environment.get(\"CLIENT_ID\");\r",
" pm.environment.set(\"Scope\", client_id + \"/.default openid profile offline_access\")\r",
"}"
],
"type": "text/javascript"
}
......@@ -91,7 +99,7 @@
},
{
"key": "scope",
"value": "{{CLIENT_ID}}/.default openid profile offline_access",
"value": "{{Scope}}",
"type": "text"
}
]
......
......@@ -91,7 +91,7 @@
},
{
"key": "scope",
"value": "{{CLIENT_ID}}/.default openid profile offline_access",
"value": "{{Scope}}",
"type": "text"
}
]
......
{
"info": {
"_postman_id": "82e9393b-123a-42de-856f-ef03149bbb1a",
"_postman_id": "1f899d45-2461-4e56-bf40-ed7cc867fe56",
"name": "Delivery API CI/CD v1.0",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
......@@ -14,7 +14,7 @@
{
"listen": "test",
"script": {
"id": "46a6874f-23db-4694-a0ad-e73d271c8983",
"id": "1c160f4b-4564-4e9e-91d0-039163e1b542",
"exec": [
"// this snippet extracts the new access and id tokens",
"// and puts them to environment variables",
......@@ -37,7 +37,7 @@
{
"listen": "prerequest",
"script": {
"id": "d0c4a826-531d-4776-b551-50113f67b3b9",
"id": "571adf38-86d2-45a1-a719-8fe98795f9fb",
"exec": [
"cp = pm.environment.get(\"cloud_platform\");\r",
"\r",
......@@ -128,7 +128,7 @@
{
"listen": "test",
"script": {
"id": "f7bcdcf6-7a8b-4486-b707-51144fe71d4a",
"id": "f5920564-0dfe-4473-a4fc-0efbee351b1d",
"exec": [
"// Ensure the API was able to send a successful response",
"pm.test(\"Status code is 200\", function () {",
......@@ -196,7 +196,7 @@
{
"listen": "test",
"script": {
"id": "9247865f-9a13-431e-ad57-f4f044ffa0ea",
"id": "1cba08a1-7fac-4077-918f-ddeff824ebbd",
"exec": [
"// Ensure the API was able to send a successful response",
"pm.test(\"Status code is 200\", function () {",
......@@ -264,7 +264,7 @@
{
"listen": "test",
"script": {
"id": "20b6d38e-6a46-412b-aac5-6eb93ba339a5",
"id": "8e1f3e25-27c3-403f-ac0a-a468c92a10d7",
"exec": [
"// Ensure the API was able to send a successful response",
"pm.test(\"Status code is 200\", function () {",
......@@ -332,7 +332,7 @@
{
"listen": "test",
"script": {
"id": "d169e6a6-50f0-4054-9a32-7d7736c7fb1a",
"id": "2a5f9875-1e08-4b61-b966-a7131b803dac",
"exec": [
"// Ensure the API was able to send a successful response",
"pm.test(\"Status code is 401\", function () {",
......@@ -395,7 +395,7 @@
{
"listen": "test",
"script": {
"id": "4dcffe8c-7ca1-4487-9eab-03d86f5ca10f",
"id": "b1116d9e-3d52-491c-b0fb-8445f6484c3a",
"exec": [
"// Ensure the API was able to send a successful response",
"pm.test(\"Status code is 403\", function () {",
......@@ -470,7 +470,7 @@
{
"listen": "prerequest",
"script": {
"id": "36c5f29b-7356-4e2a-81f8-98d26f61ba32",
"id": "211b9af7-ae7b-4699-aa0f-7a6ed2f5c836",
"type": "text/javascript",
"exec": [
""
......@@ -480,7 +480,7 @@
{
"listen": "test",
"script": {
"id": "d8cab99d-310b-460c-879b-0c4b5a625d2c",
"id": "54220dab-df2d-4f2e-9168-55886fcdf290",
"type": "text/javascript",
"exec": [
""
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment