This project provides an Active Directory Federation Services (AD FS) style sheet to allow your AD FS login form to be consistent with the new Azure Active Directory centered sign-in experience.
Note that this customization comes in two parts. The first is a style sheet, which allows the look-and-feel of your AD FS to match the Azure AD centered UI experience. The second is a more advanced customization, using the AD FS JavaScript customization feature to create a front-end paginated sign-in experience.
If you use the paginated onload.js web customization to create a paginated experience on your AD FS server, please update to the latest version. If you deployed the onload.js on or before May 29, 2018, please update your deployment.
We will break the deployment of this feature into two parts. First, the style sheet to create a consistent look-and-feel. Second, the JavaScript to create a front-end paginated experience. You can choose if you wish to deploy one or both.
-
Download the
ThemeCenterBrand.css
file to your AD FS server, wherever you host your style sheets.Note: It is recommended that you minify your CSS for a production environment.
-
Create a custom web theme using the following command in PowerShell:
New-AdfsWebTheme –Name custom -SourceName default –StyleSheet @{path="c:\style\ThemeCenterBrand.css"}
-
Apply the new custom web theme using the following command in PowerShell:
Set-AdfsWebConfig -ActiveThemeName custom
-
Update the logo and background image. For details and image size recommendations, see this post.
-
Download the
paginatedOnload.js
file to your AD FS server, wherever you host your JavaScript.Note: It is highly recommended that you minify your
paginatedOnload.js
before including it in a production environment. There are many popular tools online for minifying JavaScript code. Two popular choices are minifier.org and JSCompress. -
Modify your existing custom web theme from the style sheet deployment to include the new JavaScript. In PowerShell:
Set-AdfsWebTheme –TargetName custom -AdditionalFileResource @{Uri="/adfs/portal/script/onload.js"; path="c:\paginatedOnload.js"}
-
Apply the modified custom web theme using the following command in PowerShell:
Set-AdfsWebConfig -ActiveThemeName custom
-
For more information on JavaScript customization, see Advanced AD FS Customization.
The JavaScript we provide out-of-the-box does not provide two key features you may want.
- The JavaScript works for deployments in most major languages. However, if you wish to have your pages work under other languages, you will need to follow the steps below in
Supporting Non-English Languages
.
In order to support non-English languages, you will need to add translated text for the new UI items that are created by the JavaScript.
In the code, you should locate the translation table in the function GetLocalizedStringForElement
. You should add translations for the text in the translation table.
Each translation should be mapped to the correct language code. For a reference on language codes, see the ISO 639-1 Code
column in the table at this resource.
If you find any problems with the CSS, JavaScript, or docs, please fork and send us your fix. If you don't have a fix, please open an issue, and describe what you are seeing (feel free to include screenshots).
For the full Contributing details, please see the root README.