Symantec Access Management

 View Only
  • 1.  Siteminder Expression Response

    Posted Aug 31, 2015 06:02 PM

    Hi,

     

    I'm looking to set an Expression response. I want to read a user attribute and append @ABC at the end of it.

     

    Does this look correct? It returns an empty value at the moment.

     

    COOKIENAME : TESTCOOKIE

    Value : #{attr["samAccountName"]}@ABC

     

    Regards,

    Anand.



  • 2.  Re: Siteminder Expression Response
    Best Answer

    Posted Sep 01, 2015 10:05 AM

    Anand anand3g

     

    Let know if this helps.

     

    Capture.JPG

     

    Capture.JPG

     

    2015-09-01 10_02_08-mRemoteNG - confCons.xml.png

     

     

    Regards

     

    Hubert



  • 3.  Re: Siteminder Expression Response

    Posted Sep 01, 2015 10:23 AM

    HubertDennis Works like a charm.

     

    One additional question. Are expressions flexible enough to do conditional checks?

     

    Like check for a user attribute, if null, then don't set that cookie, or pick up another attribute?


    Regards,

    Anand.



  • 4.  Re: Siteminder Expression Response

    Posted Sep 01, 2015 10:27 AM

    Yes I think it could be done, it really is dependent on how we build the expression, what functions are available etc.

     

    Let me see if I could build a sample for you OR the other crude option is to return both headers, then handle the "conditional check" at application layer.

     

     

    Since this is a new query, Refer to this thread for the solution

    siteminder expression response : conditional checks

     

     

     

    Regards

     

    Hubert