Responsive (Mobile Friendly) Authentication Forms for Microsoft Forefront TMG
#Purpose
This project contains a set of templates for Microsoft Forefront Threat Management Gateway to make logging into published websites easier on mobile devices.
The form also scales nicely for tablets and normal desktops / large screens.
#Installation
-
For Outlook Web Access, copy the existing Exchange Templates folder at:
C:\Program Files\Microsoft Forefront Threat Management Gateway\Templates\CookieAuthTemplates\Exchange
For all other sites, copy the existing ISA Templates folder at:
C:\Program Files\Microsoft Forefront Threat Management Gateway\Templates\CookieAuthTemplates\ISA
-
Call the duplicated folder 'Custom' (or whatever takes your fancy). You should now have a folder here:
C:\Program Files\Microsoft Forefront Threat Management Gateway\Templates\CookieAuthTemplates\Custom
-
Copy the
usr_pwd.htm
,styles_responsive.css
, andLogo.png
files from either the ISA or Exchange folders in this project into the Custom Folder (replace the existing files). Use the Exchange versions for OWA, and the ISA versions for everything else. Feel free to replace Logo.png with your own custom logo. -
In your TMG Management console, edit your desired Web Publishing rule and go to the Listener page. Click Properties.
-
On the Authentication page, ensure HTML Forms Authentication is selected.
-
On the Forms Tab enter 'Custom' (you don't need to enter the entire path, just the word 'Custom' without the quotes)
-
Apply the changes.
-
Restart the TMG Firewall Service (yeah, I know... Unfortunately TMG Caches these pages and restarting the service is the only way to clear it as far as I know).
Browse to the site and Forefront TMG will present the new authentication page. Try it on a smart phone or tablet and marvel at its beauty.
#Issues
For now, only the usr_pwd.htm file has been customized. This file is served only when using Windows (Active Directory) authentication (set on the Authentication page in step 5 above). I intend to customize the other forms (Radius and SecureID) soon. Feel free to contribute!
#Credits
- Responsive goodness is provided mainly by the scaffolding and forms components in bootstrap
- The inspiration for this project came from a web development request from Etienne Liebetrau of Fix My IT System