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

Added the ability to set ReadAttributes & WriteAttributes for User Pool Client Settings and Added every AllowedOAuthScopes in CloudFormation YAML template file #7

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

juan-dambra
Copy link

@juan-dambra juan-dambra commented Dec 20, 2018

Hi!

First of all, thank you so much for this code! You really saved me the effort of doing it myself :)

I have added the ability to set ReadAttributes & WriteAttributes for the User Pool Client's Settings because, if you create a User Pool Client with these on and after that you set its Settings using your code, those get cleared. In:

https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_UpdateUserPoolClient.html

It mentions:

"If you don't provide a value for an attribute, it will be set to the default value."

The docs do not specify the defaults for ReadAttributes & WriteAttributes but apparently those defaults are NULL.

I also added every possible AllowedOAuthScopes in CloudFormation YAML template file since the docs (see previous link) mention the following supported values:

"phone", "email", "openid", and "Cognito"

But, in reality the supported values are the ones in this pull request.

"Cognito" is really "aws.cognito.signin.user.admin" and this made my template to fail over and over again.

Not really a problem with your code, but I figured if someone came across it and wanted (as I did) to set "aws.cognito.signin.user.admin", seeing it in the YAML will aid them in getting the proper value and not waste 2 hs. of their lives (as I did). I also reported the fault in the docs to AWS.

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

Successfully merging this pull request may close these issues.

1 participant