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

OAuth with RTC

I have an application developed with the Jazz Foundation Application SDK 3.x.x.x (https://jazz.net/wiki/bin/view/Main/AppSdk) and i need to query workitems of RTC from my application.

It's possible to use the OAuthHelper of that SDK to authenticate in RTC?
How i can do it?

0 votes



2 answers

Permanent link
I have an application developed with the Jazz Foundation Application SDK 3.x.x.x (https://jazz.net/wiki/bin/view/Main/AppSdk) and i need to query workitems of RTC from my application.

It's possible to use the OAuthHelper of that SDK to authenticate in RTC?
How i can do it?


When I try to access the Discovery Service of the RTC to recover the OAuth service I always get the error 301 ("This and all future requests directed to Should Be Given the URI") but did not receive the new service URI. How do I use the Discovery Service of the RTC? The code that has been tried so far:

IDiscoveryHelper discoveryHelper = Discovery.getHelper("https://myserver:9443/ccm/discovery");

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

0 votes


Permanent link
It looks like you're trying to call the discovery service on the CCM app (/ccm/discovery), however the discovery service only exists on the JTS. However, if you try to call it on CCM, it will redirect you to the correct URL on the JTS with a 301 response (moved permanently). The new URL is in the Location HTTP header of the response, and should be .../jts/discovery.

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

Question asked: Jan 12 '11, 6:55 a.m.

Question was seen: 6,284 times

Last updated: Jan 12 '11, 6:55 a.m.

Confirmation Cancel Confirm