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 attribute for TimeZone creates a custom attribute #5866

Closed
barticus opened this issue Jan 19, 2020 · 1 comment · Fixed by #5973
Closed

Cognito attribute for TimeZone creates a custom attribute #5866

barticus opened this issue Jan 19, 2020 · 1 comment · Fixed by #5973
Assignees
Labels
@aws-cdk/aws-cognito Related to Amazon Cognito bug This issue is a bug. p1

Comments

@barticus
Copy link
Contributor

Hi,
I've created a user pool with custom schema and have used UserPoolAttribute.TIMEZONE as the attribute name.
This creates an attribute named custom:timezone but i believe it should actually have mapped to the zoneinfo standard attribute.

Reproduction Steps

Create a user pool with a schema like:

const userPool = new cognito.CfnUserPool(this, "UserPool", {
      autoVerifiedAttributes: [cognito.UserPoolAttribute.EMAIL],
      usernameAttributes: [cognito.UserPoolAttribute.EMAIL],
      schema: [{
        name: cognito.UserPoolAttribute.EMAIL,
        attributeDataType: "String",
        required: true,
        mutable: true
      }, {
        name: cognito.UserPoolAttribute.TIMEZONE,
        attributeDataType: "String",
        required: false,
        mutable: true
      }]
});

After creation, inspect the user pool in the console, there will be a "custom:timezone" attribute listed.


This is 🐛 Bug Report

@barticus barticus added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Jan 19, 2020
@barticus
Copy link
Contributor Author

Link:

netroy added a commit to netroy/aws-cdk that referenced this issue Jan 20, 2020
netroy added a commit to netroy/aws-cdk that referenced this issue Jan 21, 2020
@SomayaB SomayaB added @aws-cdk/aws-cognito Related to Amazon Cognito in-progress This issue is being actively worked on. labels Jan 21, 2020
@nija-at nija-at added p1 and removed in-progress This issue is being actively worked on. needs-triage This issue or PR still needs to be triaged. labels Jan 27, 2020
@mergify mergify bot closed this as completed in #5973 Jan 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-cognito Related to Amazon Cognito bug This issue is a bug. p1
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants