Skip to content

Commit

Permalink
[DSD-6742]added new auth api for esignet
Browse files Browse the repository at this point in the history
Signed-off-by: Mahesh.Binayak <[email protected]>
  • Loading branch information
Mahesh-Binayak committed Dec 3, 2024
1 parent e832ef4 commit f0c510f
Showing 1 changed file with 26 additions and 10 deletions.
36 changes: 26 additions & 10 deletions onboarding.postman_collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -2739,17 +2739,21 @@
"pm.test(\"validating clientid\", function () {",
" pm.expect(pm.response.text()).to.include(\"clientId\");",
"});",
"pm.test(\"validating clientid status\", function () {",
"pm.test(\"validating client status\", function () {",
" pm.expect(pm.response.text()).to.include(\"ACTIVE\");",
"});",
"var responseJson = pm.response.json();",
"var partnerKcUsername = pm.variables.get(\"partner-kc-username\");",
"",
"if (partnerKcUsername === \"mpartner-default-mock-rp-oidc\") {",
" pm.environment.set(\"mpartner-default-demo-oidc-clientID\", responseJson.response.clientId);",
"} ",
"",
""
"} else if (partnerKcUsername === \"mpartner-default-resident-oidc\") {",
" pm.environment.set(\"mpartner-default-resident-oidc-clientID\", responseJson.response.clientId);",
"} else if (partnerKcUsername === \"mpartner-default-mimotooidc\") {",
" pm.environment.set(\"mpartner-default-mimotooidc-clientID\", responseJson.response.clientId);",
"} else if (partnerKcUsername === \"esignet-sunbird-partner\") {",
" pm.environment.set(\"mpartner-default-sunbirdoidc-clientID\", responseJson.response.clientId);",
"} "
],
"type": "text/javascript",
"packages": {}
Expand Down Expand Up @@ -2834,9 +2838,10 @@
"pm.test(\"validating clientid\", function () {\r",
" pm.expect(pm.response.text()).to.include(\"clientId\");\r",
"});\r",
"pm.test(\"validating clientid status\", function () {\r",
"pm.test(\"validating client status\", function () {\r",
" pm.expect(pm.response.text()).to.include(\"ACTIVE\");\r",
"});"
"});\r",
""
],
"type": "text/javascript",
"packages": {}
Expand Down Expand Up @@ -2910,9 +2915,15 @@
"pm.test(\"validating clientid\", function () {\r",
" pm.expect(pm.response.text()).to.include(\"clientId\");\r",
"});\r",
"pm.test(\"validating clientid status\", function () {\r",
"pm.test(\"validating client status\", function () {\r",
" pm.expect(pm.response.text()).to.include(\"ACTIVE\");\r",
"});"
"});\r",
"var responseJson = pm.response.json();\r",
"var partnerKcUsername = pm.variables.get(\"partner-kc-username\");\r",
"\r",
"if (partnerKcUsername === \"mpartner-default-mock-rp-oidc\") {\r",
" pm.environment.set(\"mpartner-default-demo-oidc-clientID\", responseJson.response.clientId);\r",
"}"
],
"type": "text/javascript",
"packages": {}
Expand Down Expand Up @@ -2986,9 +2997,14 @@
"pm.test(\"validating clientid\", function () {\r",
" pm.expect(pm.response.text()).to.include(\"clientId\");\r",
"});\r",
"pm.test(\"validating clientid status\", function () {\r",
"pm.test(\"validating client status\", function () {\r",
" pm.expect(pm.response.text()).to.include(\"ACTIVE\");\r",
"});"
"});\r",
"var responseJson = pm.response.json();\r",
"var partnerKcUsername = pm.variables.get(\"partner-kc-username\");\r",
" if (partnerKcUsername === \"esignet-sunbird-partner\") {\r",
" pm.environment.set(\"mpartner-default-sunbirdoidc-clientID\", responseJson.response.clientId);\r",
"} "
],
"type": "text/javascript",
"packages": {}
Expand Down

0 comments on commit f0c510f

Please sign in to comment.