ADFS 2019 - Customization someone@example.com

Brad De Sousa 96 Reputation points
2021-02-24T15:03:16.957+00:00

We have ADFS setup in our environment with some advanced customization in the onload.js script. Users have noticed when attempting to login to Office or Minecraft, the login box for these tools is reverting the username/password boxes back to their defaults of someone@ssss .com and password(we have this set to something different when the page initially loads). Is there a way to ensure this page has the same experience across the board where the customization applies?

Active Directory Federation Services
Active Directory Federation Services
An Active Directory technology that provides single-sign-on functionality by securely sharing digital identity and entitlement rights across security and enterprise boundaries.
1,188 questions
{count} votes

Accepted answer
  1. Brad De Sousa 96 Reputation points
    2021-02-25T12:50:03.01+00:00

    For anyone that may be stuck, we resolved this by adding the following below to the onload.js and applying the customization.

    UpdatePlaceholders();

    function UpdatePlaceholders() {
    var attributesToUpdate = ["userNameInput", "passwordInput"];
    var placeholderText = ["username", "Your Network Password"];
    for (var i = 0; i < attributesToUpdate.length; i++) {
    var node = document.getElementById(attributesToUpdate[i]);
    if (node) {
    var ua = navigator.userAgent;
    if (ua != null &&
    (ua.match(/MSIE 9.0/) != null ||
    ua.match(/MSIE 8.0/) != null ||
    ua.match(/MSIE 7.0/) != null)) {
    var label = node.previousSibling;
    if (label != null) {
    label.value = placeholderText[i];
    }
    }
    else {
    node.placeholder = placeholderText[i];
    }
    }
    }
    }

    0 comments No comments

0 additional answers

Sort by: Most helpful