Answered by:
Use Set-ADFSWebTheme -AdditionalFileResource to upload HTML pages?

Question
-
It seems you upload a regular HTML web page into your Theme but you cannot access it.
Set-AdfsWebTheme -TargetName MyTheme -AdditionalFileResource @{Uri=’/adfs/portal/termsofuse.htm’;path="c:\termsofuse.htm"}
I'd like to be able to upload a HTML page containing a Terms of Use for our ADFS and then create a link to it using:
Set-AdfsGlobalWebContent -SignInPageDescriptionText "<p>By signing in you agree to the <A href='/adfs/portal/termsofuse.htm' target='_blank'>Terms of Use</A></p>" -locale en
Creating the link works but the page cannot be accessed (ADFS shows an error).
If this would be possible I wouldn't have to setup an entire web server to hold a few Terms of Use pages.
WORK
Monday, December 7, 2015 12:28 PM
Answers
-
Here is an example of OnLoad.js modification:
function showhideLala() { var obj = document.getElementById("divlala") ; if ( obj.style.display == "none" ){ obj.style.display = "" ; } else { obj.style.display = "none" ; } } var divintroduction = document.getElementById("introduction") ; if ( divintroduction ) { var langage = (navigator.language || navigator.browserLanguage).split('-')[0] ; switch( langage ) { case "fr": var lala = "LalaFr" ; var lalaDesc = "Conditions pour..." ; break ; case "en": var lala = "LalaEn" ; var lalaDesc = "Conditions for..." ; break ; default: var lala = "LalaEn" ; var lalaDesc = "Conditions for..." ; } divintroduction.innerHTML = divintroduction.innerHTML + "<p><a href='#' onClick='showhideLala()'>" + lalaDesc + "</a></p><p><div id='divlala'>" + lala + "</div></p>" ; document.getElementById("divlala").style.display = 'none'; }
You can follow this guidance to modify the default JS: Customizing the AD FS sign-in experience by using onload.js https://technet.microsoft.com/en-us/library/dn636121.aspxNote: Posts are provided “AS IS” without warranty of any kind, either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.
- Marked as answer by MolokoVelocette Friday, December 18, 2015 6:52 PM
Wednesday, December 16, 2015 10:01 PM -
Works for you?
Note: Posts are provided “AS IS” without warranty of any kind, either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.
- Marked as answer by MolokoVelocette Friday, December 18, 2015 6:52 PM
Friday, December 18, 2015 2:03 PM
All replies
-
I dont think this is possible.
What you can do though is using the Onload.js javascript modification to add a section to the sign-in page with that info. And a script to hide the message by default with a link to display it. The div would be hidden by default and your link with change the display style of it.
Note: Posts are provided “AS IS” without warranty of any kind, either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.
Wednesday, December 9, 2015 5:26 PM -
Do you need assistance in writing this JavaScript? Let us know!
Note: Posts are provided “AS IS” without warranty of any kind, either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.
Friday, December 11, 2015 2:39 PM -
Yes PLEASE :-D
That would be great!
To complicate things a bit the Terms of Use page would need to be displayed in the language preferred by the browser.
WORK
Monday, December 14, 2015 11:04 AM -
Here is an example of OnLoad.js modification:
function showhideLala() { var obj = document.getElementById("divlala") ; if ( obj.style.display == "none" ){ obj.style.display = "" ; } else { obj.style.display = "none" ; } } var divintroduction = document.getElementById("introduction") ; if ( divintroduction ) { var langage = (navigator.language || navigator.browserLanguage).split('-')[0] ; switch( langage ) { case "fr": var lala = "LalaFr" ; var lalaDesc = "Conditions pour..." ; break ; case "en": var lala = "LalaEn" ; var lalaDesc = "Conditions for..." ; break ; default: var lala = "LalaEn" ; var lalaDesc = "Conditions for..." ; } divintroduction.innerHTML = divintroduction.innerHTML + "<p><a href='#' onClick='showhideLala()'>" + lalaDesc + "</a></p><p><div id='divlala'>" + lala + "</div></p>" ; document.getElementById("divlala").style.display = 'none'; }
You can follow this guidance to modify the default JS: Customizing the AD FS sign-in experience by using onload.js https://technet.microsoft.com/en-us/library/dn636121.aspxNote: Posts are provided “AS IS” without warranty of any kind, either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.
- Marked as answer by MolokoVelocette Friday, December 18, 2015 6:52 PM
Wednesday, December 16, 2015 10:01 PM -
Works for you?
Note: Posts are provided “AS IS” without warranty of any kind, either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.
- Marked as answer by MolokoVelocette Friday, December 18, 2015 6:52 PM
Friday, December 18, 2015 2:03 PM -
I'm going to give a shot :-)
Thank you very much !!!
WORK
Friday, December 18, 2015 6:52 PM