{"info":{"_postman_id":"2d924dbb-8f93-4523-988a-2be479187825","name":"IDP","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"6613311","collectionId":"2d924dbb-8f93-4523-988a-2be479187825","publishedId":"2sA3kRHP26","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-07-16T11:04:21.000Z"},"item":[{"name":"Login","item":[{"name":"Login_Valid_SysAdminUser","event":[{"listen":"prerequest","script":{"id":"068bae8a-08cb-4843-bde2-3fa55ce8f4f8","exec":["console.log(\"API TC : \" +pm.info.requestName);"],"type":"text/javascript","packages":{}}},{"listen":"test","script":{"id":"bd71dffe-15f6-41b1-a7e2-c4e46bab119f","exec":["//Test 1: Validate success status code 200","pm.test(\"SUCCESS : Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","//Test 2: Validate response bosy is not empty","pm.test(\"Response body is not empty\", function () {","    pm.expect(pm.response.text()).not.to.be.empty;","});"],"type":"text/javascript","packages":{}}}],"id":"8c0f5fd9-70bf-4dae-a712-68848f8d84b9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"login\":\"{{sysadmin}}\",\n\t\"password\":\"{{passwd00}}\"\n}"},"url":"https://staging.openiam.com/idp/rest/api/auth/public/login","description":"<p>Test login functionality using valid username and valid password.</p>\n<p>Test Assertions :</p>\n<ol>\n<li>Status code : 200</li>\n</ol>\n","urlObject":{"path":["idp","rest","api","auth","public","login"],"host":["https://staging.openiam.com"],"query":[],"variable":[]}},"response":[{"id":"fe13c0f6-d501-4f6a-ad4a-828c88065542","name":"Login_Valid_SysAdminUser [4.2]","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\"login\":\"sysadmin\",\n\"postbackUrl\":\"/webconsole/\",\n\"authType\":\"PASSWORD\"}"},"url":"https://staging.openiam.com/idp/rest/api/auth/public/login "},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 13 Mar 2020 10:37:21 GMT"},{"key":"Server","value":"Apache"},{"key":"Content-Security-Policy","value":"default-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' apis.google.com; css-src *; img-src *; "},{"key":"X-Frame-Options","value":"sameorigin"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Cache-Control","value":"no-cache"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"Wed, 31 Dec 1969 23:59:59 GMT"},{"key":"X-UA-Compatible","value":"IE=EmulateIE10"},{"key":"Content-Type","value":"application/json;charset=UTF-8"},{"key":"Set-Cookie","value":"SESSION=Yzk1YWM4YzQtODJhOC00ZDdhLWFmNDctMWUxNjdhNTVhMTk0; Path=/idp/; HttpOnly; SameSite=Lax"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Length","value":"210"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"primaryKey\": null,\n    \"status\": 200,\n    \"errorList\": null,\n    \"redirectURL\": \"/idp/auth-password?login=sysadmin&postbackUrl=/webconsole/\",\n    \"successToken\": null,\n    \"successMessage\": null,\n    \"contextValues\": null,\n    \"possibleErrors\": null,\n    \"passwordExpired\": false,\n    \"userId\": null,\n    \"unlockURL\": null,\n    \"tokenInfo\": null,\n    \"error\": false\n}"}],"_postman_id":"8c0f5fd9-70bf-4dae-a712-68848f8d84b9"},{"name":"Login_Invalid_LoginName","event":[{"listen":"test","script":{"id":"3d1a1095-51b7-42bd-a6cd-ea59edd65d27","exec":["//Test 1: Validate success status code 200","pm.test(\"SUCCESS : Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","//Test 2: Validate response bosy is not empty","pm.test(\"Response body is not empty\", function () {","    pm.expect(pm.response.text()).not.to.be.empty;","});","","//Test 3:","pm.test(\"JSON Response Matches - INVALID LOGIN\", function () {","    pm.expect(pm.response.text()).to.include(\"INVALID_LOGIN\");","});","","//Test 4:","pm.test(\"JSON Response Matches UI Message - Invalid Login and/or Password\", function () {","    pm.expect(pm.response.text()).to.include(\"Invalid Login and/or Password\");","});"],"type":"text/javascript","packages":{}}},{"listen":"prerequest","script":{"id":"a7dc8cd9-fade-446e-8967-12513c52b3ce","exec":["console.log(\"API TC : \" +pm.info.requestName);"],"type":"text/javascript","packages":{}}}],"id":"6731f8d3-9317-4235-a84b-8c7e6ac64e18","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"login\":\"admin\",\n\t\"password\":\"{{passwd00}}\"\n}"},"url":"https://staging.openiam.com/idp/rest/api/auth/public/login","description":"<p>Test the login functionality by using invalid login id and valid password.</p>\n<p>Test Assertions :</p>\n<ol>\n<li>Status Code : 200</li>\n<li>Response Contains string - INVALID LOGIN</li>\n<li>Response Contains string - Invalid Login and/or Password</li>\n</ol>\n","urlObject":{"path":["idp","rest","api","auth","public","login"],"host":["https://staging.openiam.com"],"query":[],"variable":[]}},"response":[{"id":"6d2f24c6-c3cf-472d-9127-f5f40fab8b71","name":"Login_Invalid_LoginName [4.2]","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"login\":\"admin\",\n\t\"password\":\"{{passwd00}}\"\n}"},"url":"https://staging.openiam.com/idp/rest/api/auth/public/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 13 Mar 2020 10:38:34 GMT"},{"key":"Server","value":"Apache"},{"key":"Content-Security-Policy","value":"default-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' apis.google.com; css-src *; img-src *; "},{"key":"X-Frame-Options","value":"sameorigin"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Cache-Control","value":"no-cache"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"Wed, 31 Dec 1969 23:59:59 GMT"},{"key":"X-UA-Compatible","value":"IE=EmulateIE10"},{"key":"Content-Type","value":"application/json;charset=UTF-8"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"primaryKey\": null,\n    \"status\": 500,\n    \"errorList\": [\n        {\n            \"i18nError\": null,\n            \"error\": \"INVALID_LOGIN\",\n            \"validationError\": null,\n            \"params\": null,\n            \"message\": \"Invalid Login and/or Password\"\n        }\n    ],\n    \"redirectURL\": null,\n    \"successToken\": null,\n    \"successMessage\": null,\n    \"contextValues\": null,\n    \"possibleErrors\": null,\n    \"passwordExpired\": false,\n    \"userId\": null,\n    \"unlockURL\": null,\n    \"tokenInfo\": null,\n    \"error\": true\n}"}],"_postman_id":"6731f8d3-9317-4235-a84b-8c7e6ac64e18"},{"name":"Login_Invalid_Password","event":[{"listen":"test","script":{"id":"2221e0ec-190d-4974-abb1-27706c30a21a","exec":["//Test 1: Validate success status code 200","pm.test(\"SUCCESS : Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","//Test 2: Validate response bosy is not empty","pm.test(\"Response body is not empty\", function () {","    pm.expect(pm.response.text()).not.to.be.empty;","});","","//Test 3: ","pm.test(\"JSON Response Matches - INVALID LOGIN\", function () {","    pm.expect(pm.response.text()).to.include(\"INVALID_LOGIN\");","});","","//Test 4: ","pm.test(\"JSON Response Matches UI Message - Invalid Login and/or Password\", function () {","    pm.expect(pm.response.text()).to.include(\"Invalid Login and/or Password\");","});"],"type":"text/javascript","packages":{}}},{"listen":"prerequest","script":{"id":"b647be5d-c5d3-4fd8-9cd0-e5cab5a6e68f","exec":["console.log(\"API TC : \" +pm.info.requestName);"],"type":"text/javascript","packages":{}}}],"id":"c4402cbe-c142-4725-a133-50be3b6de596","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"login\":\"{{sysadmin}}\",\n\t\"password\":\"passwd\"\n}"},"url":"https://staging.openiam.com/idp/rest/api/auth/public/login","description":"<p>Test the login functionality by using invalid login id and valid password</p>\n<p>Test Assertions :</p>\n<ol>\n<li>Status Code : 200</li>\n<li>Response Contains string - INVALID LOGIN</li>\n<li>Response Contains string - Invalid Login and/or Password</li>\n</ol>\n","urlObject":{"path":["idp","rest","api","auth","public","login"],"host":["https://staging.openiam.com"],"query":[],"variable":[]}},"response":[{"id":"002e147d-dcb7-470f-ba17-53885fae950b","name":"Login_Invalid_Password [4.2]","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"login\":\"{{sysadmin}}\",\n\t\"password\":\"passwd\"\n}"},"url":"https://staging.openiam.com/idp/rest/api/auth/public/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 13 Mar 2020 10:39:01 GMT"},{"key":"Server","value":"Apache"},{"key":"Content-Security-Policy","value":"default-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' apis.google.com; css-src *; img-src *; "},{"key":"X-Frame-Options","value":"sameorigin"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Cache-Control","value":"no-cache"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"Wed, 31 Dec 1969 23:59:59 GMT"},{"key":"X-UA-Compatible","value":"IE=EmulateIE10"},{"key":"Content-Type","value":"application/json;charset=UTF-8"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"primaryKey\": null,\n    \"status\": 500,\n    \"errorList\": [\n        {\n            \"i18nError\": null,\n            \"error\": \"INVALID_LOGIN\",\n            \"validationError\": null,\n            \"params\": null,\n            \"message\": \"Invalid Login and/or Password\"\n        }\n    ],\n    \"redirectURL\": null,\n    \"successToken\": null,\n    \"successMessage\": null,\n    \"contextValues\": null,\n    \"possibleErrors\": null,\n    \"passwordExpired\": false,\n    \"userId\": null,\n    \"unlockURL\": null,\n    \"tokenInfo\": null,\n    \"error\": true\n}"}],"_postman_id":"c4402cbe-c142-4725-a133-50be3b6de596"}],"id":"e1f435fa-2bc2-482b-955a-98fe2806af02","description":"<p>This Test Suit includes all the API calls related to IDP like login.</p>\n","event":[{"listen":"prerequest","script":{"id":"e55a360e-a720-4404-8b98-9f94df8e6c14","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"2a465163-6de5-4a2f-843e-8d3fcaf23dbe","type":"text/javascript","exec":[""]}}],"_postman_id":"e1f435fa-2bc2-482b-955a-98fe2806af02"},{"name":"Logout","item":[{"name":"Sysadmin-Login","event":[{"listen":"prerequest","script":{"id":"e8d9d920-3b7e-4901-8db2-446a88007292","exec":["console.log(\"API TC : \" +pm.info.requestName);"],"type":"text/javascript","packages":{}}},{"listen":"test","script":{"id":"d57db83e-aee8-4531-98eb-185bdcec0616","exec":["//Test 1: Validate success status code 200","pm.test(\"SUCCESS : Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","//Test 2: Validate response bosy is not empty","pm.test(\"Response body is not empty\", function () {","    pm.expect(pm.response.text()).not.to.be.empty;","});","","//Test 3: Save Cookie and pass the same while submitting the request","var cookieID = pm.cookies.get(\"SESSION\");","pm.globals.set(\"sessionId\", cookieID);","","//Test 4: Get OPENIAM_AUTH_TOKEN","var authId = pm.cookies.get(\"OPENIAM_AUTH_TOKEN\");","pm.globals.set(\"authtokenId\", authId);"],"type":"text/javascript","packages":{}}}],"id":"04d69ba7-79a1-45f4-8ee6-8b486de7cbe6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"login\":\"{{sysadmin}}\",\n\t\"password\":\"{{passwd00}}\"\n}"},"url":"https://staging.openiam.com/idp/rest/api/auth/public/login","urlObject":{"path":["idp","rest","api","auth","public","login"],"host":["https://staging.openiam.com"],"query":[],"variable":[]}},"response":[{"id":"eed74646-00d2-4e98-958f-c4bdac8dd511","name":"Sysadmin-Login [4.2]","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"login\":\"{{sysadmin}}\",\n\t\"password\":\"{{passwd00}}\"\n}"},"url":"https://staging.openiam.com/idp/rest/api/auth/public/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 13 Mar 2020 10:39:36 GMT"},{"key":"Server","value":"Apache"},{"key":"Content-Security-Policy","value":"default-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' apis.google.com; css-src *; img-src *; "},{"key":"X-Frame-Options","value":"sameorigin"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Cache-Control","value":"no-cache"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"Wed, 31 Dec 1969 23:59:59 GMT"},{"key":"X-UA-Compatible","value":"IE=EmulateIE10"},{"key":"Content-Type","value":"application/json;charset=UTF-8"},{"key":"Set-Cookie","value":"OPENIAM_AUTH_TOKEN=\"OVocA/EJr/7CvI5tmLIqgAaaaZa1Am2frBwIBy7+0lpyCLSOSXlIT25buZKRYh/NS2oci5qgkONfLUXuiosmDNWk5odo5quRrmtSARBBBDxgQq9GaV86CAVahlRpi5SygwbGSIaRb0PnGlRnnd87gUkuM/whlV8tcLtW6C8agnjXvLm1DfbpJrcFU7Prbc5c40CwbfH5rfO/zwzXxxf2GqfSf7sFLzVnj8uIsqXeQjBVhy+2dhDDHHLim0qiGVwFNbOkthAW1ERfGtxfDQZzRjU9JA0zkQu9sjhGNkdX/tDqJjHNFMBq3WBM5/06ioHEQdgzRKNIeCB2POqUb7vUBg==\"; Version=1; Domain=.openiam.com; Path=/; HttpOnly"},{"key":"Set-Cookie","value":"SESSION=NzRkMTEzNzItMTA1NS00MjUzLWJiYjYtZjU4Nzc5YWI0MGMw; Path=/idp/; HttpOnly; SameSite=Lax"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"primaryKey\": null,\n    \"status\": 200,\n    \"errorList\": null,\n    \"redirectURL\": \"/selfservice\",\n    \"successToken\": null,\n    \"successMessage\": null,\n    \"contextValues\": null,\n    \"possibleErrors\": null,\n    \"passwordExpired\": false,\n    \"userId\": \"3000\",\n    \"unlockURL\": null,\n    \"tokenInfo\": {\n        \"authToken\": \"OVocA/EJr/7CvI5tmLIqgAaaaZa1Am2frBwIBy7+0lpyCLSOSXlIT25buZKRYh/NS2oci5qgkONfLUXuiosmDNWk5odo5quRrmtSARBBBDxgQq9GaV86CAVahlRpi5SygwbGSIaRb0PnGlRnnd87gUkuM/whlV8tcLtW6C8agnjXvLm1DfbpJrcFU7Prbc5c40CwbfH5rfO/zwzXxxf2GqfSf7sFLzVnj8uIsqXeQjBVhy+2dhDDHHLim0qiGVwFNbOkthAW1ERfGtxfDQZzRjU9JA0zkQu9sjhGNkdX/tDqJjHNFMBq3WBM5/06ioHEQdgzRKNIeCB2POqUb7vUBg==\",\n        \"timeToLiveSeconds\": -1\n    },\n    \"error\": false\n}"}],"_postman_id":"04d69ba7-79a1-45f4-8ee6-8b486de7cbe6"},{"name":"Log-out","event":[{"listen":"prerequest","script":{"id":"686c865c-e54b-488f-b8bc-d0714f588f36","exec":["console.log(\"API TC : \" +pm.info.requestName);"],"type":"text/javascript","packages":{}}},{"listen":"test","script":{"id":"1be27481-1c8c-4bfd-b10e-8aa75b87fd20","exec":["//Test 1: Validate success status code 200","pm.test(\"SUCCESS : Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","//Test 2: Validate response bosy is not empty","pm.test(\"Response body is not empty\", function () {","    pm.expect(pm.response.text()).not.to.be.empty;","});","","// Test 3: Response string contains mentioned string","pm.test(\"JSON Response Matches Message - SUCCESS\", function () {","    pm.expect(pm.response.text()).to.include(\"SUCCESS\");","});"],"type":"text/javascript","packages":{}}}],"id":"99d5c147-05a6-42fd-a6e1-7ad28c8facda","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/x-www-form-urlencoded"},{"key":"Cookie","value":"OPENIAM_AUTH_TOKEN={{authtokenId}}","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"token_type_hint","type":"text","value":"access_token"},{"key":"token","type":"text","value":"{{authtoken}}"}]},"url":"https://staging.openiam.com/idp/oauth2/revoke","description":"<p>Log out functionality bu revoking oauth token.</p>\n<p>Test Assertions :</p>\n<ol>\n<li>Status code 200OK</li>\n<li>Response string contains - SUCCESS</li>\n</ol>\n","urlObject":{"path":["idp","oauth2","revoke"],"host":["https://staging.openiam.com"],"query":[],"variable":[]}},"response":[{"id":"ffae4485-9ac4-4744-bf5e-3e1ba1d20c80","name":"Log-out [4.2]","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/x-www-form-urlencoded"},{"key":"Cookie","value":"OPENIAM_AUTH_TOKEN={{authtokenId}}","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"token_type_hint","type":"text","value":"access_token"},{"key":"token","type":"text","value":"{{authtoken}}"}]},"url":"https://staging.openiam.com/idp/oauth2/revoke"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 13 Mar 2020 10:40:17 GMT"},{"key":"Server","value":"Apache"},{"key":"Content-Security-Policy","value":"default-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' apis.google.com; css-src *; img-src *; "},{"key":"X-Frame-Options","value":"sameorigin"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Cache-Control","value":"no-cache"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"Wed, 31 Dec 1969 23:59:59 GMT"},{"key":"X-UA-Compatible","value":"IE=EmulateIE10"},{"key":"Content-Type","value":"application/json;charset=UTF-8"},{"key":"Set-Cookie","value":"OPENIAM_AUTH_TOKEN=xxqR7f/y/zEuIxUIp4fRXM7HK+QGLlXvKuB71uuwmmmMx871KgcGdUlgITohxUduQTwbGOQDtcW5zz2/dF6Hm9DpNMLKkQ1JaMzDYmYtiQNHI8zsVmNEz9+ud1xoPoy5+a/QBl/Dfa6Q3GWSYJq9x12B+Q2N1Jxv8MGbzGUpkRh/eKpXeusflGt5DG2HIdfOkf2yDHGLJaUtHLff3ZfyVoigYW6SN4aP3rlP32HxLMVCTImnGEdwlsC4Ig2Vz57bvK2w9t8RNOiFGYXhpQ90A9tPcsJYH6uHo+Rf3h0e66qZc3JN+w1ioV7wdFzZgEejOf8zTWUxpbmJaLq10DKg3Q==; Path=/; HttpOnly; Secure; Domain=.openiam.com"},{"key":"Set-Cookie","value":"SESSION=NDQ3MWVjMjktNmY1ZS00MTI3LTk5YmItOGJkNDIyN2UyYmI0; Path=/idp/; HttpOnly; SameSite=Lax"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"x-openiam-auth-token","value":"xxqR7f/y/zEuIxUIp4fRXM7HK+QGLlXvKuB71uuwmmmMx871KgcGdUlgITohxUduQTwbGOQDtcW5zz2/dF6Hm9DpNMLKkQ1JaMzDYmYtiQNHI8zsVmNEz9+ud1xoPoy5+a/QBl/Dfa6Q3GWSYJq9x12B+Q2N1Jxv8MGbzGUpkRh/eKpXeusflGt5DG2HIdfOkf2yDHGLJaUtHLff3ZfyVoigYW6SN4aP3rlP32HxLMVCTImnGEdwlsC4Ig2Vz57bvK2w9t8RNOiFGYXhpQ90A9tPcsJYH6uHo+Rf3h0e66qZc3JN+w1ioV7wdFzZgEejOf8zTWUxpbmJaLq10DKg3Q=="},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"SUCCESS\",\n    \"errorCode\": null,\n    \"errorText\": null,\n    \"fieldMappings\": null,\n    \"stacktraceText\": null,\n    \"rootCauseText\": null,\n    \"responseValue\": null,\n    \"errorTokenList\": null,\n    \"success\": true,\n    \"failure\": false\n}"}],"_postman_id":"99d5c147-05a6-42fd-a6e1-7ad28c8facda"}],"id":"dcaee096-01f4-4758-abd3-b63daef97894","_postman_id":"dcaee096-01f4-4758-abd3-b63daef97894","description":""},{"name":"Forgot Username","item":[{"name":"Login_Valid_SysAdminUser","event":[{"listen":"prerequest","script":{"id":"068bae8a-08cb-4843-bde2-3fa55ce8f4f8","exec":["console.log(\"API TC : \" +pm.info.requestName);"],"type":"text/javascript","packages":{}}},{"listen":"test","script":{"id":"bd71dffe-15f6-41b1-a7e2-c4e46bab119f","exec":["//Test 1: Validate success status code 200","pm.test(\"SUCCESS : Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","//Test 2: Validate response bosy is not empty","pm.test(\"Response body is not empty\", function () {","    pm.expect(pm.response.text()).not.to.be.empty;","});",""],"type":"text/javascript","packages":{}}}],"id":"430c9675-9b10-4337-a195-87e90702f054","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"login\":\"{{sysadmin}}\",\n\t\"password\":\"{{passwd00}}\"\n}"},"url":"https://staging.openiam.com/idp/rest/api/auth/public/login","description":"<p>Test login functionality using valid username and valid password.</p>\n<p>Test Assertions :</p>\n<ol>\n<li>Status code : 200</li>\n</ol>\n","urlObject":{"path":["idp","rest","api","auth","public","login"],"host":["https://staging.openiam.com"],"query":[],"variable":[]}},"response":[{"id":"15138eeb-2445-4a1b-a455-4f59b0d71990","name":"Login_Valid_SysAdminUser [4.2]","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\"login\":\"sysadmin\",\n\"postbackUrl\":\"/webconsole/\",\n\"authType\":\"PASSWORD\"}"},"url":"https://staging.openiam.com/idp/rest/api/auth/public/login "},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 13 Mar 2020 10:37:21 GMT"},{"key":"Server","value":"Apache"},{"key":"Content-Security-Policy","value":"default-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' apis.google.com; css-src *; img-src *; "},{"key":"X-Frame-Options","value":"sameorigin"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Cache-Control","value":"no-cache"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"Wed, 31 Dec 1969 23:59:59 GMT"},{"key":"X-UA-Compatible","value":"IE=EmulateIE10"},{"key":"Content-Type","value":"application/json;charset=UTF-8"},{"key":"Set-Cookie","value":"SESSION=Yzk1YWM4YzQtODJhOC00ZDdhLWFmNDctMWUxNjdhNTVhMTk0; Path=/idp/; HttpOnly; SameSite=Lax"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Length","value":"210"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"primaryKey\": null,\n    \"status\": 200,\n    \"errorList\": null,\n    \"redirectURL\": \"/idp/auth-password?login=sysadmin&postbackUrl=/webconsole/\",\n    \"successToken\": null,\n    \"successMessage\": null,\n    \"contextValues\": null,\n    \"possibleErrors\": null,\n    \"passwordExpired\": false,\n    \"userId\": null,\n    \"unlockURL\": null,\n    \"tokenInfo\": null,\n    \"error\": false\n}"}],"_postman_id":"430c9675-9b10-4337-a195-87e90702f054"},{"name":"Forgot_Username_valid","event":[{"listen":"prerequest","script":{"id":"643d1164-515b-41ef-a8f7-8546d0eba51f","exec":["console.log(\"API TC : \" +pm.info.requestName);"],"type":"text/javascript","packages":{}}},{"listen":"test","script":{"id":"f220f20f-fb9c-4fc5-bf93-496a3baac130","exec":["//Test 1: Validate success status code 200","pm.test(\"SUCCESS : Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","//Test 2: Validate response bosy is not empty","pm.test(\"Response body is not empty\", function () {","    pm.expect(pm.response.text()).not.to.be.empty;","});","","//Test 3: Assertion of response string","pm.test(\"JSON Response Matches Message - USER_IDENTITY_SENT\", function () {","    pm.expect(pm.response.text()).to.include(\"USER_IDENTITY_SENT\");","});","","//Test 4: Assertion of response string","pm.test(\"JSON Response Matches UI toaster Message - If you have entered valid email address you will receive your username soon, otherwise please contact help desk or administrator.\", function () {","    pm.expect(pm.response.text()).to.include(\"If you have entered valid email address you will receive your username soon, otherwise please contact help desk or administrator.\");","});"],"type":"text/javascript","packages":{}}}],"id":"83a69d3c-f9bb-4961-ba24-e9971e4d5063","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\"email\":\"test@test.com\"}"},"url":"https://staging.openiam.com/idp/rest/api/password/public/forgotUsername","description":"<p>Forgot Username functionality validation.</p>\n<p>Test Assertions :</p>\n<ol>\n<li>Status Code 200OK</li>\n<li>Response string contains - USER_IDENTITY_SENT</li>\n<li>Response string contains - If you have entered valid email address you will receive your username soon, otherwise please contact help desk or administrator.</li>\n</ol>\n","urlObject":{"path":["idp","rest","api","password","public","forgotUsername"],"host":["https://staging.openiam.com"],"query":[],"variable":[]}},"response":[{"id":"6ecf0341-8a7e-4d5b-9d3f-d07990487194","name":"Forgot_Username_valid [4.2]","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"email","value":"test@test.com","type":"text"}]},"url":"https://staging.openiam.com/idp/rest/api/password/public/forgotUsername"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 12 Feb 2020 05:38:45 GMT"},{"key":"Server","value":"Apache"},{"key":"X-Frame-Options","value":"sameorigin"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Cache-Control","value":"no-cache"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"Wed, 31 Dec 1969 23:59:59 GMT"},{"key":"X-UA-Compatible","value":"IE=EmulateIE10"},{"key":"Content-Type","value":"application/json;charset=UTF-8"},{"key":"Set-Cookie","value":"SESSION=MGRkYmFmMGMtOWQyMC00ODlkLTg2ZTgtOGE0NDRmYjY2Yjkz; Path=/idp/; HttpOnly; SameSite=Lax"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"primaryKey\": null,\n    \"status\": 200,\n    \"errorList\": null,\n    \"redirectURL\": \"/selfservice\",\n    \"successToken\": {\n        \"message\": \"USER_IDENTITY_SENT\",\n        \"params\": null\n    },\n    \"successMessage\": \"If you have entered valid email address you will receive your username soon, otherwise please contact help desk or administrator.\",\n    \"contextValues\": null,\n    \"possibleErrors\": null,\n    \"error\": false\n}"}],"_postman_id":"83a69d3c-f9bb-4961-ba24-e9971e4d5063"}],"id":"2df7c09c-702a-4be6-9abd-078a2b4fb0c5","_postman_id":"2df7c09c-702a-4be6-9abd-078a2b4fb0c5","description":""}],"event":[{"listen":"prerequest","script":{"id":"cb301625-038b-464b-94d3-3c94f9f08ad4","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"2be1eedb-ad57-4a12-8101-6661da223495","type":"text/javascript","exec":[""]}}],"variable":[{"key":"url","value":"https://staging.openiam.com"},{"key":"url","value":"http://20.41.218.215","type":"string","disabled":true},{"key":"url","value":"https://clientteam.openiam.com","type":"string","disabled":true}]}