The Onegini Extension Engine requires a database connection to store and load configuration and custom extension scripts.
Setup the database schema¶
The database schema can be created at the application startup or manually. Flyway is used to do it automatically at startup. This feature is enabled by default. The database user used by the application requires the rights to manipulate the database schema for this feature.
To create the database schema manually via a DBA, Flyway should be disabled by setting the property
false. All DB schema
files mentioned in the upgrade instructions should be executed.
Configure the database¶
The Onegini Extension Engine supports three different types of database, including Oracle, MySQL, and SQL Server.
Configuring the database type¶
The database type can be selected by setting the
DATABASE_TYPE environment variable. If no type specified, MySQL will be used by default.
SQL Server example:
Configuring the database connection¶
Several environment variables must be set in the docker compose file to allow the application to access the database. Properties with a specified default value can be omitted.
||mysql||The type of the database.|
||The URL of the database. Example:
||The username the application will use to access the database.|
||The password for the username above.|
||The password used to encrypt sensitive configuration properties. For security purposes, this password should not match that of the database.|
||4||The poolsize of the Jasypt string encryptor used to encrypt config properties.|
||Whether Flyway migrations are enabled or not.|