For the purpose of this guide, a Simple vault type is used to securely store database information.
The Application Database needs to be defined using the app-config.yaml file. By default, a PostgreSQL database is used, and this guide also assumes the use of a PostgreSQL database.
| Extra information |
|---|
| Visit this page for documentation about all database settings available in the config file. |
A dollar sign $ is used to denote the use of a key stored in the Key Vault
file. The values for these keys were defined previously.
Follow the instructions below to add the Application Database:
$. The values
are:
$applicationDatabaseUser
$applicationDatabasePassword
$applicationDatabaseURLAn example of securely storing credentials:
| app-config.yaml | : username: $applicationDatabaseUser |
| secrets.txt | : applicationDatabaseUser=tom |
| secrets.txt (encrypted) | : applicationDatabaseUser=VNTyz/GCytvX0sm/gGnaq6DuTk8ZHkOPjey2PyNQtN7OanuXEg==
|
This makes it possible for the application to access the application database. To access the Application, authentication for the administrator needs to be configured in the app-config.yaml file as well.
The Control Center's configuration file must contain connection information to all applications available in the environment.
Configure the application server connection settings:
applications:
<application name>:
host: <server>
gRPCPort: <port>| Multiple applications can be added by making another entry with the application's name with host and gRPCPort values. |
|---|
authentication:
type: OIDC
settings:
issuerURL: https://login.microsoftonline.com/<Server ID Key>/v2.0
clientID: <Client ID Key>The clientid needs to be provided with an ID used to authenticate and
successfully access the server.
Configure the following settings for the client:
"AuthenticationConfig": {
"issuer": https://login.microsoftonline.com/<ID key>/v2.0,
"redirectUri": http://localhost:4300/<application name>,
"clientId": "<ID key>",
"scope": "openid profile email offline_access",
"responseType": "code",
"claimUserName": "preferred_username",
"tokenRefreshTreshold": 15,
"loginButtonLogo": "assets/image/<image>.png"
}