@@ -20,6 +20,25 @@ use SimpleSAML\Module\oidc\ModuleConfig;
2020 * However, all the key values have been preserved from previous module versions.
2121 */
2222$config = [
23+ /**
24+ * Database connection parameters, Doctrine DBAL compatible (more info on
25+ * https://www.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html).
26+ * There are additional parameters for: table prefix.
27+ */
28+ ModuleConfig::OPTION_DB_CONNECTION_PARAMETERS => [
29+ 'driver' => 'pdo_mysql', // (string): The built-in driver implementation to use.
30+ 'user' => 'user', // (string): Username to use when connecting to the database.
31+ 'password' => 'password', // (string): Password to use when connecting to the database.
32+ 'host' => 'host', // (string): Hostname of the database to connect to.
33+ 'port' => 3306, // (integer): Port of the database to connect to.
34+ 'dbname' => 'dbname', // (string): Name of the database/schema to connect to.
35+ //'unix_socket' => 'unix_socet', // (string): Name of the socket used to connect to the database.
36+ 'charset' => 'utf8', // (string): The charset used when connecting to the database.
37+ //'url' => 'mysql://user:secret@localhost/mydb?charset=utf8', // ...alternative way of providing parameters.
38+ // Additional parameters not originally available in Doctrine DBAL
39+ 'table_prefix' => '', // (string): Prefix for each table.
40+ ],
41+
2342 /**
2443 * (optional) Issuer (OP) identifier which will be used as an issuer (iss) claim in tokens. If not set, it will
2544 * fall back to current HTTP scheme, host and port number if no standard port is used.
0 commit comments