Skip to content

04. Authentication

Thierry Feuzeu edited this page Aug 20, 2026 · 2 revisions

At its core, the Jaxon DbAdmin package does not provide the authentication feature.
This is the responsibility of the supporting application.

For the ready-to-use applications, the authentication feature is the provided by the Laravel, Symfony, and Slim frameworks.

Each application ships with the basic default described bellow, which the users can change depending on their specific needs.
The Laravel, Symfony and Slim frameworks can implement a wide range of authentication workflows, from the most basic to the most advanced.

The auth entry in the config/app.php config file is a closure which returns an instance of a class implementing the AuthInterface.
This interface bridges the Jaxon DbAdmin package with the application authentication system, by defining the information it needs about the authenticated user.

Default authentication in Laravel

The default for the Jaxon DbAdmin Laravel application is to store the users and their credentials in the local storage/dbadmin.sqlite SQLite database.
This database is created and migrated when the application is installed with Composer or in Docker.

A CLI command is provided to create a user account in that database.

php artisan user:create --name "Admin" --email "admin@company.com"

The command will prompt the user to provide the name and email if the --name and --email options are omitted.
It will then prompt for the account password, and create the account if the provided values are all valid.

Default authentication in Symfony

The default for the Jaxon DbAdmin Symfony application is to store the users and their credentials in the local var/dbadmin.sqlite SQLite database.
This database is created and migrated when the application is installed with Composer or in Docker.

A CLI command is provided to create a user account in that database.

php bin/console user:create --name "Admin" --email "admin@company.com"

The command will prompt the user to provide the name and email if the --name and --email options are omitted.
It will then prompt for the account password, and create the account if the provided values are all valid.

Default authentication in Slim

The default for the Jaxon DbAdmin Slim application is to list the users and their credentials in the users entry of the array in the config/app.php config file.
The encrypted password for each user is defined in that entry.

A CLI command is provided to create a user account in that entry.

php cli/create-user.php --name "Admin" --email "admin@company.com"

The command will prompt the user to provide the name and email if the --name and --email options are omitted.
It will then prompt for the account password, and display the entry to be added in the users array if the provided values are all valid.

Clone this wiki locally