Stay logged in to Okta SSO

Stay logged in to Okta SSO If you have any Single Sin On system you have to use on a regular basis then the chances are that you find having to log in over and over again to access your normal sites in extremely tedious. 

go to site Having experienced this in the past I decided to make a Tampermonkey script to save me the hassle. 

see url Tampermonkey is extremely easy and user friendly to use, it is a chrome extension that allows you to execute JavaScript on any web page you like as if it were embedded in the page it's self. 

source link

السوق السعودي المالية First of all install the Tampermonkey Chrome Plugin

enter site

source site Now you have tampermonkey just open the user interface and add this script, remember to change the URL of the page you want to target and add your email and password. 

go here

follow link Once you have done this just open the SSO page and pin that tab in Chrome so it is always open in your browser and the script will do the rest.

see // ==UserScript== // @name Okta stay logged in. // @namespace // @version 0.1 // @description Keeps you logged in to your Okta SSO console // @match* // @copyright 2012+, You // ==/UserScript== var ssologin = function () { var email = document.getElementById('user-signin'); if (email) { var pass = document.getElementById('pass-signin'); var signin_button = document.getElementById('signin-button'); email.value = ''; pass.value = 'PASSWORD'; var evt = document.createEvent("HTMLEvents"); evt.initEvent('click', true, true); signin_button.dispatchEvent(evt); console.log('Logged In'); } var button = document.getElementById('session-timeout-ok'); if (button) { var evt = document.createEvent("HTMLEvents"); evt.initEvent('click', true, true); button.dispatchEvent(evt); } } window.setInterval(ssologin, 10000);


By submitting this form, you accept the Mollom privacy policy.