Layer7 API Management

  • 1.  OTK Session-Get,Store,Delete,DB

    Posted Mar 13, 2018 10:20 PM

    Hi,

     

    Can you share me any sample polices if you have any for OTK Session-Get,Store,Delete,DB.

    Just wondering how to use these assertions and when are they useful.



  • 2.  Re:  OTK Session-Get,Store,Delete,DB

    Broadcom Employee
    Posted Mar 13, 2018 10:54 PM

    They're usually for internal use, if you don't need to customize otk, in most occasions, you only need to call otk endpoints.



  • 3.  Re:  OTK Session-Get,Store,Delete,DB
    Best Answer

    Broadcom Employee
    Posted Mar 16, 2018 12:27 PM
      |   view attached

    Just to close the loop here: a support case was opened for this request.

    OTK Session DB should not be used directly. The corresponding encapsulated assertions found in 'manage/session' folder should be used instead.

     

    A sample has been attached here.

     

    To test: 

     

    1) Publish a Web API, name it whatever you see fit 
    2) Import the policy 
    3) Navigate to the published service created above in a browser and you will be presented with 3 options, STORE, GET, DELETE. 
    4) Click the STORE option first, it will store the session data 
    5) Navigate back to the main page and click GET, it will return the data cached previously. 
    6) Navigate back to the main page and click DELETE, it will now delete the session data. This can be confirmed by again choosing the GET option which will now return empty values. 

    Attachment(s)