Skip to content

Instantly share code, notes, and snippets.

@nicolas-raoul
Created December 15, 2016 09:52
Show Gist options
  • Save nicolas-raoul/5ff26f37a95bc8088c6af7fe6ea5e468 to your computer and use it in GitHub Desktop.
Save nicolas-raoul/5ff26f37a95bc8088c6af7fe6ea5e468 to your computer and use it in GitHub Desktop.
POST /openam/json/authenticate?realm=/ HTTP/1.1
Host: idp:8080
Connection: keep-alive
Content-Length: 696
Accept-API-Version: protocol=1.0,resource=2.0
Origin: http://idp:8080
X-Password: anonymous
X-Username: anonymous
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/53.0.2785.143 Chrome/53.0.2785.143 Safari/537.36
Content-Type: application/json
Accept: application/json, text/javascript, */*; q=0.01
Cache-Control: no-cache
X-Requested-With: XMLHttpRequest
X-NoSession: true
Referer: http://idp:8080/openam/XUI/
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.8,fr;q=0.6,ja;q=0.4
Cookie: JSESSIONID=28A9C40FCFF334A2B6AEC9F4D94F739B; SimpleSAMLAuthToken=_7dcb534162864a5d8dae73cd9243ddb7f0c4a1bb74; PHPSESSID=bfbf01a6c72f3f22c8b8e24a5500d660; i18next=en-US; amlbcookie=01
{"authId":"eyAidHlwIjogIkpXVCIsICJhbGciOiAiSFMyNTYiIH0.eyAib3RrIjogInJnbWhvNGFtMjdkcDV0ZnYxdm00OGtiaDVlIiwgInJlYWxtIjogImRjPW9wZW5hbSxkYz1mb3JnZXJvY2ssZGM9b3JnIiwgInNlc3Npb25JZCI6ICJBUUlDNXdNMkxZNFNmY3c1VGd6Vm05RzRoTlNkTk9raFNlTmlxTEEyNFlFUXN4RS4qQUFKVFNRQUNNREVBQWxOTEFCTTFNakUyT1RNMU9EazBOVEk1TURneU1UZzVBQUpUTVFBQSoiIH0.rNBI7TBAaArXcrpFdKjTnD-1jISMYFUexOOhGXy5dmU","template":"","stage":"DataStore1","header":"Sign in to OpenAM","callbacks":[{"type":"NameCallback","output":[{"name":"prompt","value":"User Name:"}],"input":[{"name":"IDToken1","value":"amAdmin"}]},{"type":"PasswordCallback","output":[{"name":"prompt","value":"Password:"}],"input":[{"name":"IDToken2","value":"adminadmin"}]}]}HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Cache-Control: no-cache, no-store, must-revalidate
Content-API-Version: resource=2.0
Expires: 0
Pragma: no-cache
Content-Type: application/json;charset=UTF-8
Content-Length: 151
Date: Thu, 15 Dec 2016 09:25:54 GMT
{"tokenId":"AQIC5wM2LY4SfcwJ93Greleai-Koiet0kjXs7hiaBA-Ybsk.*AAJTSQACMDEAAlNLABQtMzE1NzkzMzE5OTI4MDU5OTc5MAACUzEAAA..*","successUrl":"/openam/console"}POST /openam/json/users?_action=idFromSession&realm=/ HTTP/1.1
Host: idp:8080
Connection: keep-alive
Content-Length: 0
Accept-API-Version: protocol=1.0,resource=2.0
Origin: http://idp:8080
X-Password: anonymous
X-Username: anonymous
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/53.0.2785.143 Chrome/53.0.2785.143 Safari/537.36
Content-Type: application/json
Accept: application/json, text/javascript, */*; q=0.01
Cache-Control: no-cache
X-Requested-With: XMLHttpRequest
X-NoSession: true
Referer: http://idp:8080/openam/XUI/
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.8,fr;q=0.6,ja;q=0.4
Cookie: JSESSIONID=28A9C40FCFF334A2B6AEC9F4D94F739B; SimpleSAMLAuthToken=_7dcb534162864a5d8dae73cd9243ddb7f0c4a1bb74; PHPSESSID=bfbf01a6c72f3f22c8b8e24a5500d660; i18next=en-US; amlbcookie=01; iPlanetDirectoryPro=AQIC5wM2LY4SfcwJ93Greleai-Koiet0kjXs7hiaBA-Ybsk.*AAJTSQACMDEAAlNLABQtMzE1NzkzMzE5OTI4MDU5OTc5MAACUzEAAA..*
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Cache-Control: no-cache
Content-API-Version: resource=2.1
Content-Type: application/json;charset=UTF-8
Transfer-Encoding: chunked
Date: Thu, 15 Dec 2016 09:25:54 GMT
23f
{"id":"amAdmin","realm":"/","dn":"id=amAdmin,ou=user,dc=openam,dc=forgerock,dc=org","successURL":"/openam/console","fullLoginURL":"/openam/UI/Login?goto=%2Fopenam%2FSSORedirect%2FmetaAlias%2Fidp%3FReqID%3Da41de50e29c99ff3422f82b7g660ch6%26index%3Dnull%26acsURL%3Dhttp%253A%252F%252Fthesp%253A8080%252Fuserweb%252Fsaml%252FSSO%252Falias%252Fbpm%26spEntityID%3Dhttp%253A%252F%252Fthesp%253A8080%252Fuserweb%252F%26binding%3Durn%253Aoasis%253Anames%253Atc%253ASAML%253A2.0%253Abindings%253AHTTP-POST&forward=true&spEntityID=http%3A%2F%2Fthesp%3A8080%2Fuserweb%2F&realm=%2F&"}
0
GET /openam/json/users/amAdmin?realm=/ HTTP/1.1
Host: idp:8080
Connection: keep-alive
Accept-API-Version: protocol=1.0,resource=2.0
X-Password: anonymous
X-Username: anonymous
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/53.0.2785.143 Chrome/53.0.2785.143 Safari/537.36
Content-Type: application/json
Accept: application/json, text/javascript, */*; q=0.01
Cache-Control: no-cache
X-Requested-With: XMLHttpRequest
X-NoSession: true
Referer: http://idp:8080/openam/XUI/
Accept-Encoding: gzip, deflate, sdch
Accept-Language: en-US,en;q=0.8,fr;q=0.6,ja;q=0.4
Cookie: JSESSIONID=28A9C40FCFF334A2B6AEC9F4D94F739B; SimpleSAMLAuthToken=_7dcb534162864a5d8dae73cd9243ddb7f0c4a1bb74; PHPSESSID=bfbf01a6c72f3f22c8b8e24a5500d660; i18next=en-US; amlbcookie=01; iPlanetDirectoryPro=AQIC5wM2LY4SfcwJ93Greleai-Koiet0kjXs7hiaBA-Ybsk.*AAJTSQACMDEAAlNLABQtMzE1NzkzMzE5OTI4MDU5OTc5MAACUzEAAA..*
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Cache-Control: no-cache
Content-API-Version: resource=2.1
ETag: "1923056609"
Content-Type: application/json;charset=UTF-8
Transfer-Encoding: chunked
Date: Thu, 15 Dec 2016 09:25:54 GMT
{"username":"amAdmin","realm":"/","sunIdentityMSISDNNumber":[],"telephoneNumber":[],"mail":[],"iplanet-am-user-alias-list":[],"roles":["ui-realm-admin","ui-global-admin"],"givenName":["amAdmin"],"dn":["uid=amAdmin,ou=people,dc=openam,dc=forgerock,dc=org"],"cn":["amAdmin"],"employeeNumber":[],"postalAddress":[],"iplanet-am-user-success-url":[],"universalid":["id=amAdmin,ou=user,dc=openam,dc=forgerock,dc=org"],"inetUserStatus":["Active"],"sn":["amAdmin"],"iplanet-am-user-failure-url":[]}
POST /openam/json/users?_action=validateGoto HTTP/1.1
Host: idp:8080
Connection: keep-alive
Content-Length: 277
Accept-API-Version: protocol=1.0,resource=2.0
Origin: http://idp:8080
X-Password: anonymous
X-Username: anonymous
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/53.0.2785.143 Chrome/53.0.2785.143 Safari/537.36
Content-Type: application/json
Accept: application/json, text/javascript, */*; q=0.01
Cache-Control: no-cache
X-Requested-With: XMLHttpRequest
X-NoSession: true
Referer: http://idp:8080/openam/XUI/
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.8,fr;q=0.6,ja;q=0.4
Cookie: JSESSIONID=28A9C40FCFF334A2B6AEC9F4D94F739B; SimpleSAMLAuthToken=_7dcb534162864a5d8dae73cd9243ddb7f0c4a1bb74; PHPSESSID=bfbf01a6c72f3f22c8b8e24a5500d660; i18next=en-US; amlbcookie=01; iPlanetDirectoryPro=AQIC5wM2LY4SfcwJ93Greleai-Koiet0kjXs7hiaBA-Ybsk.*AAJTSQACMDEAAlNLABQtMzE1NzkzMzE5OTI4MDU5OTc5MAACUzEAAA..*
{"goto":"/SSORedirect/metaAlias/idp?ReqID=a41de50e29c99ff3422f82b7g660ch6&index=null&acsURL=http%3A%2F%2Fthesp%3A8080%2Fuserweb%2Fsaml%2FSSO%2Falias%2Fbpm&spEntityID=http%3A%2F%2Fthesp%3A8080%2Fuserweb%2F&binding=urn%3Aoasis%3Anames%3Atc%3ASAML%3A2.0%3Abindings%3AHTTP-POST"}
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Cache-Control: no-cache
Content-API-Version: resource=2.1
Content-Type: application/json;charset=UTF-8
Transfer-Encoding: chunked
Date: Thu, 15 Dec 2016 09:25:54 GMT
{"successURL":"/SSORedirect/metaAlias/idp?ReqID=a41de50e29c99ff3422f82b7g660ch6&index=null&acsURL=http%3A%2F%2Fthesp%3A8080%2Fuserweb%2Fsaml%2FSSO%2Falias%2Fbpm&spEntityID=http%3A%2F%2Fthesp%3A8080%2Fuserweb%2F&binding=urn%3Aoasis%3Anames%3Atc%3ASAML%3A2.0%3Abindings%3AHTTP-POST"}
GET /openam/SSORedirect/metaAlias/idp?ReqID=a41de50e29c99ff3422f82b7g660ch6&index=null&acsURL=http%3A%2F%2Fthesp%3A8080%2Fuserweb%2Fsaml%2FSSO%2Falias%2Fbpm&spEntityID=http%3A%2F%2Fthesp%3A8080%2Fuserweb%2F&binding=urn%3Aoasis%3Anames%3Atc%3ASAML%3A2.0%3Abindings%3AHTTP-POST HTTP/1.1
Host: idp:8080
Connection: keep-alive
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/53.0.2785.143 Chrome/53.0.2785.143 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Referer: http://idp:8080/openam/XUI/
Accept-Encoding: gzip, deflate, sdch
Accept-Language: en-US,en;q=0.8,fr;q=0.6,ja;q=0.4
Cookie: JSESSIONID=28A9C40FCFF334A2B6AEC9F4D94F739B; SimpleSAMLAuthToken=_7dcb534162864a5d8dae73cd9243ddb7f0c4a1bb74; PHPSESSID=bfbf01a6c72f3f22c8b8e24a5500d660; i18next=en-US; amlbcookie=01; iPlanetDirectoryPro=AQIC5wM2LY4SfcwJ93Greleai-Koiet0kjXs7hiaBA-Ybsk.*AAJTSQACMDEAAlNLABQtMzE1NzkzMzE5OTI4MDU5OTc5MAACUzEAAA..*
HTTP/1.1 500 Internal Server Error
Server: Apache-Coyote/1.1
Content-Type: text/html;charset=ISO-8859-1
Content-Language: en
Content-Length: 1081
Date: Thu, 15 Dec 2016 09:25:54 GMT
Connection: close
<html><head><title>Apache Tomcat/7.0.72 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 500 - Unable to do Single Sign On or Federation.</h1><HR size="1" noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b> <u>Unable to do Single Sign On or Federation.</u></p><p><b>description</b> <u>The server encountered an internal error that prevented it from fulfilling this request.</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/7.0.72</h3></body></html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment