Skip to content

Instantly share code, notes, and snippets.

@youngsoul
Created March 12, 2020 01:30
Show Gist options
  • Select an option

  • Save youngsoul/8dfb3c2032d3f6d583329fd58b545eab to your computer and use it in GitHub Desktop.

Select an option

Save youngsoul/8dfb3c2032d3f6d583329fd58b545eab to your computer and use it in GitHub Desktop.
output from a Cognito User Pool Secured API Gateway
POST https://XXX.execute-api.us-east-1.amazonaws.com/test/add-note
Content-Type: application/json
{"note":"Bring home milk"}
###
POST https://XXX.execute-api.us-east-1.amazonaws.com/test/add-note
HTTP/1.1 401 Unauthorized
Date: Thu, 12 Mar 2020 01:28:44 GMT
Content-Type: application/json
Content-Length: 26
Connection: keep-alive
x-amzn-RequestId: 076122e8-4d96-46d7-8e31-e1d40e7dbd70
x-amzn-ErrorType: UnauthorizedException
x-amz-apigw-id: JQN7-H_AIAMF3Vg=
{
"message": "Unauthorized"
}
Response code: 401 (Unauthorized); Time: 20598ms; Content length: 26 bytes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment