ADFS 3.0 - Correct version of Onload.js is not getting applied/exported

Sengupta, Amrita 26 Reputation points
2020-12-03T14:11:37.317+00:00

Hello,

I am trying to update the "expiredNotification" field on the "Update Password" page.
I have done it in our System and User testing environments, but in Production environment, it is not working.

Below are my observations -

  1. I apply the updated onload.js using the command - "Set-AdfsWebTheme -TargetName custom -AdditionalFileResource @{Uri='/adfs/portal/script/onload.js';path="c:\theme\script\onload.js"}"
  2. The command executes successfully.
  3. When I export the theme again, using the command - "Export-AdfsWebTheme –Name default –DirectoryPath c:\theme", I see my changes in the exported onload.js file.
  4. But on the Update Password page, my changes do not reflect.
  5. In IE debugger, I do not see the lines of code I had added.
  6. In IE debugger, I see that the version of onload.js is different from what gets exported, and few lines of code are different/commented.

Why are differences in Onload.js being observed? How can I get hold of the correct version of Onload.js and apply updates on the top of it?

Any help would be greatly appreciated, as I could not find any relevant discussions in the forums.

Thanks in advance!

Amrita

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,195 questions
0 comments No comments
{count} vote

2 answers

Sort by: Most helpful
  1. Pierre Audonnet - MSFT 10,166 Reputation points Microsoft Employee
    2020-12-04T00:29:44.03+00:00

    Did you make sure your custom theme was selected with:

    Set-AdfsWebConfig -ActiveThemeName "custom"
    

    Also, I assume this is a typo but your export (step 3) is for the default theme, not the custom.

    0 comments No comments

  2. Sengupta, Amrita 26 Reputation points
    2020-12-07T21:06:19.59+00:00

    Thanks Piaudonn,

    This indeed was not the active theme.
    You can ignore the typo in my description, I had just grabbed the commands from the documentation, to convey the issue.

    I am now updating the active theme, and will post again on how it goes..
    Thanks!

    0 comments No comments