Zephyr cloud API returns 401-status and displays Expecting claim 'qsh' to have value '7fxxxxx'

vinoth April 23, 2019

While accessing Zephyr cloud API using ZAPI, below error message is displaying in response body with status as 401-Unauthorized. Please let me know where I'm giving wrong inputs.

Expecting claim 'qsh' to have value '7f0d00c2c77e4af27f336c87906459429d1074bd6eaabb81249e1042d4b84374' but instead it has the value '9a826e393c52fc74522e694b7bdee21d88f49a4ffd3edf622b4a6f4ab8de592e'

End Point: https://prod-api.zephyr4jiracloud.com/connect/public/rest/api/1.0/cycle?expand=&clonedCycleId=

Headers: 

Content-Type: application/JSON

Authorization: JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI.....

Zapi Access KeyZmQ1MDg1OGQt.......

 

To generate JWT token, below inputs were given in java file:

zephyrBaseUrlhttps://prod-api.zephyr4jiracloud.com/connect

accessKey: ZAPI access key taken from  Addons >> zapi section - ZmQ1MDg1OGQt.......

secretKeyZAPI secret key taken from  Addons >> zapi section - jFJl4BICL0X0Y3i........

accountId: Taken from below url (in Bold)  https://xxxxxx.atlassian.net/people/5cbed0782675f70e50cd5a0a

 

 

2 answers

0 votes
Ankur_Upadhyay02 October 24, 2019

Hi, i am facing the same issue. Any update on this?

 

Thanks,

Ankur Upadhyay

0 votes
Fraser Colmer April 23, 2019

Hi @vinoth ,

Thank you for asking your question on the Atlassian Community.

This looks like something our support team will be able to assist you with. Please follow the link below to be put in direct correspondence with a member of our support.

https://www.getzephyr.com/support (submit a ticket)

Thank you,

Team Zephyr

Anjan_Mondal April 9, 2020

I am unable generate jwt token. Please help me to generate. How can i generate the jwt token

@vinoth 

Could you please provide the java java file with required jars. I am unable to find the jars

Suggest an answer

Log in or Sign up to answer