Skip to content
This repository has been archived by the owner on Jun 22, 2021. It is now read-only.
/ selenium-okta Public archive

Example of sign in Okta with Google Authenticator by using selenium. Useful for automated tests.

License

Notifications You must be signed in to change notification settings

zhangyuan/selenium-okta

Repository files navigation

selenium-okta

Example of sign in Okta with Google Authenticator by using selenium. Useful for automated tests.

Want to try puppeteer? Check out another repository: https://github.com/zhangyuan/puppeteer-okta

Prerequisites

Google Authenticated must be enabled and the shared secret key would be used to generate the multi factor authentication code.

How to run

Setup the environment

Nodejs 8 is required and selenium should be installed to system.

npm install

Set environment variables

export OKTA_URL=YOUR_OKTA_LOGIN_PAGE_URL 
export SHARED_SECRET_KEY=SHARED_SECRET_KEY 
export OKTA_USERNAME=YOUR_USERNAME 
export OKTA_PASSWORD=YOUR_PASSWORD

Run the script

npm run main

About

Example of sign in Okta with Google Authenticator by using selenium. Useful for automated tests.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages