We have developed a atlassian spring boot app to deploy as a gadgets in jira dashboard.
We are able to sign JWT for the jira cloud apis,
But when we try to execute code the below,
@Autowired
private AtlassianHostRestClients restClients;
String str = “https://www.jirareports.com/jr/aio/rest/report/export?token=YzNmMTBmNzQtODkzNi00M2QxLWIyMjQtNTlmMjMxMTQzNGFh&ID=32375&format=json”;
String result = restClients.authenticatedAsHostActor().getForObject(str, String.class);
I get the error on the jira dashboard as "{“status”:500,“error”:“Internal Server Error”,“message”:“Aborting the request to (please find the this link above, created for this post)jirareports/jr/aio/rest/report/export?token=YzNmMTBmNzQtODkzNi00M2QxLWIyMjQtNTlmMjMxMTQzNGFh&ID=32375&format=json /jr/aio/rest/report/export because the user you’re trying to make a request as does not reside on this host. The base url of the user’s instance is https://seneca-global.atlassian.net”,“timeStamp”:“Wed Feb 07 17:34:41 IST 2018”,“trace”:null} "
So for all the same hosts, JWT is working but not for others web services(When disabling the JWT for that particular method, it working!!!).
How can I sign the other web services or we can just ignore the JWT because in there is already token passed in the other API service?