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

OAuth authentication with CCM in RTC 3.0

I have a question related to OAuth authentication in CCM/JTS. Similar to http://jazz.net/forums/viewtopic.php?t=15572&highlight=ccm+consumer

I wish to invoke services on the CCM application (hosted in RTC 3.0) from my application, which is already registered as an OAuth consumer of CCM. The JFS3.0 SDK tutorials show how to consume JFS services from consumers from JFS. The starting point is the JTS discovery services URL from which you create an OAuth provider used to kick-off the OAuth process with a consumer. I find the discovery service for CCM as "https://localhost:9443/ccm/discovery" in the CCM root services document, but I cannot successfully recover a discovery service object using the DiscoveryHelper initialized with the above URL. Could you please point where I am going wrong? Here is the code snippet, I have been using.




//Configure the discovery service
Discovery.setDiscoveryServiceUriForAppGroup("https://localhost:9443/ccm/discovery");
..........

..........

IDiscoveryHelper discoveryHelper = Discovery.getHelperForAppGroup();
IServiceResource oauthservice = discoveryHelper.getService(
DiscoveryConstants.SERVICE_TYPE_OAUTH, null);

}

0 votes



One answer

Permanent link
CCM (and QM) does not really have a discovery service. They have a stub service that just returns a redirect for the JTS discovery service.

As I mentioned in our private chat, you could use the RootServicesUtil class in the SDK to fetch and parse the /ccm/rootservices resource, and get the OAuth service URLs that way instead.

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,937

Question asked: Mar 28 '11, 8:29 a.m.

Question was seen: 5,892 times

Last updated: Mar 28 '11, 8:29 a.m.

Confirmation Cancel Confirm