How to request an OAuth consumer key from jfs:oauthRequestConsumerKeyUrl?
Hello,
{ "name": "consumer name", <--- The desired name of the consumer "secretType": "string", "secret": "secret", <--- The desired consumer secret "trusted": "false", <--- The desired trust setting "userId": "userId-name" <--- The desired user to be associated with the consumer }as a request body. However, it doesn't work, as the request returns 403 response with an error message: Perrmision denied. Your account does not have the group memberships required to access the requested resource. What is the correct HTTP call to be made in order for this to work as described in the specification? Or is there something else missing? |
3 answers
The error message says that you need an appropriate repository role (very likely JazzAdmins) to complete the request. Have you verified that you have logged in and got the right role?
Comments
Thomas Vil
commented Mar 09 '17, 1:28 a.m.
Yes, I'm logged in with a user that has the following roles: JazzAdmins, JazzUsers, JazzProjectAdmins.
|
It started working after several browser session restarts and adding "X-Jazz-CSRF-Prevent" headers with JSESSIONID as a value.
|
I was able to get the following POST to work without the X-Jazz-CSRF-Prevent header: The server responded: HTTP/1.1 200 OK X-Powered-By: Servlet/3.0 x-com-ibm-team-scenario: 216.188.237.248 Content-Type: text/json;charset=UTF-8 Content-Language: en-US Transfer-Encoding: chunked Connection: Close Date: Mon, 22 May 2017 11:55:27 GMT {"key":"scrambledeggs"} Comments
Lonnie VanZandt
commented May 22 '17, 8:08 a.m.
Jazz.net's HTML editor is ... not the best. |
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.