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

How to set up auth without username #1041

Closed
janhesters opened this Issue Mar 14, 2019 · 8 comments

Comments

Projects
None yet
5 participants
@janhesters
Copy link

commented Mar 14, 2019

** Which Category is your question related to? **
Auth

** What AWS Services are you utilizing? **
Cognito

** Provide additional details e.g. code snippets **
I'm building an app using React. I ran aws add auth and chose the defaults. I added the withAuthenticator HOC. When I created a new account I noticed, that I have to sign up with a user name. I want my auth flow to be just email, password and telephone. How do I do that?

@jordanranz

This comment has been minimized.

Copy link
Contributor

commented Mar 14, 2019

To clarify did you run aws add auth or amplify add auth?

@janhesters

This comment has been minimized.

Copy link
Author

commented Mar 14, 2019

@jordanranz amplify add auth. I'm sorry, I mispelled 😮

@powerful23

This comment has been minimized.

Copy link
Contributor

commented Mar 14, 2019

@janhesters You can try to customize the sign up component: https://aws-amplify.github.io/docs/js/react#signup-configuration

This issue is also related to #104

@janhesters

This comment has been minimized.

Copy link
Author

commented Mar 14, 2019

@powerful23 Thank you for the answer and thank you for pointing me to that issue. That is exactly what I'm looking for!

Please correct me if I'm wrong, but from what I can tell, there is currently no way to just have an email without username using the amplify CLI. You have to sign up an cognito user pool manually along with modifying the <Authenticator /> (in React). Is this true?

Lastly, it seems like this is a common concern. Do you know whether the AWS Amplify team is working on this? And if not, could it be possible to at least include setup instructions in the docs? (I will voluntarily create a PR, if I figure out how to set up AWS Amplify with just E-Mail auth.)

@janhesters

This comment has been minimized.

Copy link
Author

commented Mar 14, 2019

PS: Solved it. But it is a very unsatisfying way of solving it and would be cool if the CLI supports this out of the box.

@undefobj undefobj transferred this issue from aws-amplify/amplify-js Mar 14, 2019

@undefobj undefobj added the auth label Mar 14, 2019

@undefobj undefobj added this to the AdminAuth milestone Mar 14, 2019

@undefobj

This comment has been minimized.

Copy link
Contributor

commented Mar 14, 2019

@janhesters I transfered this issue to the CLI repo as this is being actively worked on already. Please see the RFC here: #766

cc @kaustavghosh06

@janhesters

This comment has been minimized.

Copy link
Author

commented Mar 14, 2019

@undefobj Thank you!

@kaustavghosh06

This comment has been minimized.

Copy link
Contributor

commented Apr 3, 2019

@janhesters With our new version of the CLI we've introduced the ability for users to select how they want users to sing in upfront as a part of the default flow instead of setting the username attribute as a default in the default flow (which is immutable unfortunately after the creation of the userpool since that is a restriction from the Cognito service). Please feel free to check it out and re-open/comment on this issue if you see a problem with it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.