ADFS New sign-in experience added


Update:
Paginated UI as we know it from the Center Branded UX was added. Added screenshots.

Also known as “Centered UI”, or “Center Branded”, or “Azure AD UX”. I like to call it “Center Branded UX”.

You might have noticed that Microsoft’s online services have started offering the sign-in pages with a new UI, even when you still see the “old” ui:
cui_01
If you click “Try it now”, or have before, the sign-on page will look like this:
cui_02
And this is what’s called the new sign-in experience. Notice how the login UI shows a box for your user ID and a Next button. This is called Login Pagination.

I’ve been toying with the idea to create this as an ADFS WebTheme for a while now, and then I noticed a tweet by MrADFS:
cui_03
Thank you Samuel Devasahayam @MrADFS!

Head on over to https://docs.microsoft.com/en-us/windows-server/identity/ad-fs/operations/azure-ux-web-theme-in-ad-fs and follow the easy instructions to set it up.

If you already have a customized ADFS WebTheme to which you want to apply the CenterBrand look, follow these steps.

Remember to make sure you have a backup of your current theme before proceding.

Download the css from https://raw.githubusercontent.com/Microsoft/adfsWebCustomization/master/centeredUi/ThemeCenterBrand.css and save it to your ADFS server as ThemeCenterBrand.css.

Keep in mind that the new css requires a differently sized logo and, preferably, a differently sized background. I say preferably because it will look good anyway using the CenterBrand look.
For the default WebThemes in ADFS the logo and background requirements can be found on https://docs.microsoft.com/en-us/windows-server/identity/ad-fs/operations/change-the-company-logo-on-the-ad-fs-sign-in-page for the logo, and on https://docs.microsoft.com/en-us/windows-server/identity/ad-fs/operations/change-the-illustration-on-the-ad-fs-sign-in-page for the background illustration. It says there that the logo should be 260 width and 35 height and the background should be 1420 width x 1080 height.
The image requirements for the CenterBrand UI can be found on https://docs.microsoft.com/en-us/windows-server/identity/ad-fs/operations/azure-ux-web-theme-in-ad-fs. It says there the logo should be 256 width x 24 height and the background should be 1080 width x 1024 height.
Resize your logo and background illustration if needed and save them to the location where you saved the css file. I do advise to resize the logo image.

Download the javascript that contains the logic for Login Pagination from https://github.com/Microsoft/adfsWebCustomization/blob/master/centeredUi/paginatedOnload.js and save it to your ADFS server as paginatedOnload.js.

Open an administrative powershell prompt and type the following command:

Set-AdfsWebTheme -TargetWebTheme (Get-AdfsWebTheme -Name (Get-AdfsWebConfig).ActiveThemeName) -StyleSheet @{path="<path to ThemeCenterBrand.css>"} -Logo @{path="<path to logo file>"} -AdditionalFileResource @{Uri="/adfs/portal/script/onload.js"; path="<path to paginatedOnload.js>"}

Add

-Illustration @{path="<path to background image>"}

if you need to upload a resized background illustration.
So if you need the new css, a new logo and a new background:

Set-AdfsWebTheme -TargetWebTheme (Get-AdfsWebTheme -Name (Get-AdfsWebConfig).ActiveThemeName) -StyleSheet @{path="<path to ThemeCenterBrand.css>"} -Logo @{path="<path to logo file>"} -AdditionalFileResource @{Uri="/adfs/portal/script/onload.js"; path="<path to paginatedOnload.js>"} -Illustration @{path="<path to background image>"}

And that’s it.

Before (Bing image November 18th):
cui_04

After (also Bing image November 18th):
cui_05

I’ve tested this on both ADFS 3.0 and ADFS 2016 and it works great on both!

Added Bonus (Bing image November 19th):
cui_06

Login UI (Bing image November 19th):cui_07
cui_07a

Update Password UI (Bing image November 19th):cui_08

My ADFS Automated Bing Wallpaper script also works on ADFS 2016 with Center Branded UX as well.
If you want to know more about the ADFS Automated Bing Wallpaper script, or for download instructions; see this post.

Until next time,

Arjan Mensch

PS:
Post-post tip :)

If you want to use the picture that the Azure AD UX uses:cui_02
You can find it here. Not sure if you’re legally allowed to use it though..

Advertisements

20+ years experience in Microsoft powered environments. Enjoy automating stuff using scripts, powershell, and even batch files. In my free time (hah! as if there is any) I hunt achievements and gamerscore on anything Xbox Live enabled (Windows Mobile, Windows 8, Windows 10, Xbox 360 and Xbox One). When I'm not doing that I enjoy traveling or riding my Yamaha R1 on the edge ;)

Tagged with: , , , , , ,
Posted in ADFS 2016, ADFS 3.0, Customize, Federation, Step-by-Step guide, Windows 2012 R2, Windows 2016
10 comments on “ADFS New sign-in experience added
  1. James says:

    Is it possible to see some more snaps of other pages with this CSS in place, such as the main login pages?

  2. James says:

    Arjan, are you able to assist me in diagnosing my issue?

    I have downloaded the CSS from the link provided on the Microsoft doc, then created a new web theme using that CSS.

    When I set the active theme to the new theme and refresh my ADFS page, it is basically just white with a small gray sign in/out box in the top left corner with a bit of text.

    Thanks
    James

    • James says:

      God I’m useless!

      I somehow managed to download the page the CSS was on, not the CSS itself!

      Copied and pasted the CSS from the GitHub page into a file, saved as CSS, recreated the web theme and it’s working :D

  3. James says:

    Arjan, me again haha.

    How do you go about setting the illustration image after you create a new web theme using the centerbrand css?

    I created a new theme as per the documentation using the CSS, and then ran this:
    Set-AdfsWebTheme -TargetName AzureUX -Illustration @{path=”C:\ADFS Themes\Azure UX\Illustration.png”}

    I refresh the page, and the background remains as just the default blue colour.

    I don’t think it is the image at fault, as have tried as PNG and JPG, and have also tried the illustration image from the ADFS 3.0 default theme still with no luck.

    • Arjan Mensch says:

      Hi James,
      The syntax for your powershell command looks correct. Is your ADFS server part of a farm based on WID (Windows Internal Database)? If so, you need to run the command on all farm members..

      • James says:

        Hi Arjan,

        I am running on the primary server in a farm running on WID.
        If I run any commands on the secondary server however, I just get:

        This cmdlet cannot be executed from a secondary server in a local database farm. The primary server is presently XXX/ To execute the management cmdlets, either log onto the primary server or connect using powershell remoting.

        Not sure if it is an issue with the CSS?
        Someone replied to my comment on the MS page with the same problem:
        https://docs.microsoft.com/en-us/windows-server/identity/ad-fs/operations/azure-ux-web-theme-in-ad-fs

        Many thanks
        James

      • James says:

        Answer was, when creating the new theme, you also need to specify “-SourceName default”, or load the onload.js manually.
        Once I deleted and recreated using the default theme as the source, it works perfectly!

      • Arjan Mensch says:

        Hi James,
        Glad to see you fixed it. May even help other visitors.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s

Blog Authors
https://paypal.me/ArjanMensch
BTC:1AiAL6QDbfNPiduYYEoy3iNS2m6UKJW2He
LTC:Lf52uAJiCRQtiegJyKqVvoh4FuvwMkHPae
ETH:0x096a12424e991696ad21cfc0e0f3749ab4f8ce1b
DSH:XnRGpf2v36F5iDT5uFaq7DsHPFF435EPmT
XMR:49UCmvAYNxB3voEVbfL8KDENwcg9SE9PeY5jU8YCaHMuLXHapRmfhgHWbwaVe4vUMveKAzAiA4j8xgUi29TpKXpm3xumqCq

Enter your email address to follow this blog and receive notifications of new posts by email.

Join 390 other followers

Blog Stats
  • 2,626,350 hits
%d bloggers like this: