{"info":{"_postman_id":"33d4edd6-a659-4e0c-88ad-7fb2d8b20a0d","name":"IDW: Standard Device Profiling (Verify)","description":"<html><head></head><body><h2 id=\"before-you-start\"><strong>Before you start,</strong></h2>\n<p><strong>Create a new</strong> <strong><code>Environment</code></strong> <strong>so this project can save and write information for you automatically.</strong></p>\n<img src=\"https://content.pstmn.io/9412927d-0d08-4c3d-8c3b-dd8d7329f938/U2NyZWVuIFNob3QgMjAyMi0xMS0wOSBhdCA3LjA5LjUxIFBNLnBuZw==\">\n\n<p><a href=\"https://docs.iddataweb.com/docs/axn-verify-passive-risk-analysis\">Follow these instructions step-by-step to use this project properly</a></p>\n<p>If you get stuck, or decide to walk through this project again with new data, call each step in order to ensure the old data gets replaced.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"15446307","collectionId":"33d4edd6-a659-4e0c-88ad-7fb2d8b20a0d","publishedId":"2s8YmGW6rk","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-07-18T16:37:27.000Z"},"item":[{"name":"Get Token","event":[{"listen":"test","script":{"id":"0e2e7a27-ea29-45e5-8df5-788e24384868","exec":["pm.environment.clear()","var authString = request.headers.authorization.split(\" \")[1].toString()","var encodedAuth = Buffer.from(authString, 'base64')","var decodedAuth = encodedAuth.toString().split(\":\")","var forwardApiKey = decodedAuth[0]","","postman.setEnvironmentVariable(\"token\",JSON.parse(pm.response.text()).access_token)","postman.setEnvironmentVariable(\"forwardApiKey\", forwardApiKey)"],"type":"text/javascript","packages":{}}}],"id":"fc6895ab-d1a5-44ef-b27f-ec341eba02cf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":false},"method":"POST","header":[],"url":"https://api.preprod.iddataweb.com/v1/token?grant_type=client_credentials","urlObject":{"protocol":"https","path":["v1","token"],"host":["api","preprod","iddataweb","com"],"query":[{"key":"grant_type","value":"client_credentials"}],"variable":[]}},"response":[],"_postman_id":"fc6895ab-d1a5-44ef-b27f-ec341eba02cf"},{"name":"Get Score","event":[{"listen":"test","script":{"id":"f37bfdbf-2ac7-4edb-b730-234ed97323dd","exec":["var requestBody  = JSON.parse(pm.request.body.raw)","var responseBody = JSON.parse(pm.response.text());","var fuzzyDeviceID  = null;","var forwardApiKey = responseBody.forwardApiKey","//ASI (OR TRANSACTION ID)","var asi = responseBody.transaction_id","","var acquiredAttributes = responseBody.acquiredAttributes || null","// FUZZY DEVICE ID","if (acquiredAttributes){","    for (var i = 0; i < acquiredAttributes.length; ++i){","        if (acquiredAttributes[i].attributeType === 'FuzzyDeviceID'){","            fuzzyDeviceID = acquiredAttributes[i].values.fuzzyDeviceID","        }","    }","    ","}","","postman.setEnvironmentVariable(\"asi\", asi)","postman.setEnvironmentVariable(\"fuzzyDeviceID\", fuzzyDeviceID)","postman.setEnvironmentVariable(\"forwardApiKey\", forwardApiKey)"],"type":"text/javascript","packages":{}}}],"id":"baedf9ec-6322-4138-a82a-acf0c9156039","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n    \"apikey\": \"{{forwardApiKey}}\",\r\n    \"credential\": \"e.g. Employee@company.com\",\r\n    \"appID\": \"e.g. Employee Onboarding App\",\r\n    \"userAttributes\": [\r\n        {\r\n            \"attributeType\": \"APSessionID\",\r\n            \"values\": {\r\n                \"apSessionId\": \"yourSessionIDHere\"\r\n            }\r\n        }\r\n    ]\r\n}"},"url":"https://api.preprod.iddataweb.com/v1/slverify","urlObject":{"protocol":"https","path":["v1","slverify"],"host":["api","preprod","iddataweb","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"baedf9ec-6322-4138-a82a-acf0c9156039"},{"name":"Trust Device","id":"0192137e-7995-4bae-ba86-13645a7cd43c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":"{\n    \"apikey\":\"{{forwardApiKey}}\",\n    \"asi\":\"{{asi}}\",\n    \"credential\": \"e.g._Employee@company.com\",\n    \"appID\": \"e.g._Employee_Onboarding_App\",\n    \"userAttributes\": [\n        {\n            \"attributeType\": \"FuzzyDeviceID\",\n            \"values\": {\n                \"fuzzyDeviceID\":\"{{fuzzyDeviceID}}\"                \n            }\n        },\n                {\n            \"attributeType\": \"Fullname\",\n            \"values\": {\n                \"fname\":\"sss\",\n                \"mname\":\"sss\"     ,\n                \"lname\":\"sss\"                     \n            }\n        }\n    ]\n}"},"url":"https://api.preprod.iddataweb.com/v1/trustdevice","urlObject":{"protocol":"https","path":["v1","trustdevice"],"host":["api","preprod","iddataweb","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"0192137e-7995-4bae-ba86-13645a7cd43c"}],"event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""],"id":"068209f9-8c68-4ea8-adf4-ad8914379b1b"}},{"listen":"test","script":{"type":"text/javascript","exec":[""],"id":"cdd5fcb2-8ad9-44dc-872e-01b0ac73c8e6"}}]}