Symantec Access Management

Expand all | Collapse all

Sample Code / App to use of REST JWT token API

Jump to Best Answer
  • 1.  Sample Code / App to use of REST JWT token API

    Posted 12-24-2018 05:52 PM

    Hi,

     

    Do you guys have very light sample POC pages/ code / web app obtaining and using CA SSO Rest JWT Token API (code to do the system calls) ?

    I believe we may have something in the most recent SDK. Currently I can only get 12.52 SDK and I can't find the sample app from there. Can you guys give me some directions? I am more like an integrator then a seasoned REST developer.

      

    Thanks and regards,
    Eric



  • 2.  Re: Sample Code / App to use of REST JWT token API

    Broadcom Employee
    Posted 01-04-2019 02:52 PM

    I have attached step by step guide for JWT generation by CA API Gateway and CA SSO JWT Authentication test with REST API tool. (Postman).

     

    API assertion is also attached. (

     

    Kind regards

     

    B.K. 



  • 3.  Re: Sample Code / App to use of REST JWT token API

    Posted 01-04-2019 06:36 PM

    Thank you very much B.K.

     

    Can I keep in touch with you if I run into problems?



  • 4.  Re: Sample Code / App to use of REST JWT token API

    Posted 01-04-2019 07:15 PM

    Hi B.K.

     

    Thanks for giving me some insights.

     

    My use case is a bit simpler.

    I just want to access the REST adminUI policy API to retrieve siteminder objects.

     

    Assume I am using the postman client, 

    I need to use the JWT token,

     

    I obtain the token from typing username and password from the admin UI interface. (I assume)

     

    Can the token be reusable persistently after it gets generated ?

     

    Then I use postman call to get a couple simple policy objects ...

     

    Can this manually interaction be automated? Can code be generated from postman?

     

    Thanks and regards,
    Eric



  • 5.  Re: Sample Code / App to use of REST JWT token API
    Best Answer

    Posted 01-07-2019 06:10 PM

    I have used a postman tool

     

    Generate the use case following the CA SSO rest api document.

     

    it works.

     

    and I get the code generated.