cancel
Showing results for 
Search instead for 
Did you mean: 

Try to authentificate with JWT

SOLVED
Occasional Contributor

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 ?

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Try to authentificate with JWT

 

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

View solution in original post

3 REPLIES 3

Re: Try to authentificate with JWT

 

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

View solution in original post

Occasional Contributor

Re: Try to authentificate with JWT

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

Re: Try to authentificate with JWT

 
 

Yes you have to generate separate JWT for seperate endpoints

New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors