-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
12 changed files
with
113 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,15 +43,14 @@ | |
"//": "[email protected] has a vuln, see OKTA-473553", | ||
"**/set-value": "^4.1.0", | ||
"ejs": "^3.1.7", | ||
"axios": "^0.27.2", | ||
"broadcast-channel": "4.13.0" | ||
"axios": "^0.27.2" | ||
}, | ||
"dependencies": { | ||
"@babel/runtime": "^7.11.2", | ||
"compare-versions": "^4.1.2" | ||
}, | ||
"peerDependencies": { | ||
"@okta/okta-auth-js": "^5.3.1 || ^6.0.0", | ||
"@okta/okta-auth-js": "^5.3.1 || ^6.0.0 || ^7.0.0", | ||
"react": ">=16.8.0", | ||
"react-dom": ">=16.8.0", | ||
"react-router-dom": ">=5.1.0" | ||
|
@@ -65,7 +64,7 @@ | |
"@babel/preset-env": "^7.11.5", | ||
"@babel/preset-react": "^7.10.4", | ||
"@babel/register": "^7.12.1", | ||
"@okta/okta-auth-js": "~6.7.5", | ||
"@okta/okta-auth-js": "^7.0.0", | ||
"@rollup/plugin-babel": "^5.2.1", | ||
"@rollup/plugin-replace": "^2.3.4", | ||
"@testing-library/jest-dom": "^5.16.2", | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/bin/bash -x | ||
|
||
source ${OKTA_HOME}/${REPO}/scripts/setup.sh | ||
|
||
setup_service java 1.8.222 | ||
setup_service google-chrome-stable 89.0.4389.72-1 | ||
|
||
export CI=true | ||
export TEST_SUITE_TYPE="junit" | ||
export TEST_RESULT_FILE_DIR="${REPO}/test-reports/e2e" | ||
|
||
export ISSUER=https://samples-javascript.okta.com/oauth2/default | ||
export CLIENT_ID=0oapmwm72082GXal14x6 | ||
export SPA_CLIENT_ID=0oapmwm72082GXal14x6 | ||
export [email protected] | ||
get_secret prod/okta-sdk-vars/password PASSWORD | ||
|
||
# modifies the package.json of all workspaces to the latest 6.x version | ||
./scripts/utils/sync-ws-auth-js.sh $(yarn info @okta/okta-auth-js@^6 --json | jq '.data.versions | last' | tr -d \") | ||
yarn --ignore-scripts | ||
|
||
if ! yarn test:e2e; then | ||
echo "e2e tests failed! Exiting..." | ||
exit ${TEST_FAILURE} | ||
fi | ||
|
||
echo ${TEST_SUITE_TYPE} > ${TEST_SUITE_TYPE_FILE} | ||
echo ${TEST_RESULT_FILE_DIR} > ${TEST_RESULT_FILE_DIR_FILE} | ||
exit ${PUBLISH_TYPE_AND_RESULT_DIR} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/bash -x | ||
|
||
# runs unit tests against latest 6.x version | ||
|
||
source ${OKTA_HOME}/${REPO}/scripts/setup.sh | ||
|
||
export TEST_SUITE_TYPE="junit" | ||
export TEST_RESULT_FILE_DIR="${REPO}/test-reports/unit" | ||
|
||
if ! yarn add -DW --ignore-scripts @okta/okta-auth-js@^6; then | ||
echo "auth-js v6.x could not be installed" | ||
exit ${FAILED_SETUP} | ||
fi | ||
|
||
# Run jest with "ci" flag | ||
if ! yarn test:unit --ci; then | ||
echo "unit failed! Exiting..." | ||
exit ${TEST_FAILURE} | ||
fi | ||
|
||
echo ${TEST_SUITE_TYPE} > ${TEST_SUITE_TYPE_FILE} | ||
echo ${TEST_RESULT_FILE_DIR} > ${TEST_RESULT_FILE_DIR_FILE} | ||
exit ${PUBLISH_TYPE_AND_RESULT_DIR} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1460,17 +1460,16 @@ | |
"@nodelib/fs.scandir" "2.1.5" | ||
fastq "^1.6.0" | ||
|
||
"@okta/okta-auth-js@*", "@okta/okta-auth-js@~6.7.5": | ||
version "6.7.5" | ||
resolved "https://registry.yarnpkg.com/@okta/okta-auth-js/-/okta-auth-js-6.7.5.tgz#b2eeaf5daa12f94aa6cfa6271e53e4cd6d3e2aee" | ||
integrity sha512-zeN+5uA+PsBUIIqKD9K4Nz2jBGlKbMWURtkXEJmC2o8marcFKTMuPtkroIUV41gLT+B4H4ocCzMp/b1AOxgZWw== | ||
"@okta/okta-auth-js@*", "@okta/okta-auth-js@^7.0.0": | ||
version "7.0.0" | ||
resolved "https://registry.yarnpkg.com/@okta/okta-auth-js/-/okta-auth-js-7.0.0.tgz#d83acb76394ebc7d019d922f0e319fe6655c41ac" | ||
integrity sha512-tF+OiaAHNHc5ACKUR5lynX7LQyw9+pqKj8hzSY+E6OCKucYudjMg87AdCdyBxpFgxrirRlAFYv08sM1wwn0Eeg== | ||
dependencies: | ||
"@babel/runtime" "^7.12.5" | ||
"@babel/runtime-corejs3" "^7.17.0" | ||
"@peculiar/webcrypto" "^1.4.0" | ||
Base64 "1.1.0" | ||
atob "^2.1.2" | ||
broadcast-channel "4.13.0" | ||
broadcast-channel "~4.17.0" | ||
btoa "^1.2.1" | ||
core-js "^3.6.5" | ||
cross-fetch "^3.1.5" | ||
|
@@ -1483,17 +1482,17 @@ | |
webcrypto-shim "^0.1.5" | ||
xhr2 "0.1.3" | ||
|
||
"@okta/[email protected].1": | ||
version "6.5.1" | ||
resolved "https://registry.yarnpkg.com/@okta/okta-auth-js/-/okta-auth-js-6.5.1.tgz#aa1b3815152e729c6a69137a19c7fd502d2e4e5d" | ||
integrity sha512-mBzg+EH1Ey7skxHiimSN/ZYraB3l8ZXZlBi8RXNmRLwPMbFlZkQoKrrQu357S5YSEckF59Lqbb/r9Y3cXBNQBQ== | ||
"@okta/[email protected].4": | ||
version "6.5.4" | ||
resolved "https://registry.yarnpkg.com/@okta/okta-auth-js/-/okta-auth-js-6.5.4.tgz#a61877162113e6e0cfe7e05ecaf55840aa287669" | ||
integrity sha512-a96D1QUBlE464Xm0GBSIWTcRYyGgsDf/TchGJeDbUvEa2rcFJcxG1x+7gRUzMW+WiX1DN7N0v8Dd+j6Fgou+ow== | ||
dependencies: | ||
"@babel/runtime" "^7.12.5" | ||
"@babel/runtime-corejs3" "^7.17.0" | ||
"@peculiar/webcrypto" "1.1.6" | ||
Base64 "1.1.0" | ||
atob "^2.1.2" | ||
broadcast-channel "^4.10.0" | ||
broadcast-channel "4.13.0" | ||
btoa "^1.2.1" | ||
core-js "^3.6.5" | ||
cross-fetch "^3.1.5" | ||
|
@@ -1506,12 +1505,12 @@ | |
webcrypto-shim "^0.1.5" | ||
xhr2 "0.1.3" | ||
|
||
"@okta/okta-signin-widget@^6.6.1": | ||
version "6.6.1" | ||
resolved "https://registry.yarnpkg.com/@okta/okta-signin-widget/-/okta-signin-widget-6.6.1.tgz#8a1158e6e57b0e168726ded7375424ac9fb2dc80" | ||
integrity sha512-H0OnQzQQOTGKpFK0imT+aatS0Qrg7m0uuW9GHbHeFTU4Usq0tsD2TsswHEDhJx+YOJr/6TbX2zTfnPLBskgXYQ== | ||
"@okta/okta-signin-widget@^6.7.1": | ||
version "6.7.1" | ||
resolved "https://registry.yarnpkg.com/@okta/okta-signin-widget/-/okta-signin-widget-6.7.1.tgz#d9bf00ca4498cb60041dcc725d618e6f50cf36fc" | ||
integrity sha512-81OManicMpSqXJ0L4fLuniZx8G10Fmo6xDEKeKVeO7QM3GyFfyFTJtxcd6rn0P6OCnAUZ5yfVnI5xceO4YfWTA== | ||
dependencies: | ||
"@okta/okta-auth-js" "6.5.1" | ||
"@okta/okta-auth-js" "6.5.4" | ||
"@sindresorhus/to-milliseconds" "^1.0.0" | ||
"@types/backbone" "^1.4.15" | ||
"@types/jquery" "^3.5.14" | ||
|
@@ -3142,7 +3141,7 @@ braces@^3.0.2, braces@~3.0.2: | |
dependencies: | ||
fill-range "^7.0.1" | ||
|
||
[email protected], broadcast-channel@^4.10.0: | ||
[email protected]: | ||
version "4.13.0" | ||
resolved "https://registry.yarnpkg.com/broadcast-channel/-/broadcast-channel-4.13.0.tgz#21387b2602b9e9ec3b97b03bd8a8d2c198352ff6" | ||
integrity sha512-fcDr8QNJ4SOb6jyjUNZatVNmcHtSWfW4PFcs4xIEFZAtorKCIFoEYtjIjaQ4c0jrbr/Bl8NIwOWiLSyspoAnEQ== | ||
|
@@ -3155,6 +3154,17 @@ [email protected], broadcast-channel@^4.10.0: | |
rimraf "3.0.2" | ||
unload "2.3.1" | ||
|
||
broadcast-channel@~4.17.0: | ||
version "4.17.0" | ||
resolved "https://registry.yarnpkg.com/broadcast-channel/-/broadcast-channel-4.17.0.tgz#599d44674b09a4e2e07af6da5d03b45ca8bffd11" | ||
integrity sha512-r2GSQMNgZv7eAsbdsu9xofSjc3J2diCQTPkSuyVhLBfx8fylLCVhi5KheuhuAQBJNd4pxqUyz9U6rvdnt7GZng== | ||
dependencies: | ||
"@babel/runtime" "^7.16.0" | ||
oblivious-set "1.1.1" | ||
p-queue "6.6.2" | ||
rimraf "3.0.2" | ||
unload "2.3.1" | ||
|
||
browser-process-hrtime@^1.0.0: | ||
version "1.0.0" | ||
resolved "https://registry.yarnpkg.com/browser-process-hrtime/-/browser-process-hrtime-1.0.0.tgz#3c9b4b7d782c8121e56f10106d84c0d0ffc94626" | ||
|