最近在作identityServer3+ADFS 實現域帳號第三方受權驗證,發現一個問題,在咱們網站跳轉到域帳戶登陸頁面,這個頁面有點不美觀,那麼咱們改如何自定義這個登陸界面呢?css
ADFS安裝配置這裏不作提示,百度大把資料,identityServer3+ADFS全網沒有資料,整理出來還須要點時間,敬請期待windows
原始頁面:ide
自定義開始網站
自定義ADFS登陸頁面,不要妄想使用審查元素,而後去計算機搜索圖片文件或資源文件來查找ADFS登陸頁面的源代碼,本人親測,無效,只能經過命令來完成,以下:spa
更改登陸框上面的名稱server
Set-AdfsGlobalWebContent –CompanyName "Contoso Corp"blog
自定義主題圖片
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"}
官方文檔地址: