oracle / oracle-r2dbc

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

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

Closed tiyadiashok closed 1 year 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.