Forum Discussion
Hey ajitzephyr
Been looking at the sampleJWTGenerator.java. Where did you get this part of the URI from "/public/rest/api/1.0/execution"?
In the screenshotted sampleJWTGenerator.java - there's 2 different URIs specified. in the one the URI is "/public/rest/api/1.0/cycle" and in the later screenshot - the same URI has 2 query parms ("/public/rest/api/1.0/cycle?expand&clonedCycleId=").
Reason I'm asking is that if I'm reading the java correctly (and for once, it doesn't look like martian to me) the jwt string value is generated in part by a method that takes these arguments --> zephyrBaseURL, accessKey, secretKey and accountId and another method that uses the zephyrBaseURL and a URI (whether it's "/public/rest/api/1.0/cycle" or "/public/rest/api/1.0/cycle?expand&clonedCycleId=" or even /public/rest/api/1.0/execution) to generate the final JWT token value.
I could be totally wrong - but I'd still like to nail all the possibilities down until we've found what the cause of your issue is.
Cheers
Rich
I cannot attach the file as it is more than 12 MB after compressing it.
- richie2 years agoCommunity Hero
Hey ajitzephyr
Is there any chance you can provide the full name of the .jar file please? I might be able to find it some other way if I have the full name of the .jar file.
I'm sorry that I can't access the webpage without the redirect - I've tried forcing both EDGE and Chrome to ignore redirects - but it's just not working and that link constantly redirects to the one I mentioned.
I still think I can help if I can get everything setup on my laptop however - so if you can provide the jar file full name (can't see the full name in the attached .pdf image file) - then I should be able to sort myself out with the rest.
Oh - one more thing - .jar files are already compressed - so .zipping or winraring a .jar file is just like zipping a .zip archive - it's already compressed so doesn't make much diff.
Anyway - if you can get me the .jar file name you'll be doing me a real favour!
Thanks!
Rich
- richie2 years agoCommunity Hero
Hey ajitzephyr
ignore my last message - I haven't been able to stop the redirect - but I've found the same page which is available via --> https://zephyrdocs.atlassian.net/wiki/spaces/ZFJCLOUD/pages/2000060602/Generating+a+JWT+Authentication+Token+for+Zephyr+for+Jira+Cloud+API and this has the .jar file I need
Cheers,
Rich