Let’s now try to login as a tenant to the sample SaaS e-commerce application and enter some data.
Check your email for the temporary credentials you recieved for the “tenant1” tenant admin, which you onboarded during Lab 2.
Select the “Tenant app” radio button in the login modal and use the temporary credentials to login. You will be asked to change your password upon logging in the first time.
Add a couple products, for example:
And create an order:
From the Fauna dashboard, navigate to the first child database. This should be the database for “tenant1”:
Examine the documents that were created in there under the product and order collections and verify that those were what you added using the UI.
Now navigate to the second child database. This should be the database for “tenant2”:
Verify that there are no documents in the product and order collections, as expected.
For good measure, logout, and login again. But now using the “tenant2” tenant admin. Add some products and orders and examine the database again to verify that the data was created in the proper child database.