Problem in setting up the catalog request, oauth
Hi I'm trying to follow example03 in https://jazz.net/wiki/pub/Main/OSLCWorkshopDownload/2012-11-26-OSLC-workshop.pdf (page 122)
// Setup the catalog request
But I have some problems in setting up the catalog request. I get the following warnings:
Any ideas on how to solve this? If I try to get services.xml via httpRequester, I get 200 OK. |
One answer
Helene
<br> After the first 2 warnings, you should see the following: <br> <br> <pre> >> Response Headers: - Server: Apache-Coyote/1.1 - set-cookie: jfs-oauth-access-token0=; Max-Age=0; Expires=Thu, 01-Jan-1970 00:00:00 GMT; Path=/rm - set-cookie: jfs-oauth-access_token-secret0=; Max-Age=0; Expires=Thu, 01-Jan-1970 00:00:00 GMT; Path=/rm - set-cookie: jfs-request-token-a5a61000ab794795b809ca8d79e323e0="UhsDgJExbNKUzMageCqsviIX4nj2ioNJ1DZnniKvI"; Version=1; Max-Age=600; Expires=Thu, 09-May-2013 21:27:43 GMT; Path=/rm - X-jazz-web-oauth-url: https://clm.jkebanking.net:9443/jts/oauth-authorize?oauth_token=a5a61000ab794795b809ca8d79e323e0 - WWW-Authenticate: OAuth realm=https://clm.jkebanking.net:9443/jts/oauth-authorize - Content-Type: text/html - Content-Length: 342 - Date: Thu, 09 May 2013 21:17:43 GMT >> Response Headers: - Server: Apache-Coyote/1.1 - Cache-Control: private - Expires: Wed, 31 Dec 1969 19:00:00 EST - Set-Cookie: JSESSIONID=23FC042E38F11D22EFA6F6AEB2A2D412; Path=/jts/; Secure; HttpOnly - X-com-ibm-team-repository-web-auth-msg: authrequired - Location: https://clm.jkebanking.net:9443/jts/authenticated/identity?redirectPath=%2Fjts%2Foauth-authorize%3Foauth_token%3Da5a61000ab794795b809ca8d79e323e0 - Content-Length: 0 - Date: Thu, 09 May 2013 21:17:43 GMT >> Response Headers: - Server: Apache-Coyote/1.1 - Cache-Control: private - Expires: Wed, 31 Dec 1969 19:00:00 EST - Set-Cookie: JazzFormAuth=Form; Path=/jts - X-com-ibm-team-repository-web-auth-msg: authrequired - Content-Type: text/html;charset=UTF-8 - Content-Length: 2867 - Date: Thu, 09 May 2013 21:17:43 GMT >> POST https://clm.jkebanking.net:9443/jts/j_security_check - Server: Apache-Coyote/1.1 - Location: https://clm.jkebanking.net:9443/jts/authenticated/identity?redirectPath=%2Fjts%2Foauth-authorize%3Foauth_token%3Da5a61000ab794795b809ca8d79e323e0 - Content-Length: 0 - Date: Thu, 09 May 2013 21:17:43 GMT >> Response Headers: - Server: Apache-Coyote/1.1 - Cache-Control: private - Expires: Wed, 31 Dec 1969 19:00:00 EST - Set-Cookie: JSESSIONID=F3CEA98DFDFD459D93D166CF42B77ED8; Path=/jts/; Secure; HttpOnly - Set-Cookie: JSESSIONIDSSO=A764B3E7185F58CD63DA6DD3D5E97832; Path=/; Secure; HttpOnly - Set-Cookie: X-com-ibm-team-foundation-auth-loop-avoidance=false - Location: https://clm.jkebanking.net:9443/jts/oauth-authorize?oauth_token=a5a61000ab794795b809ca8d79e323e0 - Content-Length: 0 - Date: Thu, 09 May 2013 21:17:43 GMT >> POST https://clm.jkebanking.net:9443/jts/j_security_check - Server: Apache-Coyote/1.1 - Content-Length: 0 - Date: Thu, 09 May 2013 21:17:43 GMT </pre> |
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.
Comments
Helene, you did get through the HttpUtils.sendGetForSecureDocument method?
Hi Bas,
Sorry for the late answer. I've had some problems logging in...
Well I'm able to get through the HttpUtils.sendGetForSecureDocument when I request for the root services docment, but not when trying to access the catalog request.
When debugging when trying to setup the catalog request
HttpGet catalogDoc = new HttpGet(serviceProviderCatalog)
I get aborted = false and exclusiveOwnerThread = null, and connRequest = null (among others).