User sources are necessary for user authentication in apps. They set up secure access and sign-in steps. To let users sign into an application, you need to add a user source.
We’ll show you how to handle user sources in a Baserow application here.
When you add a user source, you’re deciding how users will log into the application. You’ll adjust the settings for signing in. With these, users can enter their usernames and passwords to get into the application and use the data.
You’ll find a list of all the user sources you’ve connected, along with a button to add a new one. This makes it easy to manage who can access the application and how they do it.
The login element allows users to access an application with secure credentials. Learn more about the login element.
Adding a user source allows the application to recognize and authenticate users effectively.
Go to the Settings → Users page.
Click on Add user source.
Choose the type of user source you want to add.
Select an integration from the dropdown menu or click Add new integration directly. Learn more about integrations and how to configure them.
Click Create.
After you create a user source, the user settings will become available.
To edit the user source for authentication, follow these steps:
Navigate to Application settings → Users.
Locate the user source that you want to edit.
Click the option to edit or modify the existing user source.
Review the integration details, including the integration with your database.
Specify the database and table from your workspace that you want to use for user authentication. The items in the list can be sorted and filtered according to the sorting and filtering configuration of the default view.
Select the appropriate fields in the table that match the user information. Typically, the email field is used for identification purposes.
You can enable multiple authentication methods simultaneously:
Email/Password: Will allow users to authenticate using their email and password and select the password field from your users table as the source in the dropdown. > The password field type is a write-only field. It lets you set a password for each row. This password is stored as a hash and is never shown.
SAML SSO
Email: The attribute containing the user’s email (default: user.email) First name: The attribute for the user’s first name (default: user.first_name) Last name: The attribute for the user’s last name (default: user.last_name)
Email will be used as the username for the user First name can contain the full name if Last name is not provided Last name is optional and can be cleared to provide the full name via First name
In the “Edit provider: OpenID Connect” dialog:
Note the Callback URLs to add to your OpenID provider’s redirect URI settings >
Save the changes to update the user source configuration.
Once the user source is added and configured, users can authenticate using any of the enabled methods.