Changing the "messageContent" in OpenAM HOTP Configuration

This topic has 7 replies, 5 voices, and was last updated 1 day, 5 hours ago by william.hepler.

  • Author
    Posts
  • #12298
     srastogi
    Participant

    Hi All,

    Could you please let us know how to change the “messageContent” and “messageSubject” in OpenAM OTP configuration (HOTP).

    As per the document, we need to modify the amAuthHOTP.properties file, but unable to find the right path of the mentioned properties file. Could you please let us know the exact path to get the “amAuthHOTP.properties” file.

    Thanks in advance.

    Thanks,

    #12300
     Rogerio Rondini
    Participant

    Hi,

    This property file is located inside the HOTP module jar file “<openam war>/WEB-INF/lib/openam-auth-hotp-xxx.jar”

    Abs,
    Rogerio Rondini

    #12315
     srastogi
    Participant

    Thanks alot Rogerio.

    I am able to get the property file now in the above mentioned jar file.

    Thanks,

    #27166
     subbu95
    Participant

    Hi ,

    I would like to customize OTP Format as

    messageContent=Your OpenAM One Time Password: XXXXXXX This One Time Password will remain valid for 5 minutes

    Here how i can append validity time to SMS text

    Where hotp.properties contains:

    sunAMAuthHOTPAuthLevel=0
    sunAMAuthHOTPSMSGatewayImplClassName=com.sun.identity.authentication.modules.hotp.DefaultSMSGatewayImpl
    sunAMAuthHOTPSMTPHostName=smtp.gmail.com
    sunAMAuthHOTPSMTPHostPort=465
    sunAMAuthHOTPSMTPUserName=example
    sunAMAuthHOTPSMTPUserPassword=secret123
    sunAMAuthHOTPSMTPSSLEnabled=SSL
    sunAMAuthHOTPSMTPFromAddress=demo@example.com
    sunAMAuthHOTPPasswordValidityDuration=5 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>//
    sunAMAuthHOTPPasswordLength=8
    sunAMAuthHOTPasswordDelivery=E-mail
    sunAMAuthHOTPAutoClicking=true
    openamEmailAttribute=mail

    #27214
     Andy Cory
    Participant
    #27221
     william.hepler
    Participant

    Theres a pretty good example here too of a similar customization :
    https://forum.forgerock.com/2017/05/extending-openam-hotp-module-display-otp-delivery-details/

    #27224
     Andy Cory
    Participant

    Hi William – isn’t that example somewhat different? It displays a custom message on the AM confirmation page in the XUI, but doesn’t customise the text of the message sent to the mobile device as far as I can see.

    -Andy

    #27244
     william.hepler
    Participant

    Andy your right, I thought it was still helpful to show how you may need to customize other packages to make deeper customizations. Since they are asking for updating mainly the Email your approach is correct.

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

You must be logged in to reply to this topic.

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