This topic has 7 replies, 4 voices, and was last updated 6 years, 1 month ago by QuantumBiker.

  • Author
    Posts
  • #3933
     Anonymous
    Inactive

    Hi,

    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.

    Regards,
    Aditya

    #3938
     Peter Major
    Moderator

    See the callback descriptor XMLs under /config/auth/default.

    #3939
     Scott Heger
    Participant

    Hi,

    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.

    Regards,
    Scott

    • This reply was modified 6 years, 5 months ago by Scott Heger.
    #3945
     Anonymous
    Inactive

    Thanks Scott and Peter , I will check this.

    Regards,
    Aditya

    #3950
     Anonymous
    Inactive

    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.

    Regards,
    Aditya

    #3969
     Peter Major
    Moderator

    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.

    #3971
     Anonymous
    Inactive

    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.

    #5078
     QuantumBiker
    Participant

    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

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.

©2021 ForgeRock - we provide an identity and access platform to secure every online relationship for the enterprise market, educational sector and even entire countries. Click to view our privacy policy and terms of use.

Log in with your credentials

Forgot your details?