IBM Security Verify

Expand all | Collapse all

ISAM - How to add custom message in SMS OTP(mac) delivery.

  • 1.  ISAM - How to add custom message in SMS OTP(mac) delivery.

    Posted 8 days ago
    Hello Team,

    I want to add a custom message to sms_message.xml(OTP delivery) from infoMap.

    I have tried with macros and attributes set in session context but it's not working.

    Any pointers would be helpful.

    ------------------------------
    Mukesh
    ------------------------------


  • 2.  RE: ISAM - How to add custom message in SMS OTP(mac) delivery.

    Posted 8 days ago
    Hi Mukesh,

    Try the following:

    //In InfoMap:
    context.set(Scope.SESSION, "urn:ibm:security:asf:response:token:attributes", "variableName", "custom_message");

    //In sms_message.xml
    Access it using @variableName@

    Hope it helps.

    Regards,
    Jahanzaib

    ------------------------------
    Jahanzaib Sarwar
    ------------------------------



  • 3.  RE: ISAM - How to add custom message in SMS OTP(mac) delivery.

    Posted 8 days ago
    Hi Jahanzaib,

    Thanks for your response!

    I have already configured this way even tried with macros also.




    ------------------------------
    Mukesh
    ------------------------------



  • 4.  RE: ISAM - How to add custom message in SMS OTP(mac) delivery.

    Posted 7 days ago
    Hi Mukesh,

    Are you ending your InfoMap with success.setValue(true);?

    Also, is your MAC OTP mechanism defined after the InfoMap mechanism in the authentication policy steps sequence?

    Regards,

    ------------------------------
    Jahanzaib Sarwar
    ------------------------------



  • 5.  RE: ISAM - How to add custom message in SMS OTP(mac) delivery.

    Posted 6 days ago
    Hi Jahanzaib,


    Yes, infoMap is ending with success.setValue(true) but policy is ending with success.endPolicyWithoutCredential(); which is last step.


    So, we have 4-5 different flows like unlock me, forgot password, etc. so we want to send custom message with OTP base on the operation(flow).

    In step 2, I'm trying to set a custom message through macro or context attributes. 






    ------------------------------
    Mukesh
    ------------------------------



  • 6.  RE: ISAM - How to add custom message in SMS OTP(mac) delivery.

    Posted 6 days ago
    Hi Mukesh,

    Have you tried setting the macro within the decision mapping rule?

    Macros are generally scoped to within a single mechanism, not the whole policy, except within Decisions (macros set in the decision mapping rule will be available to any mechanisms within a branch).


    ------------------------------
    Jasmine
    ------------------------------



  • 7.  RE: ISAM - How to add custom message in SMS OTP(mac) delivery.

    Posted 2 days ago
    Edited by Mukesh Bhati 2 days ago
    Hi Jasmine,

    Tried setting a custom message in MACRO from the decision mapping rule.

    But still same, nothing is populating in the SMS template.



    SMS OTP Response for Reference:
    This is your one-time password 123-456789.
    @MSG_1@

    regards,
    TEST


    ------------------------------
    Mukesh
    ------------------------------



  • 8.  RE: ISAM - How to add custom message in SMS OTP(mac) delivery.

    Posted 5 days ago
    Hi Mukesh,

    Looking at the provided information, it seems that a session is not being established, as you are only taking the user Id as input if I am not wrong and which is why you are not able to use

    context.set(Scope.SESSION, "urn:ibm:security:asf:response:token:attributes", "variableName", "custom_message");

    because this stores the macro/variable in the session which can be retrieved later. In your case there is no session.

    As the macros are scoped within a single mechanism, that approach would not work either.

    Perhaps, you could try any of following approaches which I am thinking of currently:

    1. Use a dummy session for executing the policy steps, to be able to use context.set(Scope.SESSION, "urn:ibm:security:asf:response:token:attributes", "variableName", "custom_message");
    2. Include the custom message as a hidden form input parameter on the page where you take user id from user (Unlock Me Collect UserID), then catch it in decision mapping rule and further utilize it by setting it as a macro (hoping the macros persist among branches). I have not tried this, perhaps anyone who has tried or can confirm about the persistence of macros among branches can help.
    Regards,

    ------------------------------
    Jahanzaib Sarwar
    ------------------------------