example/package.json - Local reference to library "commander": "^9.3.0", - "ubiq-security": "^1.0.9", + "ubiq-security": "file:..", "yargs": "^15.4.1" tput reset && npm test --path 'tests/UbiqSecurityStucturedEncryptDecrypt.test.js' tput reset && npm test -- -t 'addUserDefinedMetdata' tput reset && npm test -- -t "GetCopyOfUsage*" tput reset && npm test -- -t 'Structured_GetCopyOfUsage_Minutes' tput reset && npm test -- -t 'LoadTest' tput reset && npm test --path tests/UbiqSecurityLoadTest.test.js npm test ubiq-node unit test API key export UBIQ_ACCESS_KEY_ID=KsV3HSoPG77oAXUy3tuoxwwL export UBIQ_SECRET_SIGNING_KEY=C81UfvEilsJIIzyFycQk3h/aA6j2IXCCy7v2fXq1F6iX export UBIQ_SECRET_CRYPTO_ACCESS_KEY=NiVqAikgUJmiTmfETz4Qn6BzqEvvKKEfICr5hPE5YJj0 export UBIQ_SERVER=https://api.ubiqsecurity.com export UBIQ_TEST_DATA_FILE=/home/gary/ubiq-node/tests/DATA/100.json export UBIQ_MAX_AVG_ENCRYPT=5000 export UBIQ_MAX_TOTAL_DECRYPT=500000 export UBIQ_IDP_USERNAME=gary+scrum@ubiqsecurity.com export UBIQ_IDP_PASSWORD=Josie123$ [Library Structured Unit Tests - ubiq-node] ACCESS_KEY_ID = KsV3HSoPG77oAXUy3tuoxwwL SECRET_SIGNING_KEY = C81UfvEilsJIIzyFycQk3h/aA6j2IXCCy7v2fXq1F6iX SECRET_CRYPTO_ACCESS_KEY = NiVqAikgUJmiTmfETz4Qn6BzqEvvKKEfICr5hPE5YJj0 SERVER = https://api.ubiqsecurity.com node ./ubiq_sample_fpe.js -c ./credentials -P default -s -n SSN_passthrough -e 123-456-7890-123456678 export UBIQ_ACCESS_KEY_ID=jEK27hE8W1HmcFB2zr4H32ax export UBIQ_SECRET_SIGNING_KEY=ToahxnhHg/u4QrjlpQehOht9WJEDwvhvuRsKG7A/KPLK export UBIQ_SECRET_CRYPTO_ACCESS_KEY=749XOUXBY8Y2hQ/fpnAIC1NwhENKjrjCBXkkYIiIMITZ export UBIQ_SERVER=https://api-dev.ubiqsecurity.com export UBIQ_TEST_DATA_FILE=/home/gary/ubiq-java-samples-community/test_generator/100-dev.json root@debian:/home/gary/ubiq-node# npm outdated Package Current Wanted Latest Location Depended by commander 9.5.0 9.5.0 12.1.0 node_modules/commander ubiq-node dotenv 16.0.3 16.4.5 16.4.5 node_modules/dotenv ubiq-node eslint 7.32.0 7.32.0 9.8.0 node_modules/eslint ubiq-node eslint-plugin-import 2.26.0 2.29.1 2.29.1 node_modules/eslint-plugin-import ubiq-node jest 28.1.3 28.1.3 29.7.0 node_modules/jest ubiq-node node-fetch 2.6.7 2.7.0 3.3.2 node_modules/node-fetch ubiq-node uuid 8.3.2 8.3.2 10.0.0 node_modules/uuid ubiq-node root@debian:/tmp/Z/new# npm outdated Package Current Wanted Latest Location Depended by commander 9.5.0 9.5.0 12.1.0 node_modules/commander new eslint 7.32.0 7.32.0 9.8.0 node_modules/eslint new as-is dotenv - passed npm install uuid@10.0.0 npm audi fix commander 9.5.0 9.5.0 12.1.0 node_modules/commander ubiq-node eslint 7.32.0 7.32.0 9.8.0 node_modules/eslint ubiq-node eslint-plugin-import 2.26.0 2.29.1 2.29.1 node_modules/eslint-plugin-import ubiq-node jest 28.1.3 28.1.3 29.7.0 node_modules/jest ubiq-node node-fetch 2.6.7 2.7.0 3.3.2 node_modules/node-fetch ubiq-node npm install eslint-plugin-import@2.29.1 node ubiq_sample.js -c ../credentials -P dev-local -s -e -i README.md -o /tmp/README-s.enc node ubiq_sample.js -c ../credentials -P dev-local -p -e -i README.md -o /tmp/README-p.enc node ubiq_sample.js -c ../credentials -P dev-local -s -d -i /tmp/README-s.enc -o /tmp/README-s-s.dec node ubiq_sample.js -c ../credentials -P dev-local -s -d -i /tmp/README-p.enc -o /tmp/README-p-s.dec node ubiq_sample.js -c ../credentials -P dev-local -p -d -i /tmp/README-s.enc -o /tmp/README-s-p.dec node ubiq_sample.js -c ../credentials -P dev-local -p -d -i /tmp/README-p.enc -o /tmp/README-p-p.dec md5sum README.md /tmp/README-s-s.dec /tmp/README-p-s.dec /tmp/README-s-p.dec /tmp/README-p-p.dec node ubiq_sample.js -c ../credentials -P dev-local -s -d /tmp/README.enc -o /tmp/README.dec 14 node ubiq_sample.js -c ../credentials -P dev-local -p -d -i /tmp/README.enc -o /tmp/README.dec 18 node ubiq_sample.js -c ../credentials -P dev-local -s -d -i /tmp/README.enc -o /tmp/README.dec // Update configuration file for SSO tput reset && npm test -- -t "idp_sso" node ./ubiq_sample_structured.js -c ../credentials -P idp-local -n ALPHANUM_SSN -e 123-45-6789 -g ../configuration node ./ubiq_sample_structured.js -c ../credentials -P idp-local -n ALPHANUM_SSN -d 500-0q-S2yD -g ../configuration node ubiq_sample.js -g ../configuration -c ../credentials -P idp-local -s -e -i README.md -o /tmp/README.enc node ubiq_sample.js -g ../configuration -c ../credentials -P idp-local -s -d -i /tmp/README.enc -o /tmp/README.dec tput reset && node ./ubiq_sample_structured.js -c ../credentials -P prod_java_unit_test -n ALPHANUM_SSN -e 123-45-6789 node ./ubiq_sample_structured.js -c ../credentials -P prod -n SSN -e 123-45-6789 -g ./configuration cat configuration > log1.txt && node ./ubiq_sample_structured.js -c ../credentials -P prod -n SSN -e 123-45-6789 -g ./configuration >> log1.txt cat configuration > log2.txt && node ./ubiq_sample_structured.js -c ../credentials -P prod -n SSN -e 123-45-6789 -g ./configuration >> log2.txt cat configuration > log3.txt && node ./ubiq_sample_structured.js -c ../credentials -P prod -n SSN -e 123-45-6789 -g ./configuration >> log3.txt cat configuration > log4.txt && node ./ubiq_sample_structured.js -c ../credentials -P prod -n SSN -e 123-45-6789 -g ./configuration >> log4.txt node ./ubiq_sample.js -c ../credentials -P prod -g ./configuration -s -e -i README.md -o /tmp/readme.enc node ./ubiq_sample.js -c ../credentials -P prod -g ./configuration -s -e -i README.md -o /tmp/README-s.enc node ./ubiq_sample.js -c ../credentials -P prod -g ./configuration -p -d -i /tmp/readme.enc -o /tmp/README.dec const fetch = require('node-fetch'); const auth = require('./auth'); const { UrlHelper } = require('./urlHelper'); let options = { method: 'POST', body: new URLSearchParams({ client_id: '0oakpjijng7IHLqNQ5d7', client_secret: 'aGhK63MZX2S_Cr0xVGGme-BTBNXCwmopR-JiI11SPvn1HcOsOQ0d9UX964enO6Ql', username: 'gary+okta1@ubiqsecurity.com', password: 'Stella123$', grant_type: 'password', scope: 'openid offline_access okta.users.read okta.groups.read' }).toString(), headers: { Accept: 'application/json', 'Cache-control': 'no-cache', 'Content-type': 'application/x-www-form-urlencoded', }} let response = await fetch("https://dev-68866100.okta.com/oauth2/v1/token", options); https://api.ubiqsecurity.com/e1993087-070d-439e-9d4c-8eba88cdec54/api/v3/scim