Customizing the ADFS sign in page with the new sign in experience

This is how you can update or customise ADFS theme to match the new Azure AD Signin Experience, as per this Microsoft article. Even with ADFS 4.0 on Windows Server 2016, the ADFS sign in page is still the old style. But, using the files found here https://github.com/Microsoft/adfsWebCustomization you can modify your ADFS theme to match the layout of the new Azure sign in screen, as well as adding your custom branding.

The files and high-level instructions are here: https://github.com/Microsoft/adfsWebCustomization/tree/master/centeredUi

Customization instructions

      1. Download the ThemeCenterBrand.css file to your AD FS server, e.g. C:\temp\.
        Note: It is recommended that you minify your CSS for a production environment.
      2. Create a custom web theme using the following command in PowerShell:
        New-AdfsWebTheme –Name custom -SourceName default –StyleSheet @{path=”c:\temp\ThemeCenterBrand.css”}
      3. Apply the new custom web theme using the following command in PowerShell:
        Set-AdfsWebConfig -ActiveThemeName custom
      4. Update the logo and background image. You can grab the default Microsoft background from here as a test: https://secure.aadcdn.microsoftonline-p.com/ests/2.1.8148.16/content/images/backgrounds/0.jpg. Note that the recommended size for the background is 200kb.

Change the logo

Set-AdfsWebTheme -TargetName custom -Logo @{path=”c:\temp\logo.png”}

Change the background:

Set-AdfsWebTheme -TargetName custom -Illustration @{path=”c:\temp\mountains.jpg”}

And that’s it! Here you can see the difference. Note that once you have imported the files, you can remove them from the temp folder.

Default:

clip_image001

Custom:

clip_image002

This also shows in Office or other applications (when SSO is not able to automatically sign you in).

clip_image003

Posted in ADFS, Office 365

Related Posts

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: