summaryrefslogtreecommitdiff
path: root/evergreen
diff options
context:
space:
mode:
authorVarun Ravichandran <varun.ravichandran@mongodb.com>2023-02-03 03:43:52 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-02-25 02:52:37 +0000
commit4245d08e8748b6ff6a316d8d9242abec049cef31 (patch)
treeb37bb9429909d397205406ef4013e893f93d884f /evergreen
parented369121f42518550c6327693d489bf122c3c25b (diff)
downloadmongo-4245d08e8748b6ff6a316d8d9242abec049cef31.tar.gz
SERVER-70958: Add end-to-end device authorization grant flow integration test with Okta
Diffstat (limited to 'evergreen')
-rw-r--r--evergreen/external_auth_oidc_setup.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/evergreen/external_auth_oidc_setup.sh b/evergreen/external_auth_oidc_setup.sh
new file mode 100644
index 00000000000..c082304a022
--- /dev/null
+++ b/evergreen/external_auth_oidc_setup.sh
@@ -0,0 +1,15 @@
+DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" > /dev/null 2>&1 && pwd)"
+. "$DIR/prelude.sh"
+
+cd src
+
+set -o errexit
+
+# Should output contents to new file in home directory.
+cat << EOF > $HOME/oidc_e2e_setup.json
+{
+ "testserversecurityone@okta-test.com" : "${oidc_okta_test_user_account_one_secret}",
+ "testserversecuritytwo@okta-test.com" : "${oidc_okta_test_user_account_two_secret}",
+ "testserversecuritythree@okta-test.com" : "${oidc_okta_test_user_account_three_secret}"
+}
+EOF