Skip to content

Instantly share code, notes, and snippets.

@ryanjbaxter
Created December 10, 2014 15:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryanjbaxter/955916c8057c40eda916 to your computer and use it in GitHub Desktop.
Save ryanjbaxter/955916c8057c40eda916 to your computer and use it in GitHub Desktop.
Zuul proxy authorization
{
"timestamp": 1418224526735,
"info": {
"remote": true,
"serviceId": "reply",
"headers": {
"request": {
"content-type": "application/json;charset=utf-8",
"connection": "keep-alive",
"accept-language": "en-US,en;q=0.5",
"accept": "application/json, text/plain, */*",
"authorization": "Bearer 122",
"user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:36.0) Gecko/20100101 Firefox/36.0",
"pragma": "no-cache",
"cookie": "JSESSIONID=D0A5E5D62E851D378110EE6471A70BB1; user=%22ryanjbaxter%22; csrfHeader=%22X-CSRF-TOKEN%22; csrfToken=%22144eb288-bbe5-40da-8d41-de9ef650c3a4%22",
"cache-control": "no-cache",
"x-csrf-token": "144eb288-bbe5-40da-8d41-de9ef650c3a4",
"accept-encoding": "deflate, gzip",
"referer": "http://localhost:8282/"
},
"response": {
"X-Frame-Options": "DENY",
"Date": "Wed, 10 Dec 2014 15:15:30 GMT",
"Content-Length": "0",
"Expires": "0",
"X-XSS-Protection": "1; mode=block",
"Set-Cookie": "JSESSIONID=8536FEE4FF70CEA2744BCDA3B7FB0D0C; Path=/; HttpOnly",
"X-Application-Context": "reply:8383",
"Server": "Apache-Coyote/1.1",
"Pragma": "no-cache",
"Cache-Control": "no-cache, no-store, max-age=0, must-revalidate",
"X-Content-Type-Options": "nosniff"
}
},
"method": "POST",
"uri": "/reply",
"query": "",
"body": "{\"questionId\":\"bc5ec2a7a8aa06b0687f4b92120022b0\",\"email\":\"rbaxter85@gmail.com\",\"content\":\"dfgsdfgsdfg\"}",
"status": "200"
}
},
{
"timestamp": 1418224530711,
"info": {
"method": "POST",
"path": "/api/reply",
"headers": {
"request": {
"host": "localhost:8282",
"user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:36.0) Gecko/20100101 Firefox/36.0",
"accept": "application/json, text/plain, */*",
"accept-language": "en-US,en;q=0.5",
"accept-encoding": "gzip, deflate",
"x-csrf-token": "144eb288-bbe5-40da-8d41-de9ef650c3a4",
"content-type": "application/json;charset=utf-8",
"referer": "http://localhost:8282/",
"content-length": "103",
"cookie": "JSESSIONID=D0A5E5D62E851D378110EE6471A70BB1; user=%22ryanjbaxter%22; csrfHeader=%22X-CSRF-TOKEN%22; csrfToken=%22144eb288-bbe5-40da-8d41-de9ef650c3a4%22",
"connection": "keep-alive",
"pragma": "no-cache",
"cache-control": "no-cache"
},
"response": {
"X-Content-Type-Options": "nosniff",
"X-XSS-Protection": "1; mode=block",
"Cache-Control": "no-cache, no-store, max-age=0, must-revalidate",
"Pragma": "no-cache",
"Expires": "0",
"X-Frame-Options": "DENY",
"X-Application-Context": "web:8282",
"Date": "Wed, 10 Dec 2014 15:15:30 GMT",
"Set-Cookie": "JSESSIONID=8536FEE4FF70CEA2744BCDA3B7FB0D0C; Path=/; HttpOnly",
"status": "200"
}
}
}
},
{
"timestamp": 1418224547513,
"info": {
"remote": true,
"serviceId": "reply",
"headers": {
"request": {
"cache-control": "no-cache",
"cookie": "JSESSIONID=8536FEE4FF70CEA2744BCDA3B7FB0D0C; user=%22ryanjbaxter%22; csrfHeader=%22X-CSRF-TOKEN%22; csrfToken=%22144eb288-bbe5-40da-8d41-de9ef650c3a4%22",
"content-type": "application/json;charset=utf-8",
"connection": "keep-alive",
"x-csrf-token": "144eb288-bbe5-40da-8d41-de9ef650c3a4",
"accept-language": "en-US,en;q=0.5",
"accept": "application/json, text/plain, */*",
"user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:36.0) Gecko/20100101 Firefox/36.0",
"referer": "http://localhost:8282/",
"accept-encoding": "deflate, gzip",
"pragma": "no-cache"
},
"response": {
"X-Frame-Options": "DENY",
"Date": "Wed, 10 Dec 2014 15:15:47 GMT",
"Transfer-Encoding": "chunked",
"Expires": "0",
"X-XSS-Protection": "1; mode=block",
"Connection": "close",
"Content-Type": "application/json;charset=UTF-8",
"X-Application-Context": "reply:8383",
"Server": "Apache-Coyote/1.1",
"Pragma": "no-cache",
"Cache-Control": "no-cache, no-store, max-age=0, must-revalidate",
"X-Content-Type-Options": "nosniff"
}
},
"method": "POST",
"uri": "/reply",
"query": "",
"body": "{\"questionId\":\"bc5ec2a7a8aa06b0687f4b9212002031\",\"email\":\"rbaxter85@gmail.com\",\"content\":\"sdfawefasdf\"}",
"status": "400"
}
},
{
"timestamp": 1418224547560,
"info": {
"method": "POST",
"path": "/api/reply",
"headers": {
"request": {
"host": "localhost:8282",
"user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:36.0) Gecko/20100101 Firefox/36.0",
"accept": "application/json, text/plain, */*",
"accept-language": "en-US,en;q=0.5",
"accept-encoding": "gzip, deflate",
"x-csrf-token": "144eb288-bbe5-40da-8d41-de9ef650c3a4",
"content-type": "application/json;charset=utf-8",
"referer": "http://localhost:8282/",
"content-length": "103",
"cookie": "JSESSIONID=8536FEE4FF70CEA2744BCDA3B7FB0D0C; user=%22ryanjbaxter%22; csrfHeader=%22X-CSRF-TOKEN%22; csrfToken=%22144eb288-bbe5-40da-8d41-de9ef650c3a4%22",
"connection": "keep-alive",
"pragma": "no-cache",
"cache-control": "no-cache"
},
"response": {
"X-Content-Type-Options": "nosniff",
"X-XSS-Protection": "1; mode=block",
"Cache-Control": "no-cache, no-store, max-age=0, must-revalidate",
"Pragma": "no-cache",
"Expires": "0",
"X-Frame-Options": "DENY",
"X-Application-Context": "web:8282",
"Date": "Wed, 10 Dec 2014 15:15:47 GMT",
"Content-Type": "application/json;charset=UTF-8",
"Transfer-Encoding": "chunked",
"Connection": "close",
"status": "400"
}
}
}
},
{
"timestamp": 1418224565456,
"info": {
"remote": true,
"serviceId": "sessions",
"headers": {
"request": {
"cookie": "JSESSIONID=8536FEE4FF70CEA2744BCDA3B7FB0D0C; user=%22ryanjbaxter%22; csrfHeader=%22X-CSRF-TOKEN%22; csrfToken=%22144eb288-bbe5-40da-8d41-de9ef650c3a4%22",
"connection": "keep-alive",
"x-csrf-token": "144eb288-bbe5-40da-8d41-de9ef650c3a4",
"accept-language": "en-US,en;q=0.5",
"accept": "application/json, text/plain, */*",
"user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:36.0) Gecko/20100101 Firefox/36.0",
"referer": "http://localhost:8282/",
"accept-encoding": "deflate, gzip"
},
"response": {
"X-Frame-Options": "DENY",
"Date": "Wed, 10 Dec 2014 15:16:05 GMT",
"Transfer-Encoding": "chunked",
"Expires": "0",
"X-XSS-Protection": "1; mode=block",
"Content-Type": "application/json;charset=UTF-8",
"X-Application-Context": "sessions",
"Server": "Apache-Coyote/1.1",
"Pragma": "no-cache",
"Cache-Control": "no-cache, no-store, max-age=0, must-revalidate",
"X-Content-Type-Options": "nosniff"
}
},
"method": "GET",
"uri": "/sessions",
"query": "userId=ryanjbaxter&user=user&",
"status": "200"
}
},
{
"timestamp": 1418224565485,
"info": {
"method": "GET",
"path": "/api/sessions",
"headers": {
"request": {
"host": "localhost:8282",
"user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:36.0) Gecko/20100101 Firefox/36.0",
"accept": "application/json, text/plain, */*",
"accept-language": "en-US,en;q=0.5",
"accept-encoding": "gzip, deflate",
"x-csrf-token": "144eb288-bbe5-40da-8d41-de9ef650c3a4",
"referer": "http://localhost:8282/",
"cookie": "JSESSIONID=8536FEE4FF70CEA2744BCDA3B7FB0D0C; user=%22ryanjbaxter%22; csrfHeader=%22X-CSRF-TOKEN%22; csrfToken=%22144eb288-bbe5-40da-8d41-de9ef650c3a4%22",
"connection": "keep-alive"
},
"response": {
"X-Content-Type-Options": "nosniff",
"X-XSS-Protection": "1; mode=block",
"Cache-Control": "no-cache, no-store, max-age=0, must-revalidate",
"Pragma": "no-cache",
"Expires": "0",
"X-Frame-Options": "DENY",
"X-Application-Context": "web:8282",
"Date": "Wed, 10 Dec 2014 15:16:05 GMT",
"Content-Type": "application/json;charset=UTF-8",
"Transfer-Encoding": "chunked",
"status": "200"
}
}
}
},
{
"timestamp": 1418224571779,
"info": {
"remote": true,
"serviceId": "sessions",
"headers": {
"request": {
"cache-control": "no-cache",
"cookie": "JSESSIONID=8536FEE4FF70CEA2744BCDA3B7FB0D0C; user=%22ryanjbaxter%22; csrfHeader=%22X-CSRF-TOKEN%22; csrfToken=%22144eb288-bbe5-40da-8d41-de9ef650c3a4%22",
"content-type": "application/json;charset=utf-8",
"connection": "keep-alive",
"x-csrf-token": "144eb288-bbe5-40da-8d41-de9ef650c3a4",
"accept-language": "en-US,en;q=0.5",
"accept": "application/json, text/plain, */*",
"user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:36.0) Gecko/20100101 Firefox/36.0",
"referer": "http://localhost:8282/",
"accept-encoding": "deflate, gzip",
"pragma": "no-cache"
},
"response": {
"X-Frame-Options": "DENY",
"WWW-Authenticate": "Bearer realm=\"oauth2-resource\", error=\"unauthorized\", error_description=\"An Authentication object was not found in the SecurityContext\"",
"Date": "Wed, 10 Dec 2014 15:16:11 GMT",
"Transfer-Encoding": "chunked",
"Expires": "0",
"X-XSS-Protection": "1; mode=block",
"Content-Type": "application/json",
"Server": "Apache-Coyote/1.1",
"Pragma": [
"no-cache",
"no-cache"
],
"Cache-Control": [
"no-cache, no-store, max-age=0, must-revalidate",
"no-store"
],
"X-Content-Type-Options": "nosniff"
}
},
"method": "POST",
"uri": "/sessions",
"query": "",
"body": "{\"title\":\"fdghfg\",\"presenter\":\"hdfghdfg\",\"conference\":\"fghfdg\",\"sessionDate\":1419483600000,\"userId\":\"ryanjbaxter\"}",
"status": "401"
}
},
{
"timestamp": 1418224571802,
"info": {
"method": "POST",
"path": "/api/sessions",
"headers": {
"request": {
"host": "localhost:8282",
"user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:36.0) Gecko/20100101 Firefox/36.0",
"accept": "application/json, text/plain, */*",
"accept-language": "en-US,en;q=0.5",
"accept-encoding": "gzip, deflate",
"x-csrf-token": "144eb288-bbe5-40da-8d41-de9ef650c3a4",
"content-type": "application/json;charset=utf-8",
"referer": "http://localhost:8282/",
"content-length": "114",
"cookie": "JSESSIONID=8536FEE4FF70CEA2744BCDA3B7FB0D0C; user=%22ryanjbaxter%22; csrfHeader=%22X-CSRF-TOKEN%22; csrfToken=%22144eb288-bbe5-40da-8d41-de9ef650c3a4%22",
"connection": "keep-alive",
"pragma": "no-cache",
"cache-control": "no-cache"
},
"response": {
"X-Content-Type-Options": "nosniff",
"X-XSS-Protection": "1; mode=block",
"Cache-Control": "no-cache, no-store, max-age=0, must-revalidate",
"Pragma": "no-cache",
"Expires": "0",
"X-Frame-Options": "DENY",
"X-Application-Context": "web:8282",
"WWW-Authenticate": "Bearer realm=\"oauth2-resource\", error=\"unauthorized\", error_description=\"An Authentication object was not found in the SecurityContext\"",
"Date": "Wed, 10 Dec 2014 15:16:11 GMT",
"Content-Type": "application/json;charset=UTF-8",
"Transfer-Encoding": "chunked",
"status": "401"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment