amazon-archives / aws-cognito-angular-quickstart

An Angular(v5)-based QuickStart single-page app utilizing Amazon Cognito, S3, and DynamoDB (Serverless architecture)
https://cognito.budilov.com
Apache License 2.0
689 stars 304 forks source link

Authentication Role and Create Account issues #17

Closed KoldBrewEd closed 7 years ago

KoldBrewEd commented 7 years ago

Just wanted to point out the policy on aws/authrole.json is pointing to a specific account and this is causing errors to query the DDB table. I had to manually edit the policy in IAM to point to the correct table.

I am also getting the following error to create an account:

POST https://cognito-idp.ap-northeast-1.amazonaws.com/ 400 (Bad Request) 
XHR finished loading: POST "https://cognito-idp.ap-northeast-1.amazonaws.com/".scheduleTask @ zone.js:1274
result: Username cannot be of email format, since user pool is configured for email alias. @ auth.component.ts:261 

I'm trying with:

user: jdoe email: jdoe@email.com

Other than that, it works like a charm. Great stuff!

vbudilov commented 7 years ago

Hi @awsed ,

I'll include a note in the README file.

Thanks, Vladimir