Input fields for required attributes configured via CognitoUserPool are missing.
See original GitHub issueDo 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:
- Created 5 years ago
- Reactions:1
- Comments:9 (3 by maintainers)
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.
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.