question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Input fields for required attributes configured via CognitoUserPool are missing.

See original GitHub issue

Do you want to request a feature or report a bug? Bug

What is the current behavior? The CognitoUserPool is configured with a required attribute like given_name,family_name or website. The AuthenticatorComponent does not provide input fields for these values in signup.

What is the expected behavior? Either the fields for the required entries are displayed automatically or this can be configured

Which versions of Amplify, and which browser / OS are affected by this issue? Did this work in previous versions? angular: 6.0.3 aws-amplify: 0.4.1 aws-amplify-angular: 0.1.1

I changed the file “node_modules/aws-amplify-angular/lib/providers/amplify.service.ts”. I changed the the line from import { Subject } from 'rxjs/Subject'; to import { Subject } from 'rxjs'; and i included the following in the index.html file of my angular project <script> if (global === undefined) { var global = window; } </script>

You can turn on the debug mode to provide more info for us by setting window.LOG_LEVEL = 'DEBUG'; in your app.

{ "[DEBUG] 26:11.34 AuthDecorator - signUp error": { "code": "InvalidParameterException", "name": "InvalidParameterException", "message": "Attributes did not conform to the schema: given_name: The attribute is required\nfamily_name: The attribute is required\nwebsite: The attribute is required\n" } }

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
mlabienieccommented, Jul 18, 2018

Thanks for the clarification and feedback, we’ll look into getting this added to the HOC. Feel free to propose a PR if you have any thoughts around the implementation.

0reactions
github-actions[bot]commented, Jun 13, 2021

This issue has been automatically locked since there hasn’t been any recent activity after it was closed. Please open a new issue for related bugs.

Looking for a help forum? We recommend joining the Amplify Community Discord server *-help channels or Discussions for those types of questions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

User pool attributes - Amazon Cognito - AWS Documentation
Attributes are pieces of information that help you identify individual users, such as name, email address, and phone number. A new user pool...
Read more >
Unable to get user attributes in the cognitoUser object after ...
I ran into this issue as well, CognitoUser was missing the attributes object. The solution was to include the aws.cognito.signin.user.admin ...
Read more >
AWS Lambda Guide - Serverless.yml Reference
Here is a list of all available properties in serverless.yml when the provider ... and managed by Serverless, but you can configure it...
Read more >
Updating user pool configuration - Amazon Cognito
To change required attributes, create a new user pool. ... command to generate JSON with blank values for the accepted input fields for...
Read more >
amazon-cognito-identity-js - npm
Start using amazon-cognito-identity-js in your project by running `npm ... Example setup for your project: // The entry module that requires ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found