Add Db auth user backend parameters in config file provided by skel

This commit is contained in:
Benjamin Renard 2023-03-07 18:52:02 +01:00
parent f662837ffd
commit 7b635a4f00

View file

@ -226,6 +226,30 @@ auth:
# CAS Fake authenticated user
#fake_authenticated_user: 'myusername'
#
# Database user backend
#
db:
# DSN (required)
dsn: "${db.dsn}"
# Username (optional but could be required with some PDO drivers)
user: "${db.user}"
# Password (optional)
password: "${db.password}"
# PDO options (optional)
options: "${db.options}"
# Users table name (optional, default: users)
#users_table: "users"
# Username field name (optional, default: username)
#username_field: "username"
# Password field name (optional, default: password)
#password_field: "password"
# Exposed users table fields in resulting EesyPHP\Auth\User object
# (optional, defailt: name, mail)
#exposed_fields:
# - "name"
# - "mail"
#
# LDAP user backend
#