Task 4: Configuring Auth Service Application Properties
Before running the Authorization service, configure the application properties from the following table in the
$OM_HOME/roles/authorization-service/standalone/config/application.properties
file. To update the properties, you can refer to the sample file present under the $OM_HOME/samples/authorization-services
directory for Oracle and PostgreSQL as per your requirement. The default values are set for PostgreSQL.
Category | Element | Default Value | |
---|---|---|---|
General | server.port | 9091 | |
amPluggableCache | Relational | ||
default.tenant.id | TIBCO | ||
auth.superuser.appId | Auth | ||
auth.superuser.appKey | ENC(P2yXphz4OVM=) Note: It is a good practice to change this default value and set your own key in an encrypted value. Refer "Encrypt Password Utility" section in the TIBCO® Order Management Administration guide. | ||
allowedUserRoles | ROLE_ADMIN, ROLE_USER | ||
Relational Database Connection Properties | datasourceDriverClassName | org.postgresql.Driver | |
adminDsUrl=jdbc:postgresql://localhost:5432/admindbll?currentSchema | adminschemall | ||
adminDsUsername | adminuserll | ||
adminDsPassword | ENC(O4UrXXgTEmyecFyHLo+Ivw==) | ||
hibernateDialect | org.hibernate.dialect.PostgreSQLDialect | ||
hibernateDsDefaults | False | ||
adminHibernateShowSql | False | ||
adminDsInitialSize= | 10 | ||
adminDsMaxWait | 30000 | ||
adminDsMaxActive | 100 | ||
adminDsMaxIdle | 100 | ||
adminDsMinIdle | 10 | ||
datasourceValidationQuery | SELECT 1 | ||
adminDsTestOnBorrow | True | ||
adminDsValidationInterval | 5000 | ||
Directory Service Configurations | directoryServiceDomainName | testad.com | |
directoryServiceRootDistinguishedName | DC=testad,DC=com | ||
ldapURLForDirectoryService | ldap://localhost:389 | ||
Actuator Endpoints Properties | management.endpoints.web.exposure.include | Health, ready, loggers | |
Authentication Token Generation Configuration | authentication.token.signing.key | ENC(nSa0k6lmjPPN8ZA5SO6BpQ==) | |
authorization.access.token.validity | 43200 | ||
authorization.refresh.token.validity | 2592000 | ||
authorized.client.id | Order-management-client | ||
authorized.client.secret | ENC(ggsmFvh5HBbeSD1j+l5Y0rP4qv0rJvEm) |