oracle / oracle-r2dbc

R2DBC Driver for Oracle Database
https://oracle.com
Other
197 stars 40 forks source link

Add support to set "oracle.net.kerberos5_cc_name" programmatically (for multi datasource scenarios) #123

Closed tiyadiashok closed 11 months ago

tiyadiashok commented 1 year ago

I have an application which uses different credential cache for each data source when using KEREBEROS5 authentication, but as current implementation of oracle.r2dbc.OracleR2dbcOptions class does not support setting following property programmatically , I can only set one credential cache using System.setProperty("oracle.net.kerberos5_cc_name", "path_to_cc");

It would be great if following property is added to OracleR2dbcOptions in the next release

oracle.jdbc.OracleConnection.CONNECTION_PROPERTY_THIN_NET_AUTHENTICATION_KRB5_CC_NAME = "oracle.net.kerberos5_cc_name"

Michael-A-McMahon commented 1 year ago

Thanks for bringing this to my attention. Adding an Option should be easy enough.