ADFS: Add Custom Content with Custom URI

Follow

SecureAuth IdP Version affected: n/a

Description: Customers who use the SecureAuth ADFS VAM with ADFS 3.0 and ADFS 2016 might want to host custom content such as images, javascript, and css. 

ADFS 3 and ADFS 2016 are no longer hosted on IIS. They are now hosted directly using the Http.sys API. 

Resolution: (The following steps require Powershell on the ADFS server)

1. Create a new ADFS Theme

New-AdfsWebTheme –Name custom –SourceName default

2. Add custom content to the new theme. You can change the data below to your custom files and paths.

Set-AdfsWebTheme -TargetName custom -AdditionalFileResource @{Uri=’ /adfs/portal/mytheme/myphoto.jpeg’;path="D:\inetpub\adfsassets\photos\myphoto.jpeg"}

3. Set the ADFS theme as the default. Warning. Do not try this in production until you have tested in a pre-production environment. This will potentially change ADFS UI.

Set-AdfsWebConfig -ActiveThemeName custom

0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.