Example of # 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
Google Authenticated must be enabled and the shared secret key would be used to generate the multi factor authentication code.
Nodejs 8 is required and selenium should be installed to system.
npm install
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
npm run main