Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Cannot get list of projects - consumer key pb

Hello,
I have JTS 3.0 installed and RTC 3.0.
- In JTS there is a consumer entry for ccm with a consumer key at https://myServer.com:9443/jts/admin#action=com.ibm.team.repository.admin.configureOAuth
- In CCM there is a consumer entry for JTS with a consumer key at https://myServer.com:9443/ccm/admin#action=com.ibm.team.repository.admin.configureOAuth
So far so good JTS and CCM can communicate.
Then I defined a Jazz app (https://localhost:9444/testApp) deployed on JTS that makes a request to a REST service to get the list of projects from CCM. The REST services is invoked correctly but when I run the http request with URL "https://testserver.com:9443/ccm/process/project-areas" I get this error
CRJZS0033E The consumer key is not valid and the consumer may not be registered. The service provider is "https://testserver.com:9443". The consumer key is "d41...852".

I don't understand why since JTS and CCM are configured as friends.
What am I doing wrong?
Thanks in advance for your help.

0 votes



3 answers

Permanent link
What consumer key are you using to sign requests to the CCM application? For your application to make requests of CCM, your application must have a consumer key allocated in CCM for it.

Hello,
I have JTS 3.0 installed and RTC 3.0.
- In JTS there is a consumer entry for ccm with a consumer key at https://myServer.com:9443/jts/admin#action=com.ibm.team.repository.admin.configureOAuth
- In CCM there is a consumer entry for JTS with a consumer key at https://myServer.com:9443/ccm/admin#action=com.ibm.team.repository.admin.configureOAuth
So far so good JTS and CCM can communicate.
Then I defined a Jazz app (https://localhost:9444/testApp) deployed on JTS that makes a request to a REST service to get the list of projects from CCM. The REST services is invoked correctly but when I run the http request with URL "https://testserver.com:9443/ccm/process/project-areas" I get this error
CRJZS0033E The consumer key is not valid and the consumer may not be registered. The service provider is "https://testserver.com:9443". The consumer key is "d41...852".

I don't understand why since JTS and CCM are configured as friends.
What am I doing wrong?
Thanks in advance for your help.

0 votes


Permanent link
Thanks for your reply.
My application has a consumer key allocated in JTS, not CCM. I thought that I could make a request to CCM from my application because CCM is defined as a consumer in JTS and CCM has JTS defined as a "friend", therefore I should be able to send a request to JTS for CCM?
Is my thinking wrong?
Thank you for clarifying.

0 votes


Permanent link
The fact that CCM has a friend entry for the JTS, and there is a consumer allocated for CCM in the JTS, means that CCM can send requests to the JTS with its consumer key. But that doesn't allow other applications to send requests to CCM, even if those applications are registered with the JTS. Since CCM is an OAuth provider, it must have a consumer allocated for your application. We have the same requirement for the CLM configuration, where all three applications (CCM, QM, and RM) must be friends of each other.

0 votes

Your answer

Register or log in to post 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,948

Question asked: Feb 24 '11, 3:29 p.m.

Question was seen: 6,058 times

Last updated: Feb 24 '11, 3:29 p.m.

Confirmation Cancel Confirm