Create DB Sync client apps
DB Sync client apps must be created from the DB Sync client app console and registered in the GIP system.
In the context of GAS upgrade, these steps can be skipped, as long as the GIP configuration files and databases (.genero-sso) are kept.
- Open the demos.html starter page in a browser:
For example:http[s]://host:port/demos.html
http://toro:6394/demos.html
-
Start the Console application program.
-
Connect as GIP administrator user.
-
Create a security role for the new DB Sync client app.
- + Create
- Enter a role name (for example: "
Role.app_library
") - Enter a description
- Accept input with OK
- Enter a role name (for example: "
- Open the
dbsync.html
starter page in a browser:
For example:http[s]://host:port/ua/web/dbsync_setup_server_config/dbsync.html
http://toro:6394/ua/web/dbsync_setup_server_config/dbsync.html
-
Start the Apps configuration program.
-
Connect as
dbsync_admin
user. -
Create a new DB Sync client app with the New app option:
- Enter the app name (for example: "
app_library
") - Enter a description
- Validate input with Accept
- Enter the app name (for example: "
-
Assign SQL tables to the app with the Tables option.
-
Register the app in the GIP with the Register option:
-
Select the Authorization role (ex: "
Role.app_library
") for this app, Accept. -
A warning message is displayed to indicated that your app is now registered in the GIP system, OK.
-
A new form opens to enter configuration file options for the DB Sync client app. This will produce a JSON record to fill the
dbsync_source
record that must be passed to thedbsync_app.register_dbsync_source(dbsync_source)
function.- In dev/test mode, if you are not using HTTPS, make sure to use the
http
protocols instead ofhttps
for the DB Sync Protocol and the IdP issuer parameters. - Edit the IdP issuer parameter which holds by default the URL for the Genero IDP provider, with <host> and <port> placeholders which need to be specified.
- Accept the input and close the form with OK.
- In dev/test mode, if you are not using HTTPS, make sure to use the
-
A new form displays, with the JSON record for the DB Sync client app configuration file.
- Copy all or some parts of the JSON data to create/edit you DB Sync client app configuration file manually, or skip to the next step to download the JSON file.
- Close the form with OK.
-
A new dialog box offers you to download the DB Sync client app configuration file.
- Select Yes to download the file or No to skip the download.
-
If needed, you can re-edit the DB Sync client app configuration the with the Config toolbar option. However, for security reasons, the Client Secret is not saved into the DB Sync system table for apps: The Client Secret is only available in memory just after registering the app into GIP. If you close the DB Sync client app console and reopen it, and the JSON record was not saved into a file, the Client Secret is lost. In such case, unregister and register again the app to get a new Client ID and Client Secret.