The database backend uses a database to store information and passwords for clients. The database can be the same one as the Glewlwyd database or another database of another supported type.
In the administration page, go to Parameters/Clients data sources
and add a new client module by clicking on the +
button. In the modal, enter a name and a display name (the name must be unique among all client backend instances).
Select the type Database backend client module
in the Type dropdown button.
Below is the definition of all parameters.
Name (identifier) of the module instance, must be unique among all the client backend module instances, even of a different type.
Name of the instance displayed to the client.
Check this option if you want to use this backend as read-only. All client properties such as e-mail, name, password, scopes can't be modifier with Glewlwyd, even administrators.
Uncheck this option if you want to use a different database that will store the clients. The new database must have the structure already present. Use one of the following script to initilize the database:
- MariaDB: database.mariadb.sql
- Postgre SQL: database.postgre.sql
- Sqlite 3: database.sqlite3.sql
This option is available if the option Use the same connection as Glewlwyd server
is disabled.
Select the database backend among the ones available.
This option is available if the database type selected is SQlite 3. Enter the path of the SQlite 3 database on the server.
This option is available if the database type selected is MariaDB/Mysql. Hostname of the MariaDB/Mysql server.
This option is available if the database type selected is MariaDB/Mysql. Clientname to connect to the MariaDB/Mysql server.
This option is available if the database type selected is MariaDB/Mysql. Password to connect to the MariaDB/Mysql server.
This option is available if the database type selected is MariaDB/Mysql. Name of the database hosting the Glewlwyd client backend tables.
This option is available if the database type selected is MariaDB/Mysql. TCP Port used to connect to the MariaDB/Mysql database. Set 0 if you want to use default system port.
This option is available if the database type selected is PostgreSQL. SQL Connection string used to connect to the PostgreSQL database.
This section allows to specify new properties for the client. The properties may be available for schemes, plugins, in the admin page or in the profile page. By default, when you add a new client backend, the properties redirect_uri
and authorization_type
are added with multiple values and read/write modes.
Property name, ex: phone
, address
, human
, etc.
If this option is checked, the property values will be available as an array of string values, otherwise a single string value.
If this option is checked, plugins and administrators can have access to this property in read mode.
If this option is checked, plugins and administrators can have access to this property in write mode.