Symantec Access Management

  • 1.  Java REST API

    Posted Jul 24, 2017 08:29 AM

    Dear CA SSO community,

    we are programming a Java Rest client for Siteminder 12.7 and have some questions about our implementation approach.

     

    Please let me know if you have implementation experience for the Rest API and if you think that you can help us discussing our questions.

     

    Kind regards,

    Gottfried



  • 2.  Re: Java REST API

    Posted Jul 24, 2017 10:30 AM

    Sure, please let us know what issue are you facing?



  • 3.  Re: Java REST API

    Posted Jul 25, 2017 06:03 AM

    For the REST Policy Data API, Federation Objects we need a java client. The problem is, manual generation of java REST client for this REST API is quite difficult. In this case we have to create all java data objects with many properties. It would be much easier if we could generate a java REST client for example from swagger metafile. But it doesn’t work correctly. What is the best practice, how we can generate this API with less effort.

    Maybe such an example java REST client already exists and it would help us if we could re-use this example code.



  • 4.  Re: Java REST API
    Best Answer

    Posted Jul 25, 2017 10:04 PM
      |   view attached

    Hi Gottfried,

     

    What you will need to do is install CA SSO 12.7 SDK.

    We do ship REST client java samples with the SDK.

     

     

    I am attaching that here for your reference as well.

    Please refer to the README.txt for usage details.


    Regards,

    Ujwol Shrestha

    Attachment(s)

    zip
    restapi.zip   1.86 MB 1 version


  • 5.  Re: Java REST API

    Posted Jul 27, 2017 09:45 AM

    When did a REST API come out for SiteMinder? And is this a true REST API or just sample code on how to create your own, sort of?



  • 6.  Re: Java REST API

    Posted Jul 30, 2017 08:10 PM

    Hi Mark ,

     

    It is a true REST API

    It was introduced in Policy server version r12.7

     

    Policy Object REST APIs - CA Single Sign-On - 12.7 - CA Technologies Documentation 

    The product currently provides the following REST APIs for manipulating policy objects:

    • Administrative Token API – Obtain a JSON Web Token (JWT) that is required to access the Policy Data API and Policy Migration API.

    • Policy Data API – Create, read, update, and delete objects (including federation entities, federation partnerships, and certificate services) in the policy store.

    • Policy Migration API – Export and import specified subsets of the policy data in the policy store.

    Also watch this sort video tip :

     

    Tech Tip (Video): CA SSO r12.7:  REST API : How to use Policy Export/Import API 

     

    Let me know if any question.

     

    Regards,

    Ujwol Shrestha