Is there a way to use a JAAS config file with Hikari data-source-properties? I have multiple Login contexts in the JAAS config file (to connect to Cassandra and Kafka) and would like to connect to Oracle db in the same way.
These are the current properties:
spring:
datasource:
url:
username:
driver-class-name: oracle.jdbc.OracleDriver
hikari:
data-source-properties:
oracle.net.kerberos5_cc_name: <ticker cache path here>
oracle.net.authentication_services: KERBEROS5
oracle.net.kerberos5_mutual_authentication: true
Instead of specifying ticket cache through these properties I'd like to keep them in the JAAS config file and specify the config path with VM args/System props (java.security.auth.login.config). The reason for this is that while specifying ticket cache paths in application properties, they get overriden. (If connection order is Oracle->Cassandra->Kafka, then the Oracle config will be overriden by Cassandra config, and then the Cassandra config will be overriden by Kafka configuration.)