Create a User

4. Create a new user for your user pool

Note: Instead of having you write the browser-side code for managing the registration, verification, and sign in flows, we provide a working implementation in the assets you deployed in the first module by using the AWS Amplify Authentication UI component.

The Authenticator component provides basic login/logout functionality for an application, as well as confirmation steps for new user registration and user login.

Usage: <amplify-authenticator></amplify-authenticator>

Implementation Validation

✅ Step-by-step directions

  1. Visit /auth under your website domain, or choose the Giddy Up! button on the homepage of your site.

  2. Click on the Create Account link at the bottom of the sign in box.

  3. Complete the registration form and choose Create Account. You can use your own email or enter a fake email. Make sure to choose a password that contains at least one upper-case letter, a number, and a special character. Don’t forget the password you entered for later. You should see an alert that confirms that your user has been created.

⚠️ If you get an Authentication Error this is likely because your changes have not finished deploying.

  1. Confirm your new user using one of the two following methods.

    1. If you used an email address you control, you can complete the account verification process by entering the verification code that is emailed to you. Please note, the verification email may end up in your spam folder. For real deployments we recommend configuring your user pool to use Amazon Simple Email Service to send emails from a domain you own.
  2. If you used a dummy email address, you must confirm the user manually through the Cognito console.

    1. From the AWS console, click Services then select Cognito under Security, Identity & Compliance.
    2. Choose Manage your User Pools
    3. Select the WildRydes user pool and click Users and groups in the left navigation bar.
    4. You should see a user corresponding to the email address that you submitted through the registration page. Choose that username to view the user detail page.
    5. Choose Confirm user to finalize the account creation process.
  3. After confirming the new user using either the verrification code or the Cognito console, click on the back to sign in link or refresh the /auth page and log in using the email address and password you entered during the registration step.

  4. If successful you should be redirected to /ride. You should see a notification that the API is not configured.

    Successful login screenshot