How to customize text messages in OpenAM 11

This topic has 11 replies, 4 voices, and was last updated 7 years, 8 months ago by Scott Heger.

  • Author
    Posts
  • #1211
     dima
    Participant

    Hi,

    I cannot find any relevant information how to customize text messages in OpenAM 11, messages like “Authentication failed”, “You are logged out”, “User has no profile” and others.
    In documentation http://openam.forgerock.org/openam-documentation/openam-doc-source/doc/install-guide/index/chap-custom-ui.html#lookup-for-ui-files there is explanation about pages customization only.
    Some people write about editing of some “.properties” files, but I did not manage to find in 11th version of OpenAM any file of that kind which contain text messages inside.

    Thanks in advance,

    Dima

    #1224
     Matt Miller
    Participant

    Check inside your openam/WEB-INF/lib/openam-core-*.jar

    #1250
     dima
    Participant

    Thank you for the tip Matt.
    Do you know where I can read any instructions how to repack the openam-core-*.jar?
    I have tried to import and export via eclipse, but after it openAM stops to work.

    #1255
     Matt Miller
    Participant

    I would just use the jar command to repackage it, nothing special.

    #1256
     dima
    Participant

    I will try.
    Thank you again.

    #1550
     Scott Heger
    Participant

    Another option is to take the specific properties file you want to edit and put it in WEB-INF/classes and not repackage it back into the jar file. Makes it easier to edit in the future.

    #1556
     dima
    Participant

    And openAM will not use the same .properties file from the jar?

    #1561
     Scott Heger
    Participant

    Correct. If it finds it under WEB-INF/classes it will use that one instead of what it finds in the jar. Just make sure you restart your OpenAM container after putting the file there and any time you make updates to it.

    #1562
     dima
    Participant

    Thank you, now it should be much easier

    #1576
     Mark Craig
    Participant

    Indeed the instructions were missing in the 11.0.0 docs.

    The need to unpack the properties files is mentioned in the in-progress docs and should be fixed in OpenAM 12.0.0 docs. See the procedure To Customize UI Elements.

    #1577
     dima
    Participant

    Thank you Mark

    #1578
     Scott Heger
    Participant

    Thanks Mark. That will help many who have asked about this very thing.

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

You must be logged in to reply to this topic.

©2022 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?