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

https://social.msdn.microsoft.com/Forums/vstudio/en-US/d0b2089f-e4be-494c-b488-21493f62bc58/adfs-2012-r2-forms-authentication-default-login-domain?forum=Geneva

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

This entry was written by resinblade , posted on Wednesday April 22 2015at 05:04 pm , filed under IT . Bookmark the permalink . Post a comment below or leave a trackback: Trackback URL.

Comments are closed.