最近在做identityServer3+ADFS 实现域账号第三方授权验证,发现一个问题,在我们网站跳转到域账户登录页面,这个页面有点不美观,那么我们改如何自定义这个登录界面呢?
ADFS安装配置这里不做提示,百度大把资料,identityServer3+ADFS全网没有资料,整理出来还需要点时间,敬请期待
原始页面:
自定义开始
自定义ADFS登录页面,不要妄想使用审查元素,然后去计算机搜索图片文件或资源文件来查找ADFS登录页面的源代码,本人亲测,无效,只能通过命令来完成,如下:
更改登录框上面的名称
Set-AdfsGlobalWebContent –CompanyName “Contoso Corp”
自定义主题
New-AdfsWebTheme –Name custom -SourceName default –StyleSheet @{path =”C:\adfsWebCustomization-master\centeredUi\ThemeCenterBrand.css”}
Set-AdfsWebConfig -ActiveThemeName custom
设置logo
Set-AdfsWebTheme -TargetName custom -Logo @{path =”C:\adfsWebCustomization-master\centeredUi\acra_logo.png”}
设置背景图片
Set-AdfsWebTheme -TargetName custom -Illustration @{path =”C:\adfsWebCustomization-master\centeredUi\adbg.jpg”}
官方文档地址: