adfs 3.0 customization
logo = Set-AdfsWebTheme -TargetName custom -Logo @{path=”c:\theme\script\logo.png”}
illustration = Set-AdfsWebTheme -TargetName custom -Illustration @{path=”c:\theme\illustration\illustration.png”}
sign-in page description = Set-AdfsGlobalWebContent -SignInPageDescriptionText “HTML”
onload.js = Set-AdfsWebTheme -TargetName custom -AdditionalFileResource @{Uri=’/adfs/portal/script/onload.js’;path=”c:\theme\script\onload.js”}
auto-append @mydomain.com or prepend mydomain\:
i used the following code as a great starting point
https://social.msdn.microsoft.com/Forums/vstudio/en-US/bfde6a72-a522-4d12-907d-3f96577ab3a0/windows-server-2012-r2-adfs-proxy-error-enter-your-user-id-in-the-format-domainuser?forum=Geneva
and
i ended up altering this portion:
var lowerUserName = userName.value.toLowerCase();
//If underscore is not present then prepend mydomain\
if(userName.value.indexOf(‘_’) == -1)
{
userName.value = ‘mydomain\\’ + userName.value;
}
//If underscore is present and @mydomain.com is then append @mydomain.com
if(userName.value.indexOf(‘_’) != -1)
{
var li = lowerUserName.lastIndexOf(‘@mydomain.com’);
if (li == -1)
{
userName.value = userName.value + ‘@mydomain.com’;
}
}
return true;
}
also chrome’s built-in javascript console is very helpful for debugging
changing placeholder text:
https://jasonomar.wordpress.com/2014/05/16/customizing-the-placeholder-on-the-adfs-3-0-login-page/
https://social.msdn.microsoft.com/Forums/vstudio/en-US/2879e51a-5db2-4fad-a2b4-f9ce67f4c021/adfs-30-the-placeholder-text-change-seems-not-working-for-ie89?forum=Geneva