WAS 8.5.5.1
CLM 4.0.6
>> Example03: Print out the content of the Service Providers catalog
- Root Services URI: https://rm.[server].pl:9443/rm/rootservices
- Service Providers catalog XPath expression: /rdf:Description/oslc_rm:rmServiceProviders/
@rdf:resource
- Service Provider title XPath expression: //oslc:ServiceProvider/dcterms:title
- Login: [login]
- Password: [password]
>> GET(1) https://rm.[server].pl:9443/rm/rootservices
>> Response Headers (RMCAtalog):
- X-Powered-By: Servlet/3.0
- X-RRS-servername: "0"
- OSLC-Core-Version: 2.0
- Content-Type: application/rdf+xml
- Expires: Pt, 17 lip 2015 11:03:44 CEST
- Cache-Control: public
- Content-Language: pl-PL
- Transfer-Encoding: chunked
- Date: Fri, 17 Jul 2015 08:58:44 GMT
return value of doRRCOAuth (loginWasRequired) = false
>> GET(1) https://rm.[server].pl:9443/rm/discovery/RMCatalog
lip 17, 2015 10:58:52 AM org.apache.http.client.protocol.ResponseProcessCookies processCookies
WARNING: Invalid cookie header: "Set-Cookie: jfs-request-token-2953c3055f334a5ea4200d832763b953="G6CI3axgpiYDZAyYkzsdgFAfHXGvQbOnh5kjp8UwJw"; Version=1; Max-Age=600; Expires=Fri, 17-Jul-2015 09:08:45 GMT; Path=/rm; secure". Unable to parse expires attribute: Fri
>> Response Headers (RMCAtalog):
- X-Powered-By: Servlet/3.0
- Set-Cookie: jfs-oauth-access-token0=; Max-Age=0; Expires=Thu, 01-Jan-1970 00:00:00 GMT; Path=/rm; secure
- Set-Cookie: jfs-oauth-access_token-secret0=; Max-Age=0; Expires=Thu, 01-Jan-1970 00:00:00 GMT; Path=/rm; secure
- Set-Cookie: jfs-request-token-2953c3055f334a5ea4200d832763b953="G6CI3axgpiYDZAyYkzsdgFAfHXGvQbOnh5kjp8UwJw"; Version=1; Max-Age=600; Expires=Fri, 17-Jul-2015 09:08:45 GMT; Path=/rm; secure
- X-jazz-web-oauth-url: https://clm.[server].pl:9443/jts/oauth-authorize?oauth_token=2953c3055f334a5ea4200d832763b953
- WWW-Authenticate: OAuth realm=https://clm.[server].pl:9443/jts/oauth-authorize
- Content-Type: text/html
- Content-Length: 354
- Content-Language: pl-PL
- Date: Fri, 17 Jul 2015 08:58:44 GMT
- Expires: Thu, 01 Dec 1994 16:00:00 GMT
- Cache-Control: no-cache="set-cookie, set-cookie2"
lip 17, 2015 10:58:52 AM org.apache.http.impl.client.DefaultRequestDirector handleResponse
WARNING: Authentication error: Unable to respond to any of these challenges: {oauth=WWW-Authenticate: OAuth realm=https://clm.[server].pl:9443/jts/oauth-authorize}
>> Response Headers:
- X-Powered-By: Servlet/3.0
- X-com-ibm-team-repository-web-auth-msg: authrequired
- Location: https://clm.[server].pl:9443/jts/authenticated/identity?redirectPath=%2Fjts%2Foauth-authorize%3Foauth_token%3D2953c3055f334a5ea4200d832763b953
- Content-Language: pl-PL
- Content-Length: 0
- Date: Fri, 17 Jul 2015 08:58:44 GMT
>> Response Headers:
- X-Powered-By: Servlet/3.0
- Location: https://clm.[server].pl:9443/jts/auth/authrequired
- Content-Language: pl-PL
- Content-Length: 0
- Set-Cookie: WASReqURL=https://:9443/jts/authenticated/identity?redirectPath=%252Fjts%252Foauth-authorize%253Foauth_token%253D2953c3055f334a5ea4200d832763b953; Path=/; HttpOnly
- Date: Fri, 17 Jul 2015 08:58:44 GMT
- Expires: Thu, 01 Dec 1994 16:00:00 GMT
- Cache-Control: no-cache="set-cookie, set-cookie2"
>> POST https://clm.[server].pl:9443/jts/j_security_check
- Date: Fri, 17 Jul 2015 08:58:44 GMT
- X-Powered-By: Servlet/3.0
- Location: https://clm.[server].pl:9443/jts/authenticated/identity?redirectPath=%2Fjts%2Foauth-authorize%3Foauth_token%3D2953c3055f334a5ea4200d832763b953
- Content-Language: pl-PL
- Content-Length: 0
- Set-Cookie: WASReqURL=""; Expires=Thu, 01-Dec-94 16:00:00 GMT; Path=/; HttpOnly
- Set-Cookie: LtpaToken2=/hY6DWUOJTY5JCXeT/nRMW/r514WwltHKkrgWa9xXP32kwSO4AIF3fbUBKGU5MBmUbUxCsV+BCxxzmrhrcfGd8gyvF9pqr3LiGdgVk4VP2uOmTMm5VPPikqMCvPUgSLxXdBrbcI6t4WTIgOh13cFInNX13DiVjEzYkUUA6lBI+4pdFtv0aikUBkm2MwWZdJU+MBf7RnWHAc5uB4xtB/K21tDUh7AjxkVSV4DMCxuWTGEgqukjVPk4jAriK7F8/khbRdPJYvarPSRml06iNROZcNQ90xpm2LXM+BBPxFVIhZjh3FkrterRFicyfHmm5qnoUsOMJoJwmGGezjl8Rzu8gdL0Xc6TMp8YTKPOhUCxYdBmazNtHIC+k+m1qZezV7RWMgFj5YVfHP3Mc84ni1PLmWxXlZ94eeCvtye0NFLgW0XEJSZR2G3LVcoOj5cCYtCwwHbnfqr4oUILze80rUcowN57k5UZSUlZKAtN+bcYmM8gMi9PMUK4oPn8n/KB7gmKY5pqI9DdyF9mazntl6FkJAuHG0HxtqFDUYNAnTRnQF72pwKGp3cQJfDtgjDmojk0lm01qGZDuMG2qi0aXBo+l7qUDwhsxRVNzsTonVFMGd8gVqnUlTlfztRcOytOV80YNcuoYaUADYEkz+arzB1YIGlAznMvNfv20wlj3F81XGXLwEKmr4sN+qmYcx0GV7/qcU7he/nJvThl0E6a7XfBw==; Path=/; HttpOnly
- Expires: Thu, 01 Dec 1994 16:00:00 GMT
- Cache-Control: no-cache="set-cookie, set-cookie2"
>> Response Headers:
- X-Powered-By: Servlet/3.0
- Location: https://clm.[server].pl:9443/jts/oauth-authorize?oauth_token=2953c3055f334a5ea4200d832763b953
- Content-Language: pl-PL
- Content-Length: 0
- Set-Cookie: JSESSIONID=0000ktjRWSOGgGva0lKViQtYFix:-1; Path=/; HttpOnly
- Set-Cookie: X-com-ibm-team-foundation-auth-loop-avoidance=false
- Date: Fri, 17 Jul 2015 08:58:44 GMT
- Expires: Thu, 01 Dec 1994 16:00:00 GMT
- Cache-Control: no-cache="set-cookie, set-cookie2"
>> POST (Last) https://clm.[server].pl:9443/jts/j_security_check
- X-Powered-By: Servlet/3.0
- Location: https://clm.[server].pl:9443/jts/auth/authfailed
- Content-Language: pl-PL
- Content-Length: 0
- Date: Fri, 17 Jul 2015 08:58:44 GMT
return value of doRRCOAuth (loginWasRequired) = true
Execute clone of request (method sendGetForSecureDocument)
lip 17, 2015 10:58:57 AM org.apache.http.client.protocol.ResponseProcessCookies processCookies
WARNING: Invalid cookie header: "Set-Cookie: jfs-request-token-5138f15c839a4dd7ba2aefcb5aeb11ef="L5Yiaf3WxhvwmvHhjSXYJUv8jeFZFC57n3dKDStKho4"; Version=1; Max-Age=600; Expires=Fri, 17-Jul-2015 09:08:50 GMT; Path=/rm; secure". Unable to parse expires attribute: Fri
Status - sendGetForSecure =401
Example 3 - after HttpUtils.sendGetForSecureDocument
lip 17, 2015 10:58:57 AM org.apache.http.impl.client.DefaultRequestDirector handleResponse
WARNING: Authentication error: Unable to respond to any of these challenges: {oauth=WWW-Authenticate: OAuth realm=https://clm.[server].pl:9443/jts/oauth-authorize}
- X-Powered-By: Servlet/3.0
- Set-Cookie: jfs-oauth-access-token0=; Max-Age=0; Expires=Thu, 01-Jan-1970 00:00:00 GMT; Path=/rm; secure
- Set-Cookie: jfs-oauth-access_token-secret0=; Max-Age=0; Expires=Thu, 01-Jan-1970 00:00:00 GMT; Path=/rm; secure
- Set-Cookie: jfs-request-token-5138f15c839a4dd7ba2aefcb5aeb11ef="L5Yiaf3WxhvwmvHhjSXYJUv8jeFZFC57n3dKDStKho4"; Version=1; Max-Age=600; Expires=Fri, 17-Jul-2015 09:08:50 GMT; Path=/rm; secure
- X-jazz-web-oauth-url: https://clm.[server].pl:9443/jts/oauth-authorize?oauth_token=5138f15c839a4dd7ba2aefcb5aeb11ef
- WWW-Authenticate: OAuth realm=https://clm.[server].pl:9443/jts/oauth-authorize
- Content-Type: text/html
- Content-Length: 354
- Content-Language: pl-PL
- Date: Fri, 17 Jul 2015 08:58:49 GMT
- Expires: Thu, 01 Dec 1994 16:00:00 GMT
- Cache-Control: no-cache="set-cookie, set-cookie2"
<html><head><META http-equiv="refresh" content="0;URL=https://clm.[server].pl:9443/jts/oauth-authorize?oauth_token=5138f15c839a4dd7ba2aefcb5aeb11ef"></head><body>Oauth authentication is required.<BR/> <a href="https://clm.[server].pl:9443/jts/oauth-authorize?oauth_token=5138f15c839a4dd7ba2aefcb5aeb11ef">Authenticate.</a></body></html>
Apache Tomcat
CLM 4.0.6
>> Example03: Print out the content of the Service Providers catalog
- Root Services URI: https://rm.serwer.pl:9443/rm/rootservices
- Service Providers catalog XPath expression: /rdf:Description/oslc_rm:rmServiceProviders/
@rdf:resource
- Service Provider title XPath expression: //oslc:ServiceProvider/dcterms:title
- Login: clmadm
- Password: clmadm
>> GET(1) https://rm.serwer.pl:9443/rm/rootservices
>> Response Headers (RMCAtalog):
- Server: Apache-Coyote/1.1
- X-RRS-servername: "0"
- OSLC-Core-Version: 2.0
- Expires: Pt, 17 lip 2015 11:06:08 CEST
- Cache-Control: public
- Content-Type: application/rdf+xml
- Transfer-Encoding: chunked
- Date: Fri, 17 Jul 2015 09:01:08 GMT
return value of doRRCOAuth (loginWasRequired) = false
>> GET(1) https://rm.serwer.pl:9443/rm/discovery/RMCatalog
lip 17, 2015 11:01:08 AM org.apache.http.client.protocol.ResponseProcessCookies processCookies
WARNING: Invalid cookie header: "set-cookie: jfs-request-token-de04979c4d674fa8ab02ea4001719305="9E1wnZK7YYdNHhBwnd1k4l5CvttIWLkrzdgEhk9EXz8"; Version=1; Max-Age=600; Expires=Fri, 17-Jul-2015 09:11:08 GMT; Path=/rm; secure". Unable to parse expires attribute: Fri
>> Response Headers (RMCAtalog):
- 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; secure
- set-cookie: jfs-oauth-access_token-secret0=; Max-Age=0; Expires=Thu, 01-Jan-1970 00:00:00 GMT; Path=/rm; secure
- set-cookie: jfs-request-token-de04979c4d674fa8ab02ea4001719305="9E1wnZK7YYdNHhBwnd1k4l5CvttIWLkrzdgEhk9EXz8"; Version=1; Max-Age=600; Expires=Fri, 17-Jul-2015 09:11:08 GMT; Path=/rm; secure
- X-jazz-web-oauth-url: https://jts.serwer.pl:9443/jts/oauth-authorize?oauth_token=de04979c4d674fa8ab02ea4001719305
- WWW-Authenticate: OAuth realm=https://jts.serwer.pl:9443/jts/oauth-authorize
- Content-Type: text/html
- Content-Length: 332
- Date: Fri, 17 Jul 2015 09:01:08 GMT
lip 17, 2015 11:01:08 AM org.apache.http.impl.client.DefaultRequestDirector handleResponse
WARNING: Authentication error: Unable to respond to any of these challenges: {oauth=WWW-Authenticate: OAuth realm=https://jts.serwer.pl:9443/jts/oauth-authorize}
>> Response Headers:
- Server: Apache-Coyote/1.1
- Cache-Control: private
- Expires: Thu, 01 Jan 1970 01:00:00 CET
- Set-Cookie: JSESSIONID=1C0C3BFCDC2282939402B61BAEC4CA08; Path=/jts/; Secure; HttpOnly
- X-com-ibm-team-repository-web-auth-msg: authrequired
- Location: https://jts.serwer.pl:9443/jts/authenticated/identity?redirectPath=%2Fjts%2Foauth-authorize%3Foauth_token%3Dde04979c4d674fa8ab02ea4001719305
- Content-Length: 0
- Date: Fri, 17 Jul 2015 09:01:08 GMT
>> Response Headers:
- Server: Apache-Coyote/1.1
- Cache-Control: private
- Expires: Thu, 01 Jan 1970 01:00:00 CET
- Set-Cookie: JazzFormAuth=Form; Path=/jts
- X-com-ibm-team-repository-web-auth-msg: authrequired
- Content-Type: text/html;charset=UTF-8
- Content-Length: 2003
- Date: Fri, 17 Jul 2015 09:01:08 GMT
>> POST https://jts.serwer.pl:9443/jts/j_security_check
- Server: Apache-Coyote/1.1
- Location: https://jts.serwer.pl:9443/jts/authenticated/identity?redirectPath=%2Fjts%2Foauth-authorize%3Foauth_token%3Dde04979c4d674fa8ab02ea4001719305
- Content-Length: 0
- Date: Fri, 17 Jul 2015 09:01:08 GMT
>> Response Headers:
- Server: Apache-Coyote/1.1
- Cache-Control: private
- Expires: Thu, 01 Jan 1970 01:00:00 CET
- Set-Cookie: JSESSIONID=C336F97222FCA6D748B0D65B83B911A4; Path=/jts/; Secure; HttpOnly
- Set-Cookie: JSESSIONIDSSO=DA64A42B9B62579D3347501C97931064; Path=/; Secure; HttpOnly
- Set-Cookie: X-com-ibm-team-foundation-auth-loop-avoidance=false
- Location: https://jts.serwer.pl:9443/jts/oauth-authorize?oauth_token=de04979c4d674fa8ab02ea4001719305
- Content-Length: 0
- Date: Fri, 17 Jul 2015 09:01:08 GMT
>> POST (Last) https://jts.serwer.pl:9443/jts/j_security_check
- Server: Apache-Coyote/1.1
- Content-Length: 0
- Date: Fri, 17 Jul 2015 09:01:08 GMT
return value of doRRCOAuth (loginWasRequired) = true
Execute clone of request (method sendGetForSecureDocument)
lip 17, 2015 11:01:09 AM org.apache.http.client.protocol.ResponseProcessCookies processCookies
WARNING: Invalid cookie header: "set-cookie: jfs-request-token-548d50ff120641b49160ea76fbbe5f18="pvfdgO7Dik8l12z2qxwld6VMQlObTEfEpqmvrMMtnE"; Version=1; Max-Age=600; Expires=Fri, 17-Jul-2015 09:11:09 GMT; Path=/rm; secure". Unable to parse expires attribute: Fri
lip 17, 2015 11:01:09 AM org.apache.http.impl.client.DefaultRequestDirector handleResponse
WARNING: Authentication error: Unable to respond to any of these challenges: {oauth=WWW-Authenticate: OAuth realm=https://jts.serwer.pl:9443/jts/oauth-authorize}
Status - sendGetForSecure =401
Example 3 - after HttpUtils.sendGetForSecureDocument
- 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; secure
- set-cookie: jfs-oauth-access_token-secret0=; Max-Age=0; Expires=Thu, 01-Jan-1970 00:00:00 GMT; Path=/rm; secure
- set-cookie: jfs-request-token-548d50ff120641b49160ea76fbbe5f18="pvfdgO7Dik8l12z2qxwld6VMQlObTEfEpqmvrMMtnE"; Version=1; Max-Age=600; Expires=Fri, 17-Jul-2015 09:11:09 GMT; Path=/rm; secure
- X-jazz-web-oauth-url: https://jts.serwer.pl:9443/jts/oauth-authorize?oauth_token=548d50ff120641b49160ea76fbbe5f18
- WWW-Authenticate: OAuth realm=https://jts.serwer.pl:9443/jts/oauth-authorize
- Content-Type: text/html
- Content-Length: 332
- Date: Fri, 17 Jul 2015 09:01:08 GMT
<html><head><META http-equiv="refresh" content="0;URL=https://jts.serwer.pl:9443/jts/oauth-authorize?oauth_token=548d50ff120641b49160ea76fbbe5f18"></head><body>Oauth authentication is required.<BR/> <a href="https://jts.serwer.pl:9443/jts/oauth-authorize?oauth_token=548d50ff120641b49160ea76fbbe5f18">Authenticate.</a></body></html>