Try to authentificate with JWT
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Try to authentificate with JWT
Hi,
I am trying authentificate to Zephyr by JWT token.
Request url: https://prod-api.zephyr4jiracloud.com/connect/public/rest/api/1.0/executions?projectId=10000&issueId...
Headers: Authorization, zapiAccessKey, Content-type
I am going throw suggested approach, but my response is:
Expecting claim 'qsh' to have value 'c1aec12a54c**************424f154ee92219b92574ae71d261' but instead it has the value '78f03673cac34512*************1b45a4044b689f6e5640343d'
Could u please help me how to solve it ?
Solved! Go to Solution.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
If there is some issue with JWT token in header then we will get this below qsh error
Expecting claim 'qsh' to have value 'c1aec12a54c**************424f154ee92219b92574ae71d261' but instead it has the value '78f03673cac34512*************1b45a4044b689f6e5640343d'
https://prod-api.zephyr4jiracloud.com/connect/public/rest/api/1.0/executions?projectId=10003&issueId...
One of the possible reason while generating your JWT token, you might have given incorrect project id or issue id or offsetvalue or size value
Please follow the below documentation for sample api's and jwt generation:
https://zephyrdocs.atlassian.net/wiki/spaces/ZFJCLOUD/pages/2000060602/Generating+a+JWT+Authenticati...
Thanks,
Jagadeesh
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for reply.
In time i found the sollution. Case was:
- generated JWT for different endpoint
- i did not know that i need setup type of request during generating JWT
Also i have one more question:
Need I generete for separate endpoints separate JWT ?
Thanks
Lukas Pollak
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes you have to generate separate JWT for seperate endpoints
