Reltio Connect

 View Only
  • 1.  Unauthorized error while debugging custom jar file

    Reltio Partner
    Posted 08-16-2024 05:49

    Hi,
    We are getting "Full authentication required error " while calling post api to debug WORKFLOW Adapter locally (custom jar file). We have validated following things multiple times, please suggest if we missed anything
    1.Header that we are passing in API request is Correct: Env URL, Authorization, Content Type
    2.Credential authentication - We have verified this multiple times and its correct
    3.Rechecked the workflow settings, permissions for users-ALL OK
    4. Validated API endpoint, and also the env details --
    curl --location 'http://localhost:8080/workflow-adapter/workflow/tenantid/jarDeployments' \
    --header 'EnvironmentURL: https://test1-usg.reltio.com' \
    --header 'Authorization: Bearer {Acesstoken}
    --header 'Content-Type: application/json' \
    --data '{
       "module":"data.jar",
       "name":"customcode",
       "description":"code to assign task to indivisual user"
    }'

    Also when we are try to run command to register tenant. But we are getting "Invalid token error". But our token is valid its working for other reltio API's. Below is the CURL of same post request.
    curl --location 'http://localhost:8080/workflow-adapter/workflow/registrations' \
    --header 'Authorization: Bearer {Access Token}
    --header 'EnvironmentURL: https://test1-usg.reltio.com' \
    --header 'Content-Type: application/json' \
    --data '{
        "tenantids":["tenantid"]
    }'

    Waiting for quick response , Thank you.



    ------------------------------
    Gayatri Khatale
    Blue Altair
    Pune
    ------------------------------


  • 2.  RE: Unauthorized error while debugging custom jar file

    Reltio Employee
    Posted 08-19-2024 13:12

    Hello Gayathri,

    1. You should use the same EnvironmentURL header value in all the API calls made to local workflow adapter.
    2. The second thing I would check the api.properties file where you give reltio.auth.client.id and reltio.auth.client.secret. Please check with Reltio support or a professional services team member for the values that need to be added for these properties in the file 
    3. You should have roles for workflow related services


    ------------------------------
    Nagesh Lakinepally
    ------------------------------



  • 3.  RE: Unauthorized error while debugging custom jar file
    Best Answer

    Reltio Partner
    Posted 08-21-2024 03:32

    Hi
    Thank you for your help. Our issue has been resolved. The problem arose due to the JDK version mentioned in the Reltio documentation. It's now working fine with JDK 22. Thank you once again.



    ------------------------------
    Gayatri Khatale
    Blue Altair
    Pune
    ------------------------------