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
![]() 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"} |