It's all about the answers!

Ask a question

Cannot get list of projects - consumer key pb


EclipseTalk . (32736161) | asked Feb 24 '11, 3:29 p.m.
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.

3 answers



permanent link
John Vasta (2.6k15) | answered Feb 25 '11, 11:24 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
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.

permanent link
EclipseTalk . (32736161) | answered Feb 25 '11, 9:29 p.m.
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.

permanent link
John Vasta (2.6k15) | answered Feb 28 '11, 11:56 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
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.

Your answer


Register or 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.