How to Append OTP Validity time to SMS message

This topic has 1 reply, 2 voices, and was last updated 8 months ago by Andy Cory.

  • Author
    Posts
  • #27168
     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
    [email protected]
    sunAMAuthHOTPPasswordValidityDuration=5 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>//
    sunAMAuthHOTPPasswordLength=8
    sunAMAuthHOTPasswordDelivery=E-mail
    sunAMAuthHOTPAutoClicking=true
    openamEmailAttribute=mail

    #27211
     Andy Cory
    Participant

    Hi

    You can provide your own SMS gateway implementation that implements the SMSGateway interface. This is then specified in configuration in the sunAMAuthHOTPSMSGatewayImplClassName property. Your implementation would implement the sendSMSMessage method, this is where you can change the message content if you wish.

    -Andy

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

You must be logged in to reply to this topic.

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