CINXE.COM
auth.gsa.gov - Sign In
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="robots" content="noindex,nofollow" /> <!-- Styles generated from theme --> <link href="/api/internal/brand/theme/style-sheet?touch-point=SIGN_IN_PAGE&v=6f4baa3545f2c540f96163212415f8a9f181c43dee8fbeb1e224b133e051b8ca95d68c3c28c35c2b33e520ecc7f70ee3" rel="stylesheet" type="text/css"> <!-- Favicon from theme --> <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/> <title>auth.gsa.gov - Sign In</title> <!-- Core widget js and css --> <script type="text/javascript" src="https://ok10static.oktacdn.com/assets/js/sdk/okta-signin-widget/7.25.0/js/okta-sign-in.min.js" integrity="sha384-oMTRqyPl7AvAzanR/7qBpHwjsijbTROdzCH9K6qzc0IfK3SKWTahMXevD33I0Gzj" crossorigin="anonymous"></script> <link rel="stylesheet" type="text/css" href="https://ok10static.oktacdn.com/assets/js/sdk/okta-signin-widget/7.25.0/css/okta-sign-in.min.css" integrity="sha384-63aTBe2wMqzMRsDHNmlF/FreSWmf3p08BhUDoPlzVf3d+stbkfWtqmdyJ4He5m3m" crossorigin="anonymous"> <!-- Customizable css theme options. Link your own stylesheet or override styles inline. --> <link rel="stylesheet" type="text/css" href="" integrity="" crossorigin="anonymous"> <!-- styles for custom sign in --> <link rel="stylesheet" type="text/css" href="https://ok10static.oktacdn.com/assets/loginpage/css/custom-signin.a91af2abfd04662e499bd3e151150dbf.css" integrity="sha384-BhMidK4jYIQaVFKNVHUvbfdgrt4NVlnlTZMsOMWLdWkme3j1JcshKDNQiMssd7sN" crossorigin="anonymous"> <style> /* Background Image */ #login-bg-image-id { background-image: none } body{ min-height:100vh; position:relative; margin:0; } /* Header */ #header { background-color: #ffffff; padding-top: 10px; padding-bottom: 0px; position: relative; display: flex; align-items: flex-start; height: 90px; } #header.header-img{ margin-right:auto; } #header img { width: auto; height: 70px; } #header .text { font-size:26px; font-family: Arial, sans-serif; font-weight: 600; margin-top: auto; margin-bottom: 16px; margin-left: 20px; color: #1B263B; } /* Login Header */ #okta-login-header { background-color: #093657; height:80px; position: relative; } #okta-login-header::after { position: absolute; content: ''; top: 100%; left: 0; width: 100%; height: 10px; background-color: #720707; } /* Login Wrap */ .login-wrap { position: relative; display: flex; flex-direction: row-reverse; align-items: stretch; width: calc(100% - 2rem); max-width: 1020px !important; margin: 5rem auto; padding: 0px; background: #f2f2f2; border-radius: 5px; border: 1px solid #999; } #okta-login-container { flex:1; margin: 0 !important; padding: 0; } .user-notice-wrap { flex:1; flex-grow:2; margin: 0 !important; padding: 76px 2rem 20px; border-left: 1px solid #ccc; } .separation { border-top: 1px solid rgba(0, 0, 0, 0.1); margin: 10px 0; } .user-notice-wrap h3 { font-size: 16px; font-family: Arial, "sans-serif"; color: #153A66; margin: 0 0 .5rem; text-transform: uppercase; } .user-notice-wrap p { font-size: 14px; font-family: Arial, "sans-serif"; color: #153A66; line-height: 1.5; font-weight: regular; margin-top: 0; } /* Okta Login Container */ .tb--background { background-color: #fff !important; } #okta-sign-in { margin: auto; } #okta-sign-in.auth-container.main-container { background-color: #f2f2f2; border: none; box-shadow: none; } #okta-sign-in .auth-content { padding: 0px 32px 20px; } #okta-sign-in.no-beacon .auth-header { padding-bottom: 20px; margin-bottom: 0px; } #okta-sign-in .auth-header { padding: 20px 90px 75px; } #okta-sign-in .auth-org-logo { max-height: 80px; max-width: 200px; } #okta-sign-in.no-beacon .auth-content { padding-top: 0px; } #okta-sign-in .piv-button.link-button:last-of-type { margin-bottom: -8px; } #okta-sign-in .sign-in-with-idp .separation-line span { background: #f2f2f2; color: #153A66; font-size: 14px; font-family: Arial; padding: 0 15px; } #okta-sign-in .o-form-head { margin: -12px -3px 15px; } #okta-sign-in.auth-container h2 { color: #153A66; font-weight: 600; font-size: 14px; font-family: Arial; } #okta-sign-in .o-form label { font-size: 14px; font-weight: 600; font-family: Arial; color: #153A66; } #okta-sign-in.auth-container .okta-form-input-field input { color: #153A66; font-family: Arial, sans-serif; font-size: 14px; } #okta-sign-in .o-form-fieldset { margin-bottom: 2px !important; } #okta-sign-in a, #okta-sign-in a:visited { color: #153A66; } #okta-sign-in.auth-container .link:link, #okta-sign-in.auth-container .link:visited { color: #153A66; } /* Buttons */ #okta-sign-in .piv-button.link-button, #okta-sign-in.auth-container .button-primary { background-color: #005ea2 !important; border: 1px solid transparent !important; color: #ffffff !important; font-size: 14px !important; font-weight: 600 !important; font-family: Arial !important; text-align: center !important; text-decoration: none !important; } #okta-sign-in .piv-button.link-button:active, #okta-sign-in .piv-button.link-button:focus, #okta-sign-in .piv-button.link-button:hover, #okta-sign-in.auth-container .button:active, #okta-sign-in.auth-container .button:focus, #okta-sign-in.auth-container .button:hover { background-color: #ffffff !important; border: 1px solid #153A66 !important; border-color: #153A66 !important; color: #153A66 !important; font-size: 14px !important; font-weight: 600 !important; font-family: Arial !important; } .button-primary:hover { background-image: none !important; } /* FORM FIELDS while hover and focus */ #okta-sign-in .focused-input, #okta-sign-in .link.help:focus, #okta-sign-in input[type=radio]:focus+label, #okta-sign-in input[type=text]:focus, #okta-sign-in.auth-container input[type=button]:focus, #okta-sign-in.auth-container input[type=submit]:focus, #okta-sign-in.auth-container .okta-form-input-field input[type=password]:focus, .chzn-container:focus-within { box-shadow: 0 0 8px #153A66; } /* Adjusting font-size, color and family */ #okta-sign-in.auth-container .link:link, #okta-sign-in.auth-container .link:visited, #okta-sign-in .siw-main-view .siw-main-body .identifier, #okta-sign-in .authenticator-row .authenticator-button .button, #okta-sign-in .o-form-saving .o-form-content *, #okta-sign-in.auth-container .okta-form-subtitle, #okta-sign-in h3, #okta-sign-in p, #okta-sign-in a, #okta-sign-in .o-form .custom-checkbox label, #okta-sign-in a:link { color: #153A66 !important; font-family: Arial !important; font-size: 14px !important; } /* Footer */ #okta-login-footer { background-color: #093657; height: 100px; //position: absolute; //bottom:0; width:100%; } #okta-sign-in .auth-header{ margin-bottom: 80px; } #okta-sign-in .auth-content .auth-content-inner .siw-main-view.identify-recovery.forgot-password { padding-top: 60px !important; } #okta-sign-in .auth-content .auth-content-inner .siw-main-view.select-authenticator-authenticate{ padding-top: 20px !important; } #okta-sign-in .auth-content .auth-content-inner .siw-main-view.select-authenticator-authenticate--okta_verify { padding-top: 20px !important; } #okta-sign-in .auth-content .auth-content-inner .siw-main-view.select-authenticator-authenticate--okta_email { padding-top: 20px !important; } #okta-sign-in .auth-content .auth-content-inner .siw-main-view.select-authenticator-authenticate--okta_password.forgot-password { padding-top: 20px !important; } #okta-sign-in .auth-content .auth-content-inner .siw-main-view.select-authenticator-enroll.enroll-choices { padding-top: 20px !important; } #okta-sign-in .auth-content .auth-content-inner .siw-main-view.select-authenticator-enroll--okta_verify { padding-top: 20px !important; } #okta-sign-in .auth-content .auth-content-inner .siw-main-view.select-authenticator-authenticate--smart_card_idp { padding-top: 20px !important; } #okta-sign-in .auth-content .auth-content-inner .siw-main-view.select-authenticator-unlock-account { padding-top: 20px !important; } #okta-sign-in .auth-content .auth-content-inner .siw-main-view.success-redirect { padding-top: 20px !important; } #okta-sign-in .auth-content .auth-content-inner .siw-main-view.enroll-profile.registration { padding-top: 20px !important; } /* RESPONSIVE */ @media only screen and (max-width: 1470px) { #header { height:70px; } #header img{ height:60px; } #okta-login-header { height:70px; } #okta-login-header::after{ height:7px; } #okta-login-footer{ position:relative; height: 70px; } .login-wrap { margin: 2rem auto; } } @media only screen and (max-width: 900px) { #header { height: 60px; padding-top: 4px !important; padding-bottom: 4px !important; } #header img { width: 50px; height: 50px; } #header .text{ font-size: 16px; margin-left: 5px; margin-top:auto; margin-bottom:16px; } #okta-login-header{ padding:5px !important; height: 60px; dispaly: block; } #okta-login-header::after{ height: 6px; z-index: 1; } .login-wrap { display: block; border: none; margin: 0 auto; border-radius: 0; width: 100%; } .user-notice-wrap { margin: 0 auto; padding: 20px 28px 1px; border-bottom: 1px solid #ccc; } #okta-login-container { margin: 0 auto !important; padding: 0; border-right: none; } .user-notice-wrap p, .user-notice-wrap ul { font-size: 12px; line-height: 1.1; } #okta-login-footer{ position:relative; height: 66px; } } @media only screen and (max-width: 600px) { #header { height: 50px; padding-top: 2px !important; padding-bottom: 0px !important; } #header img { width: 40px; height: 40px; } #header .text{ font-size: 14px; margin-left: 5px; margin-top:auto; margin-bottom:14px; } #okta-login-header{ padding:5px !important; height: 50px; dispaly: block; } #okta-login-header::after{ height: 5px; z-index: 1; } .user-notice-wrap { margin: 0 auto; padding: 20px 24px 1px; border-bottom: 1px solid #ccc; } .user-notice-wrap h3 { font-size: 16px; } #okta-login-container { padding: 0 0 1rem; background: #f2f2f2; padding-top: 1px; } #okta-sign-in.auth-container .auth-content { padding-left: 20px; padding-right: 20px; } #okta-sign-in .auth-content .auth-content-inner > div { min-width: 0; } #okta-sign-in .siw-main-footer .footer-info { border-top: 1px solid #ddd; margin-top: 1rem; padding-top: 1rem; } #okta-login-footer { height:55px; //padding: 5px !important; position: relative; } } /* This is to hide the consent radio button when displayed */ .custom-radio { display: none; } /* Hide keep me signed in checkbox */ .custom-checkbox { display: none; } </style> </head> <body> <div id="header"> <div class="header-img"> <img src="https://www.gsa.gov/sites/gsa.gov/themes/custom/gsa/logo.png" alt="GSA Logo"> </div> <span class="text">U.S. General Services Administration</span> </div> <div id="okta-login-header"></div> <div class="login-wrap"> <div class="user-notice-wrap"> <h3>NOTICE TO USER:</h3> <p>This is a U.S. General Services Administration Federal Government computer system that is "FOR OFFICIAL USE ONLY." This system is subject to monitoring. Therefore, no expectation of privacy is to be assumed. Individuals found performing unauthorized activities may be subject to disciplinary action including criminal prosecution.</p> <p>This system contains Controlled Unclassified Information (CUI). All individuals viewing, reproducing or disposing of this information are required to protect it in accordance with 32 CFR Part 2002 and GSA Order CIO 2103.2 CUI Policy.</p> <p>By logging in to this system, you are acknowledging and agreeing to the system use warning above.</p> <div class="separation"></div> <p>For additional information contact the GSA IT Helpdesk: <a href="mailto:itservicedesk@gsa.gov" style="color: #153A66;">itservicedesk@gsa.gov</a> / 866.450.5250</p> </div> <div id="okta-login-container" style="margin-right:auto; margin-left:auto"> </div> </div> <div id="login-bg-image-id" class="login-bg-image tb--background"></div> <div id="okta-login-footer"></div> <!-- "OktaUtil" defines a global OktaUtil object that contains methods used to complete the Okta login flow. --> <div id="okta-sign-in" class="auth-container main-container unsupported-message-container" style="display:none"> <div id="unsupported-cookie" class="unsupported-message" style="display:none"> <h2 class="o-form-head">Cookies are required</h2> <p>Cookies are disabled on your browser. Please enable Cookies and refresh this page.</p> <a class="button button-primary" target="_blank" href="."> Refresh </a> </div> </div> <div id="inactive-tab-main-div" style="display:none;"> <div class="inactive-tab-container"> <div class="inactive-tab-header"> <img src="https://ok10static.oktacdn.com/fs/bco/1/fs09e4v8t1CBKhemZ4h7" alt="GSA Auth" class="report-org-logo"> <div class="divider"></div> </div> <div class="inactive-tab-content"> <h2 class="inactive-tab-content-title">The page has timed out</h2> <p class="inactive-tab-details">If this page does not reload automatically, please refresh your browser.</p> </div> </div> </div> <script type="text/javascript" nonce=""> var signInSuccessCallBackFunction; var oktaData = {"redirectUri":"https\x3A\x2F\x2Fauth.gsa.gov\x2Foauth2\x2Fv1\x2Fauthorize\x3Fclient_id\x3D0oabren9fzQyIdP7A4h7\x26response_type\x3Dcode\x26scope\x3Dopenid\x2520email\x2520profile\x26redirect_uri\x3Dhttps\x253A\x2F\x2Finsite.gsa.gov\x2Fopenid\x2Dconnect\x2Fokta\x26state\x3Dh_tUO1LHlKJ\x2Dix40jSBQv7yki1IJmLmoOwPolQaPhcA\x26code_challenge_method\x3DS256\x26code_challenge\x3DMUVZxyMhEDvDv47AlZDm4HW598eL8RDjQYUDFSpCReQ","isMobileSso":false,"fromUri":"","isMobileClientLogin":false,"requestContext":{"app":{"type":"object","value":{"name":"oidc_client","logo":{"alt":"Logo\x20for\x20the\x20app","href":"https\x3A\x2F\x2Fok10static.oktacdn.com\x2Ffs\x2Fbcg\x2F4\x2Fgfsbres2m1P4QRbcU4h7","relations":["icon"]},"label":"Insite","id":"0oabren9fzQyIdP7A4h7"}},"authentication":{"request":{"max_age":-1,"scope":"openid\x20email\x20profile","display":"page","response_type":"code","redirect_uri":"https\x3A\x2F\x2Finsite.gsa.gov\x2Fopenid\x2Dconnect\x2Fokta","state":"h_tUO1LHlKJ\x2Dix40jSBQv7yki1IJmLmoOwPolQaPhcA","code_challenge_method":"S256","code_challenge":"MUVZxyMhEDvDv47AlZDm4HW598eL8RDjQYUDFSpCReQ","response_mode":"query"},"protocol":{},"client":{"name":"oidc_client","logo":{"alt":"Logo\x20for\x20the\x20app","href":"https\x3A\x2F\x2Fok10static.oktacdn.com\x2Ffs\x2Fbcg\x2F4\x2Fgfsbres2m1P4QRbcU4h7","relations":["icon"]},"label":"Insite","id":"0oabren9fzQyIdP7A4h7"},"type":"object","value":{"request":{"max_age":-1,"scope":"openid\x20email\x20profile","display":"page","response_type":"code","redirect_uri":"https\x3A\x2F\x2Finsite.gsa.gov\x2Fopenid\x2Dconnect\x2Fokta","state":"h_tUO1LHlKJ\x2Dix40jSBQv7yki1IJmLmoOwPolQaPhcA","code_challenge_method":"S256","code_challenge":"MUVZxyMhEDvDv47AlZDm4HW598eL8RDjQYUDFSpCReQ","response_mode":"query"},"protocol":{},"issuer":{"name":"GSA\x20Auth","uri":"https\x3A\x2F\x2Fauth.gsa.gov"}},"issuer":{"name":"GSA\x20Auth","uri":"https\x3A\x2F\x2Fauth.gsa.gov"}},"target":{"clientId":"0oabren9fzQyIdP7A4h7","name":"oidc_client","logo":{"alt":"Logo\x20for\x20the\x20app","href":"https\x3A\x2F\x2Fok10static.oktacdn.com\x2Ffs\x2Fbcg\x2F4\x2Fgfsbres2m1P4QRbcU4h7","relations":["icon"]},"label":"Insite"}},"countryIso":"SG","inactiveTab":{"elementId":"inactive\x2Dtab\x2Dmain\x2Ddiv","avoidPageRefresh":true,"enabled":true},"signIn":{"logoText":"auth.gsa.gov\x20logo","brandName":"auth.gsa.gov","language":"en","consent":{"cancel":function(){window.location.href='https\x3A\x2F\x2Fauth.gsa.gov\x2Flogin\x2Fstep\x2Dup\x2Fredirect\x3FstateToken\x3D02.id.0bcqafR1bkfQR3B9k\x2DkbyV6Vi9U8GEO\x2DSTTMnpL4';}},"i18n":{"en":{"mfa.challenge.password.placeholder":"Password","help":"Help","password.forgot.email.or.username.tooltip":"Email\x20or\x20Username","needhelp":"Need\x20help\x20signing\x20in\x3F","primaryauth.username.placeholder":"Email\x20address","password.forgot.email.or.username.placeholder":"Email\x20or\x20Username","account.unlock.email.or.username.tooltip":"Email\x20or\x20Username","unlockaccount":"Unlock\x20account\x3F","account.unlock.email.or.username.placeholder":"Email\x20or\x20Username","primaryauth.password.placeholder":"Password","primaryauth.title":"Sign\x20In","forgotpassword":"Forgot\x20password\x3F"}},"features":{"hideSignOutLinkInMFA":false,"emailRecovery":true,"deviceFingerprinting":true,"showIdentifier":true,"consent":true,"useDeviceFingerprintForSecurityImage":true,"customExpiredPassword":true,"router":true,"showPasswordToggleOnSignInPage":true,"securityImage":true,"autoPush":true,"smsRecovery":false,"idpDiscovery":false,"selfServiceUnlock":true,"webauthn":true,"passwordlessAuth":true,"showPasswordRequirementsAsHtmlList":true,"registration":false,"rememberMe":true,"callRecovery":false,"multiOptionalFactorEnroll":true},"baseUrl":"https\x3A\x2F\x2Fauth.gsa.gov","helpSupportNumber":"1\x2D866\x2D450\x2D5250","assets":{"baseUrl":"https\x3A\x2F\x2Fok10static.oktacdn.com\x2Fassets\x2Fjs\x2Fsdk\x2Fokta\x2Dsignin\x2Dwidget\x2F7.25.0"},"customButtons":[],"idpDiscovery":{"requestContext":""},"logo":"https\x3A\x2F\x2Fok10static.oktacdn.com\x2Ffs\x2Fbco\x2F1\x2Ffs09e4v8t1CBKhemZ4h7","stateToken":"02.id.0bcqafR1bkfQR3B9k\x2DkbyV6Vi9U8GEO\x2DSTTMnpL4","helpLinks":{"help":"","forgotPassword":"","unlock":"","custom":[]},"piv":{}},"accountChooserDiscoveryUrl":"https\x3A\x2F\x2Flogin.okta.com\x2Fdiscovery\x2Fiframe.html"}; var runLoginPage = function(fn) { var mainScript = document.createElement('script'); mainScript.src = "https://ok10static.oktacdn.com/assets/js/mvc/loginpage/initLoginPage.pack.58de3be0c9b511a0fdfd7ea4f69b56fc.js"; mainScript.integrity = "sha384-cJ4LGViZBmIttMPH+ao2RyPuN5BztKWYWIa4smbm56r1cUhkU/Dr6vTS3UoPbKTI"; mainScript.crossOrigin = "anonymous"; document.getElementsByTagName('head')[0].appendChild(mainScript); fn && mainScript.addEventListener('load', function () { setTimeout(fn, 1) }); }; var OktaUtil = { _addClass: function(el, className) { if(el) { var elementClasses = el.className.split(" "); if (elementClasses.indexOf(className) == -1) { el.className += " " + className; } } }, _removeElement: function(el) { if(el) { el.parentNode.removeChild(el); } }, _hideElement: function(el) { if(el) { el.style.display = 'none'; } }, _isDocumentVisible: function() { return document.visibilityState === 'visible'; }, addLoginContainerClass: function () { this._addClass(document.getElementById('okta-login-container'), 'login-container'); }, showUnsupportedCookieWarning: function () { document.getElementById('okta-sign-in').removeAttribute('style'); document.getElementById('unsupported-cookie').removeAttribute('style'); }, removeUnsupportedCookieWarning: function () { this._removeElement(document.getElementById('okta-sign-in')); }, hideOktaLoginContainer: function () { this._hideElement(document.getElementById('okta-login-container')); }, isChromeOs: function () { return /\bCrOS\b/.test(navigator.userAgent); }, addChromeOSScript: function() { var chromeOSScript = document.createElement('script'); chromeOSScript.src = "/js/google/users-1.0.js"; document.getElementsByTagName('head')[0].appendChild(chromeOSScript); }, getSignInWidgetConfig: function () { if (oktaData.inactiveTab && oktaData.inactiveTab.enabled && !this._isDocumentVisible() && !oktaData.inactiveTab.avoidPageRefresh) { // Show a loading state and wait for the visibility event this.hideOktaLoginContainer(); // remove stateToken so SIW does not attempt a login flow oktaData.signIn.stateToken = undefined; } return oktaData.signIn; }, completeLogin: function (res) { signInSuccessCallBackFunction(res); }, getRequestContext: function () { return oktaData.requestContext; }, setRedirectUri: function (uri) { oktaData.redirectUri = uri; }, init: function () { if (!navigator.cookieEnabled) { this.showUnsupportedCookieWarning(); this.hideOktaLoginContainer(); } else { this.removeUnsupportedCookieWarning(); if (oktaData.inactiveTab && oktaData.inactiveTab.enabled && !this._isDocumentVisible()) { try { oktaData.inactiveTab.renderFnBackup = OktaSignIn.prototype.renderEl; } catch (err) { // no op - graceful handling OktaSignIn undefined case } // pause render sign-in widget when browser tab is inactive if (!oktaData.inactiveTab.renderFnBackup) { // for older SIW, renderFnBackup is undefined, fallback to full page reload oktaData.inactiveTab.fallbackFullPageReload = true; // Show a loading state and wait for the visibility event this.hideOktaLoginContainer(); // remove stateToken so SIW does not attempt a login flow oktaData.signIn.stateToken = undefined; } else { // for newer SIW, override renderEl function so SIW does not attempt a login flow OktaSignIn.prototype.renderEl = function () { oktaData.inactiveTab.renderArgsBackup = arguments; oktaData.inactiveTab.signInInstance = this; try { return new Promise(function (resolve, reject) { oktaData.inactiveTab.renderResolve = resolve; oktaData.inactiveTab.renderReject = reject; }); } catch (err) { // return nothing if promise is not supported, since promise chaining won't work anyway } } } // event handler to resume render sign-in widget document.addEventListener('visibilitychange', function checkVisibilityAndCallSuccess() { if (document.visibilityState === 'visible') { try { document.removeEventListener('visibilitychange', checkVisibilityAndCallSuccess); const inactiveTabDiv = document.getElementById(oktaData.inactiveTab.elementId); inactiveTabDiv.style.display = 'none'; // resume render sign-in widget if (oktaData.inactiveTab.renderFnBackup && oktaData.inactiveTab.renderArgsBackup) { OktaSignIn.prototype.renderEl = oktaData.inactiveTab.renderFnBackup; var result = oktaData.inactiveTab.signInInstance.renderEl.apply(oktaData.inactiveTab.signInInstance, oktaData.inactiveTab.renderArgsBackup); if (result && result.then) { result.then(oktaData.inactiveTab.renderResolve, oktaData.inactiveTab.renderReject); } } } catch (err) { oktaData.inactiveTab.fallbackFullPageReload = true; } if (oktaData.inactiveTab.fallbackFullPageReload) { location.reload(); } } }); } // add class if app login banner is present if (oktaData.isAppBannerVisible) { this.addLoginContainerClass(); } oktaData.isCustomSignIn = true; oktaData.hasChromeOSFeature = this.isChromeOs(); if (oktaData.hasChromeOSFeature) { this.addChromeOSScript(); } runLoginPage(function () { var res = OktaLogin.initLoginPage(oktaData); oktaData.signIn = res.signIn; signInSuccessCallBackFunction = res.signInSuccessCallbackFn; }); } } }; OktaUtil.init(); //# sourceURL=OktaUtil.js </script> <script type="text/javascript" nonce=""> // "config" object contains default widget configuration // with any custom overrides defined in your admin settings. var config = OktaUtil.getSignInWidgetConfig(); if (config.i18n.en){ config.i18n.en['piv.cac.card'] = 'Sign in using your PIV card', config.i18n.en['piv.cac.title'] = 'PIV Card', config.i18n.en['piv.cac.card.insert'] = 'Please insert your PIV card and select the user certificate.', config.i18n.en['errors.E0000004'] = 'The email or password you have entered is wrong. Try resetting your password using the forgot password link below.', config.i18n.en['primaryauth.title']='If you do not have a PIV card, please enter your email address below to sign in.' } // Render the Okta Sign-In Widget var oktaSignIn = new OktaSignIn(config); oktaSignIn.renderEl({ el: '#okta-login-container' }, OktaUtil.completeLogin, function(error) { // Logs errors that occur when configuring the widget. // Remove or replace this with your own custom error handler. console.log(error.message, error); } ); /***** Custom Branding Code *****/ const isElementLoaded = async selector => { while ( document.querySelector(selector) === null) { await new Promise( resolve => requestAnimationFrame(resolve) ) } return document.querySelector(selector); }; // I'm checking for a specific class .custom-radio and then running code. You can also check for an id or an element. isElementLoaded('.custom-radio input[type="radio"]').then((selector) => { // Run code here. let consentButton = document.querySelector('.custom-radio input[type="radio"]'); console.log("below should be the consent button object"); console.log(consentButton); if (!consentButton.checked) { //consentButton.checked = true; consentButton.click(); } else { console.log('Consent button already true and clicked'); } }); //Auto-check keep me signed in isElementLoaded('.custom-checkbox input[type="checkbox"]').then((selector) => { let keepMeSignedInButton = document.querySelector('.custom-checkbox input[type="checkbox"]'); if (!keepMeSignedInButton.checked){ keepMeSignedInButton.click(); } }); oktaSignIn.on('afterRender', function (context) { if(context.controller==="primary-auth" || context.controller==="idp-discovery") { //Find Main Form var container = document.querySelectorAll('[data-se="o-form"]')[0]; //Find PIV Section var pivsection = document.getElementsByClassName('sign-in-with-idp')[0]; //Move Divider UP container.insertBefore(pivsection, container.firstChild); //Find PIV Form var pauthcontainer = document.getElementsByClassName('okta-idps-container')[0]; var pivbutton = document.querySelectorAll('[data-se="piv-card-button"]')[0]; //Move PIV Button Up container.insertBefore(pauthcontainer, container.firstChild); var unlockLink = document.querySelectorAll('[data-se="unlock"]')[0]; //Creating forgot password link /* var forgotPasswordLink=document.createElement('a'); forgotPasswordLink.href="https://auth.gsa.gov/signin/forgot-password"; forgotPasswordLink.textContent="Forgot password?"; forgotPasswordLink.style.color="#153a66"; forgotPasswordLink.style.fontFamily="Arial"; forgotPasswordLink.style.fontSize="14px"; */ //Replacing unlock account link with forgot password link //unlockLink.replaceWith(forgotPasswordLink) //Removing Keep me signed in check box //var keepMeSignedInOption = document.querySelectorAll('[data-se="o-form-input-rememberMe"]')[0]; //keepMeSignedInOption.remove() unlockLink.remove() //Removing Need help signing in link var help= document.querySelectorAll('[data-se="help"]')[0]; help.remove() } //Modying link of forgot password on verify with your password page /* var forgotPass= document.getElementsByClassName('link js-forgot-password')[0]; if(forgotPass){ var newforgotPasswordLink=document.createElement('a'); newforgotPasswordLink.href = "https://auth.gsa.gov/signin/forgot-password"; newforgotPasswordLink.textContent="Forgot password?"; newforgotPasswordLink.style.color="#153a66"; newforgotPasswordLink.style.fontFamily="Arial"; newforgotPasswordLink.style.fontSize="14px"; forgotPass.replaceWith(newforgotPasswordLink) } */ //Add text below PIV script var pivScript= document.querySelector('[data-se="o-form-head"]'); if(pivScript.textContent.trim()==="If you do not have a PIV card, please enter your email address below to sign in."){ pivScript.style.fontWeight='normal'; var p= document.createElement('p'); p.textContent= 'If you have not yet enrolled in GSA Auth, you must go to auth.gsa.gov to activate your account prior to attempting to access your application.'; p.style.textAlign='center'; p.style.fontWeight='bold'; pivScript.parentNode.insertBefore(p,pivScript.nextSibling); } //Add text below verify with your password var targetInfo = document.querySelector('[data-se="o-form-head"]'); if(targetInfo.textContent.trim()==="Verify with your password"){ targetInfo.insertAdjacentHTML('afterEnd', '<p style="margin-bottom: 15px; text-align: center;">GSA users please use your ENT password</p>'); } //Aligning the header image with login wrap var loginwrap=document.querySelector('.login-wrap'); var headerimg=document.querySelector('#header img'); function updateHeaderImgMargin(){ var loginwrapstyle=window.getComputedStyle(loginwrap); var loginwrapmarginleft=loginwrapstyle.getPropertyValue('margin-left'); headerimg.style.marginLeft=loginwrapmarginleft; } updateHeaderImgMargin(); window.addEventListener('resize',updateHeaderImgMargin); }); </script> </body> </html>