3 Replies Latest reply on Sep 13, 2016 8:26 AM by haebink90767626

    Obtain Target API access token


      I have been walking through all the steps to get the Target API access token. I am stuck at this step - https://www.adobe.io/products/usermanagement/docs/createjwt

      I get the 200 status from the server, and don't see no error, but the response does not return any information related to the access key or anything. The response body is empty. Does this mean there is something wrong? 


        • 1. Re: Obtain Target API access token
          ParitMittal Level 5


          Can you please provide more  details in terms of the  details of json request and response and that should help us further debug.

          Thanks & Regards

          Parit Mittal

          • 2. Re: Obtain Target API access token
            haebink90767626 Level 1


            I could finally get the correct response. It seems that my previous code could get the 200 success response, but actually it didn't pass the correct parameter and got the empty body response. 

            Shouldn't the response be something else other than 200 if the body is empty? 


            • 3. Re: Obtain Target API access token
                              I am having an issue obtaining an access token using JWT too. I am getting "JWT token is incorrectly formatted, and can not be decoded" error whatever JWT token I use. Here is an example request I am doing curl -X POST -H "Content-Type: application/x-www-form-urlencoded" -H "Cache-Control: no-cache" -d 'client_id=***&client_secret=***&jwt_token=eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiO iIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiYWRtaW4iOnRydWV9.EkN-DOsnsuRjRO6BxXemmJDm3Hbxrb RzXglbN2S4sOkopdU4IsDxTI8jO19W_A4K8ZPJijNLis4EZsHeY559a4DFOd50_OqgHGuERTqYZyuhtF39yxJPAjUE Swxk2J5k_4zM3O-vtd1Ghyo4IbqKKSy6J9mTniYJPenn5-HIirE' "https://ims-na1.adobelogin.com/ims/exchange/jwt" client_id and client_secret are obfuscated here, but they are correct when I'm getting the error since omitting or tampering one of them will result in a "client_id/client_secret are incorrect" error instead. Concerning the jwt_token, I tried various token, I tried base64 encoding the all token, etc. It is always returning the same "JWT token is incorrectly formatted" error. In the example, I used a JWT example from https://jwt.io/#debugger, so it is correctly formatted and can be decoded. I am not sure how is supposed to be formatted the jwt_token parameter value.