Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cognito User Pools #31

Closed
AdonousTech opened this issue Aug 19, 2016 · 2 comments
Closed

Cognito User Pools #31

AdonousTech opened this issue Aug 19, 2016 · 2 comments

Comments

@AdonousTech
Copy link

AdonousTech commented Aug 19, 2016

Hi Michael,

Have you tested against Cognito User Pools by chance? I am trying to piece together a working call, but keep getting a 504 Gateway Timeout error. I'm guessing on x-amz-target and content-type headers because there's no docs yet on specific values for these parameters.

{ host: 'cognito-idp.us-east-1.amazonaws.com', path: '/', service: 'cognito-identity', body: '{"PoolName":"First Test Pool"}', headers: { 'Content-Type': 'application/x-amz-json-1.1', 'X-Amz-Target': 'CognitoIdentityServiceProvider.CreateUserPool', Host: 'cognito-idp.us-east-1.amazonaws.com', 'Content-Length': 30, 'X-Amz-Date': '20160819T223312Z', Authorization: '...', Signature='...' }, method: 'POST' }

@mhart
Copy link
Owner

mhart commented Aug 20, 2016

I haven't, unfortunately. 504 is an unusual response – it doesn't seem to match up with what would normally happen if the signature was wrong, so it must be responding to something else.

Is there an official SDK you can use to verify you've got everything right? Does the CLI support it? If so, you can try with a verbose flag to see what it's actually sending

@AdonousTech
Copy link
Author

Actually, I just found the the SDK for performing back-end operations for Cognito User Pools. I thought I was going to have to roll my own.

http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/CognitoIdentityServiceProvider.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants