Layer 7 API Management

Expand all | Collapse all

Is it possible to debug an Encapsulated Assertion?

Jump to Best Answer
  • 1.  Is it possible to debug an Encapsulated Assertion?

    Posted 01-10-2020 09:26 AM
    Hi All,

    we are using CA API Gateway 9.2.
    Was developing a service it was working fine and wanted to use a part of it as an encapsulated assertion.
    So, created an encapsulated assertion with the proper logic and inputs. But still not able to achieve the functionality.

    Please guide on debugging this encapsulated assertion.

    Thank you


  • 2.  RE: Is it possible to debug an Encapsulated Assertion?

    Posted 01-10-2020 09:35 AM
    Edited by Joe Dascole 01-10-2020 09:35 AM
    Hi Pavansai,

    Please see this thread for more detail on debugging encapsulated assertions: https://community.broadcom.com/enterprisesoftware/communities/community-home/digestviewer/viewthread?MessageKey=49249dde-62b7-4df0-b27e-91b9fd3e04f9&CommunityKey=0f580f5f-30a4-41de-a75c-e5f433325a18&tab=digestviewer#bm49249dde-62b7-4df0-b27e-91b9fd3e04f9

    Regards,
    Joe


  • 3.  RE: Is it possible to debug an Encapsulated Assertion?

    Posted 01-12-2020 04:46 PM
    Hello Pavansai,
    You can use trace log for debugging,
    1. enable debug tracing on service properties window,

    2. allow debug tracing into encapsulated assertion, on encapsulated assertion properties window,

    Regards,
    Mark



  • 4.  RE: Is it possible to debug an Encapsulated Assertion?

    Posted 01-13-2020 07:20 AM
    Edited by Pavansai C 01-13-2020 07:45 AM
    Thank you Joe Dascole / Zhijun He  for your valuable time.
    I was not able extract the siteminder.smcontext.attributes.{val} using the Evaluate regular expression assertion (only when used in a policy fragment or encapsulated assertion. and as a service it works fine)

    Error:  WARNING 18905 com.l7tech.server.policy.assertion.ServerEncapsulatedAssertion: 151: Variable 'siteminder.smcontext.attributes' is not a String and cannot be converted to one. (Actual type: com.ca.siteminder.SiteMinderContext$Attribute)

    can you please help me in solving this.

    unable to get the value from siteminder.smcontext.attributes.${val}



  • 5.  RE: Is it possible to debug an Encapsulated Assertion?

    Posted 01-14-2020 04:57 PM
    I don't see "Evaluate regular expression assertion" in the screenshot, can you show the regular expression properties window?

    Regards,
    Mark


  • 6.  RE: Is it possible to debug an Encapsulated Assertion?
    Best Answer

    Posted 01-14-2020 05:09 PM
    Please refer to the document below on how to access the "siteminder.smcontext.attributes",
    https://techdocs.broadcom.com/content/broadcom/techdocs/us/en/ca-enterprise-software/layer7-api-management/api-gateway/9-4/reference/context-variables/ca-single-sign-on-context-variables.html

    Regards,
    Mark