Closed ionut-tanasa closed 2 years ago
Hi Ionut,
Just to ensure that we are on the same page, can you confirm that you have also configured the below attributes in the ENV file?
# AWS Cognito configurations
AWS_COGNITO_CLIENT_ID="6xxxxxxxxxxxxxxxxxxxxxxxxr"
AWS_COGNITO_CLIENT_SECRET="1xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx1"
AWS_COGNITO_USER_POOL_ID="xxxxxxxxxxxxxxxxx"
AWS_COGNITO_REGION="xxxxxxxxxxx" //optional - default value is 'us-east-1'
AWS_COGNITO_VERSION="latest" //optional - default value is 'latest'
Hi Ionut,
Just to ensure that we are on the same page, can you confirm that you have also configured the below attributes in the ENV file?
# AWS Cognito configurations AWS_COGNITO_CLIENT_ID="6xxxxxxxxxxxxxxxxxxxxxxxxr" AWS_COGNITO_CLIENT_SECRET="1xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx1" AWS_COGNITO_USER_POOL_ID="xxxxxxxxxxxxxxxxx" AWS_COGNITO_REGION="xxxxxxxxxxx" //optional - default value is 'us-east-1' AWS_COGNITO_VERSION="latest" //optional - default value is 'latest'
hey thanks for getting back to me so quickly.
yes, i did setup the keys, that's why i got so confused.
lemme know how can i help debugging this, i just followed your readme and create a cognito pool with all the defaults, nothing crazy
Thanks, Let me revert by the weekend. I presume the Cognito configuration is an issue but let me revert with more specifics.
I just tried the library on a vanilla Laravel application and it just worked. I have deployed it on https://demo.ellaisys.com/cognito/
I have not yet polished it with the right msgs, but the library works!! I would publish the Cognito configuration docs in a day or two so that it helps more.
I just tried the library on a vanilla Laravel application and it just worked. I have deployed it on https://demo.ellaisys.com/cognito/
I have not yet polished it with the right msgs, but the library works!! I would publish the Cognito configuration docs in a day or two so that it helps more.
that's awesome. i'll wait for the docs then. we can close this one.
thank you kindly.
Can you confirm that you have included these AWS IAM policies in the account that has the AWS key/secret
AmazonCognitoDeveloperAuthenticatedIdentities AmazonCognitoPowerUser AmazonESCognitoAccess
i have done the most basic setup of the package and cognito and tried to register an user. out of the box i am getting the following error:
AWS_ACCESS_KEY ID and SECRET have
Administrator access
just to rule out the permission issue.do you have any suggestions? what am i doing wrong?
i think the issue is on cognito side since the sdk is throwing the error and not your package