Sign Up
Loading...

Authentication Table

An authentication table is a crucial component in Twidget that is used to store all necessary authentication information, essential for authenticating requests.

Overview

  • Purpose: To store authentication details such as email, password, token signature, and reset key.

  • Recommendation: It's recommended to use a users table for this purpose.

Use Data → Authentication to search the table's customers, suspend or resume access and manage independent sessions. See Customer authentication tools for the commands, login compatibility and session limits. These controls use this same table.

Requirements for Authentication Table

  1. Mandatory for Endpoints: An authentication table is necessary for generating authentication endpoints.

  2. Unique to Workspace: You can assign only one authentication table per workspace.

How to Assign an Authentication Table

Creating a New Table

When creating a new table, you have an option to designate it as the authentication table:

  1. Enable Authentication: Select "Enable" in the Authentication Table dropdown during table creation.

Updating an Existing Table

You can also update an existing table to become an authentication table by adjusting its settings in the table configuration.

Fields Generated by Authentication Table

When you generate authentication endpoints, the following fields are automatically created in the authentication table:

  • email: Stores user email addresses.

  • password: Stores user passwords in a hashed format for security.

  • token_signature: Stores token signatures as hashed values for added security.

  • reset_key: Stores reset keys in a hashed format for password reset operations.

Security Identifiers

In the database view:

  • The authentication table can be easily identified by a security icon on its table details.

Summary

To summarize, the authentication table in Twidget:

  • Stores critical authentication data.

  • Is a prerequisite for generating authentication endpoints.

  • Introduces security features by hashing sensitive information.

  • Can be easily identified and configured within the workspace.

Related Topics

Database Tables

Database tables are essential components of your Twidget workspace, serving as the primary storage locations for your data. In Twidget, each table consists of rows and fields, meticulously designed for efficient data management and retrieval. Structure of Database Tables. - Rows: Each row in a datab...

Database Storage

Managing your database storage effectively is crucial for ensuring optimal performance and cost-efficiency when using Twidget. Each entry within your database table utilizes a certain amount of storage space. Twidget provides intuitive tools to help you monitor and manage this storage. Viewing Datab...

Adding Database Table Rows

In Twidget, you can easily add new entries (rows) to your database tables. This feature allows you to expand your data dynamically without the need for complex coding. This document provides a step-by-step guide on how to add rows to your database tables. Adding a New Entry to a Table. To add a new ...

Generate CRUD Endpoints

With Twidget, you can efficiently generate CRUD (Create, Read, Update, Delete) endpoints for your database tables upon their creation. This functionality is designed to streamline the development process and ensure that essential API operations are readily available. Enabling CRUD Endpoints. 1. Crea...

External Database Connections

Read records from an existing external database without copying all of its data into Twidget. Add a connection. 1. Select your workspace and open Settings → Database Connections. 2. Select Add database connection. 3. Choose the provider: PostgreSQL, MySQL, SQL Server or Snowflake. 4. Enter a connect...