{"action":"created","issue":{"url":"https://api.github.com/repos/awslabs/aws-cognito-angular-quickstart/issues/50","repository_url":"https://api.github.com/repos/awslabs/aws-cognito-angular-quickstart","labels_url":"https://api.github.com/repos/awslabs/aws-cognito-angular-quickstart/issues/50/labels{/name}","comments_url":"https://api.github.com/repos/awslabs/aws-cognito-angular-quickstart/issues/50/comments","events_url":"https://api.github.com/repos/awslabs/aws-cognito-angular-quickstart/issues/50/events","html_url":"https://github.com/awslabs/aws-cognito-angular-quickstart/issues/50","id":213097199,"number":50,"title":"JWT API gateway getting \"not a valid key=value pair (missing equal-sign) in Authorization header\"","user":{"login":"suibinz","id":3422339,"avatar_url":"https://avatars1.githubusercontent.com/u/3422339?v=4","gravatar_id":"","url":"https://api.github.com/users/suibinz","html_url":"https://github.com/suibinz","followers_url":"https://api.github.com/users/suibinz/followers","following_url":"https://api.github.com/users/suibinz/following{/other_user}","gists_url":"https://api.github.com/users/suibinz/gists{/gist_id}","starred_url":"https://api.github.com/users/suibinz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/suibinz/subscriptions","organizations_url":"https://api.github.com/users/suibinz/orgs","repos_url":"https://api.github.com/users/suibinz/repos","events_url":"https://api.github.com/users/suibinz/events{/privacy}","received_events_url":"https://api.github.com/users/suibinz/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2017-03-09T16:47:55Z","updated_at":"2018-02-11T18:41:08Z","closed_at":"2017-03-10T15:44:00Z","author_association":"NONE","body":"My scenario is a simple API gateway to talk to DDB. Cognito is use to authenticate users. With authorization disable, everything works fine.\r\n\r\nI use this quick start to get a JWT token and connect to my user pool. That works fine. The ID token can be verified with API Gateway Authorizer. But if I use the token to \"curl -H \"Authorizer Bearer [token]\" for a simple GET, I am getting:\r\n\r\n{message: \"...not a valid key=value pair (missing equal-sign) in Authorization header...\"\r\n\r\nQuestions are in a few folds:\r\n1) some forums vaguely indicate that being an issue with CloudFront handling http header and it is not a feature supported by CF - that can not be true, can it - it is a simple common use case?\r\n2) interestingly, if I use the api gateway builtin \"Test\", (Request Method being set with Authorizer), it seems that  the test is not going through the Cognito Authorizer - i.e. without passing the token, I am still getting the 200 response. Why is that?\r\n3) which JWT token (access or id) should be used for Cognito?\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/awslabs/aws-cognito-angular-quickstart/issues/comments/364776041","html_url":"https://github.com/awslabs/aws-cognito-angular-quickstart/issues/50#issuecomment-364776041","issue_url":"https://api.github.com/repos/awslabs/aws-cognito-angular-quickstart/issues/50","id":364776041,"user":{"login":"kazimanzurrashid","id":115591,"avatar_url":"https://avatars1.githubusercontent.com/u/115591?v=4","gravatar_id":"","url":"https://api.github.com/users/kazimanzurrashid","html_url":"https://github.com/kazimanzurrashid","followers_url":"https://api.github.com/users/kazimanzurrashid/followers","following_url":"https://api.github.com/users/kazimanzurrashid/following{/other_user}","gists_url":"https://api.github.com/users/kazimanzurrashid/gists{/gist_id}","starred_url":"https://api.github.com/users/kazimanzurrashid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kazimanzurrashid/subscriptions","organizations_url":"https://api.github.com/users/kazimanzurrashid/orgs","repos_url":"https://api.github.com/users/kazimanzurrashid/repos","events_url":"https://api.github.com/users/kazimanzurrashid/events{/privacy}","received_events_url":"https://api.github.com/users/kazimanzurrashid/received_events","type":"User","site_admin":false},"created_at":"2018-02-11T18:41:08Z","updated_at":"2018-02-11T18:41:08Z","author_association":"NONE","body":"This issue exists in api-gateway http delete regardless you use cognito or custom api-gateway authorizer."}}
{"actor":{"display_login":"kazimanzurrashid"}}