Chapter 1:
Add the users service

Click the following link to clone the news aggregator app to use as a starting point.

You don’t need to have completed the News Aggregator tutorial to do this tutorial.

However, you may want to complete one of the ‘Start Here’ tutorials if you haven’t yet.

We’ll use Anvil’s built-in Users Service to manage signup and login with a single line of Python.

There are various sign-in options included in the Users Service, including two factor authentication, Google, Facebook, Microsoft Azure AD, Office 365 and more. You can find all the sign-in options here.

Step 1: Add the Users Service

Let’s start by adding the Users Service.

In the panel on the left (the App Browser), click the ‘+’ next to ‘Services’, then select the Users service.

You’ll see a screen which allows you to select from the available authentication methods, and provides you with some configuration options. For now, let’s choose the following:

Supported sign-in methods:

  • Email + password

New user registration:

  • Allow visitors to sign up
  • New user accounts can be used right away

Your setup should look something like this:

That’s the Users Service set up and ready to go. Nice work!

On to Chapter 2 where we will link news articles to users.

Chapter complete

That’s the Users Service set up and ready to go. Nice work! On to Chapter 2.