locked
AD FS user sign-OUT customization RRS feed

  • Question

  • Where / Is there a equivalent for this webpage https://docs.microsoft.com/en-us/windows-server/identity/ad-fs/operations/ad-fs-user-sign-in-customization for the signOUT user experience I can edit and set in my ADFS theme ?

    thanks

    Monday, August 14, 2017 8:56 PM

All replies

  • There's a number of tips and tricks for the onload.js at ADFS : Continuing the Login and Home Realm Discovery (HRD) and Change Password customisation adventure

    For the sign-out page, bring up the page, view the source and then look for a sign-out element and then alter as per the examples.

    That way you only alter the sign-out page and not the others since they all use the same onload.js.


    Tuesday, August 15, 2017 10:23 AM
  • In case others are looking for information on how to achieve this.  Works on ADFS 4.0 - Windows 2016 Server.  Add to the onboard.js file.

    // Code change the Sign out page
    var signoutArea = document.getElementById('signoutArea');
    
     if (signoutArea) {
          var logoutHeader = signoutArea.querySelector('#openingMessage');
          var logoutWarning = signoutArea.querySelector('#instruction');
          if (logoutHeader) {
              logoutHeader.innerHTML = '<h2 id="logout-header" style="font-size:24px;font-weight:bold;color:#000;">You have been logged out.</h2>';
          }
          if (logoutWarning) {
              logoutWarning.innerHTML = '<p id="logout-warning" style="margin-top:20px;font-size:16px;color:#000;">Please close your browser window.</p>';
          }
    
    	document.title = "Logged out";
    
      }



    Tuesday, February 4, 2020 10:06 PM