0 Replies Latest reply on Feb 25, 2021 7:59 PM by Pankaj Kumar

    How to Get Token Credentials using Rest API

    Pankaj Kumar New Member

      @

      @My client is using Informatica Activevos and we didnt had cloud setup yet. So we are using Activevos Designer Version: 9.2.4.

      I have requirement to get token credentials from Rest API using POST. Somehow It is not working.

      Rest URL : https://login-dev.abc.com/as/token.oauth2

      Request need to be passed as x-www-form-urlencoded with key/value pairs

      Key                    client_credentials       

      client_id            123458798798798

      client_secret           e4534634343

       

      Request looks like below in designer:

      <ns:RESTRequest xmlns:ns="http://schemas.activebpel.org/REST/2007/12/01/aeREST.xsd">

      <ns:method>POST</ns:method>

      <ns:params>

      <ns:param name="Key" value="client_credentials"/>

      <ns:param name="client_id" value="123458798798798"/>

      <ns:param name="client_secret" value="e4534634343"/>

      </ns:params>

      <ns:header name="Content-Type" value="application/x-www-form-urlencoded"/>

      <ns:header name="Cookie" value="PF=132324"/>

      </ns:headers>

      </ns:RESTRequest>

       

      I did tried passing the key/value pairs within payload too, but that also didnt worked. Can you please help in understanding how to pass the key/values pairs for this Rest call?

       

      PS: These are not the exact url and data..as it is company specific.

       

      Thanks

      Pankaj Kumar

      ActiveVOS

      @

       

      Message was edited by: Pankaj Kumar