How to manage user access to Softr in Baserow

Applications need data storage for important functions like user profiles, progress tracking, and other operations. In this guide, we’ll break down how to securely store confidential information with Baserow.

Baserow keeps your information and files safe with various methods. We have high-level security measures in place, including certifications. Baserow offers strong security features like password protection, token permissions, and role-based access control (RBAC). RBAC limits data access based on a user’s role, ensuring that only necessary information is accessible while protecting sensitive data.

You can also integrate your own security tools and extensions with Baserow to further protect your data. We also offer the ability to deploy Baserow on-premise, which means that you can run a database independently on your own server and you will be the only owner of all data stored there.

What we will do

In this tutorial, we will cover how to keep your Softr app secure and manageable and how to control user access.

  • Set up a Baserow database to add users
  • Generate credentials to access your Softr app
  • Sync access to users who can sign into the app using the credentials
  • Sync a Softr app with Baserow using Zapier

Let’s get into using Baserow as a backend database for Softr apps.

1. Create a Baserow database

If you haven’t already, log in to Baserow. Set up a workspace and add a database.

The first step is to create a workspace. To create a new workspace, select ‘+ Create workspace’ from the dashboard page and click the ‘Add workspace’ button. Then, add a database to the workspace.

A default table will be created when you create a new database from scratch. Add Name, Email and Created on fields to store user data.

https://baserow-backend-production20240528124524339000000001.s3.amazonaws.com/pagedown-uploads/ea4ad4cb-1f9a-4fd7-91c1-7f5949c67f2b/Screenshot\_2023-02-10\_at\_00.46.30.png

2. Create a Zap

Zapier is an automation tool that helps you automate repetitive tasks between two or more apps— without a single line of code. With Zapier, you can do more than just connect your apps - you can automate entire processes from beginning to end.

A Zap is an automated workflow that connects your apps and services together. A Zap tells your apps to follow this simple command: “When this happens, do that.” Each Zap consists of a trigger and one or more actions. A trigger is an event that starts a Zap. An action is an event a Zap performs after it is triggered.

Create a new zap

With Zapier, Baserow users can automate the transferring of their data into other apps. Start your Zapier integration by clicking ‘+ Create Zap’ from your Zapier dashboard.

Add a Baserow trigger

Set the trigger for each new row creation in our Baserow database. Here is the list of possible Zapier triggers with Baserow:

  • Trigger when a new row is created.
  • Trigger when a new row is created or an existing one is updated.
  • Trigger when an existing row is updated.

For this tutorial, we will create a Zap trigger for when a new row is created in your table.

  1. Select Baserow as the app and Row created as the Event
  2. Click Continue and proceed to sign in to your Baserow account to connect to the User database.
  3. Authenticate the Baserow API on Zapier by providing your database token in the Baserow API token field. A database token is similar to a password and allows Zapier to authenticate to Baserow to perform specific actions.

To create a database token, select the ‘API Tokens’ tab within your ‘Settings’ page then click on the ‘Create token +’ button. Input the name and select an existing workspace. Click on the ‘Create token’ button and copy the token generated.

  1. Find your Baserow table ID by clicking on the three dots next to the table. It’s the number between brackets. Enter the Baserow table ID on Zapier.

https://baserow-backend-production20240528124524339000000001.s3.amazonaws.com/pagedown-uploads/6309c4e7-06f7-47b0-a662-49354e37acad/fce9749c9f1cf859ea064e88f56f390a2272bd4b.webp

Test the trigger and configure the Action to define what happens when the initial event is triggered. Zapier will find a recent row in your Baserow API authentication account to confirm that the right account is connected and your trigger is set up correctly.

If no rows are found, create a new row in your Baserow table and test your trigger again.

Click Continue. Click the plus icon to add an Action step to your Zap.

Action A - Create a User

To add users to your Softr app, users either register for an account themselves or are assigned an account by an administrator.

In the Zap editor, click the Action step or the plus + icon to add an action.

  1. Select Softr as the app.
  2. Select Create User as the app & event. This action creates a user inside the specified Softr app in your account.
  3. Link your Softr account by entering the API key
  4. Input your custom domain or Softr subdomain in the field provided.
  5. Map the user’s Email and Full Name from your Baserow database**.**
  6. Set the Magic link to True to generate a magic link instead of a temporary password.

https://baserow-backend-production20240528124524339000000001.s3.amazonaws.com/pagedown-uploads/2c73d245-ae9b-4763-8d71-115aa8e6eb18/336c601e68c645b22521faf09d5774ad16fb4a26.webp

Magic links allow users to authenticate without entering a password. Use Magic Link to generate a unique token that your users can use to log into your app without entering a password. This is useful as the user will sign in for the first time. They can later set up the account information in their User Profile and sign in normally.

Then, click Continue. Test the action.

https://baserow-backend-production20240528124524339000000001.s3.amazonaws.com/pagedown-uploads/00e610e4-370d-44eb-889c-2a998095f949/Screenshot\_2023-02-10\_at\_00.39.14.png

That’s all. As soon as you activate your Zap, all new users added to your table will also be added to your Softr app. After setting up this action, you can select all users added to your Softr app and resend invite.

https://baserow-backend-production20240528124524339000000001.s3.amazonaws.com/pagedown-uploads/bf78db7e-8655-44ed-a157-5807ac07980f/Screenshot\_2023-02-10\_at\_01.16.30.png

When you invite them to your application, they will receive invitation emails with their login credentials (either passwords or magic links based on your selection).

When a user clicks on the magic link or enters it into the browser address bar, he or she will be logged in to your site. That’s all there is to it.

Key takeaways

You can extend this workflow to trigger an action when a user is deleted, it deletes a user from the specified Softr app. With the Delete User action, you can restrict users to protect your app.

In case you’ve run into an issue while following the tutorial, feel free to reach out to ask for help in the Baserow community.

What’s your use case? Tell us how you use Baserow