April 20, 2015 at 12:58 am #3933AnonymousInactive
we are customizing the XUI login page. with the help of themeConfig.json and translation.json we are able to customise most of the things but we are unable to find the place where we can change the text “sign in to OpenAM” to something else and the label “user Name” and password. Let me know if its known to anyone.
AdityaApril 20, 2015 at 1:33 am #3938Peter MajorModerator
See the callback descriptor XMLs under /config/auth/default.April 20, 2015 at 1:37 am #3939Scott HegerParticipant
Those pieces are in the authentication module’s XML file. I’m assuming you are using the DataStore module, so look for a file called DataStore.xml and edit that. There will be multiple files with this name in different directories for support of multiple languages. Probably the one that you need will fall under:
path_to_web_container_deployment_dir/openam/config/auth/default/DataStore.xml or path_to_web_container_deployment_dir/openam/config/auth/default_en/DataStore.xml
Restart your web container after making modifications to the XML files for the changes to affect.
April 20, 2015 at 12:18 pm #3945AnonymousInactive
- This reply was modified 6 years, 5 months ago by Scott Heger.
Thanks Scott and Peter , I will check this.
AdityaApril 20, 2015 at 3:34 pm #3950AnonymousInactive
Thanks Scott and Peter, it works fine. so for different realms I have to create the different services/realms folders and place the datastore file there? I thought there’s a better way for XUI customisation.
AdityaApril 21, 2015 at 9:28 pm #3969Peter MajorModerator
Well, you only have to use the services/realms structure if you actually want to use different text for an authentication module per realm, otherwise you could just define it once, and put it under config/auth/default/ so that the ResourceLookup mechanism can fallback to those versions.April 21, 2015 at 9:45 pm #3971AnonymousInactive
hmm Thanks Peter that’s correct but the requirement is such , so I will create folder for some realms and some have will have default. Thanks for all your help.August 10, 2015 at 9:46 pm #5078QuantumBikerParticipant
Related – we were trying to customze HOTP – need different text for different realms. There was no HOTP template so we created one then we discovered that the only callback that is easily recognized is via the “isSubmit” boolean (handlebars). We ended up having to change the <div> to add an ID based on the callback (type) and then could create some div specific formatting, which was required.
In doing this, we discovered that you have to copy the templates from the default theme to any new theme or nothing works – both the css AND the templates are relative to the theme path.
We are having lots of problems getting this to work with realms and discovered that there is a fix in 12.0.1 that my help: https://bugster.forgerock.org/jira/browse/OPENAM-5508
You must be logged in to reply to this topic.