Add new User Sign Up and Sign In
We almost have everything we need to sign up and login as a user. Lets check whether the Cognito federated identities have been set up correctly.
Here we can set up Unauthenticated
roles (roles which are assumed when a user is not signed in), and Authenticated
roles (roles which are assumed when a user is signed in).
CognitoIAMUnauthenticatedRole
. This was created during lab setup.CognitoIAMAuthenticatedRole
. This was also created during lab setup.You now have everything in place to register and sign-in as a user, and then test the signed-in behaviour of the /trips microservice now that it is protected by requiring authorization.
Note that you must provide a valid email address and one that you have access to immediately, in order to retrieve the verification code you will be sent.
You can log out and then log back in again as you wish.
Note that you are shown the full trips list in a dialog, as before we secured the call.
Now, sign out using the My Account menu link, and try the Go! button again.
Note that you see the error message again, indicating that you must be signed-in to use the /trips
microservice.