Using the oracle_enhanced
adapter and oracle.jdbc.driver.OracleDriver
, how can we utilize the proxy authentication described in here? Specifically, how can we mimic this code from Java in Ruby:
java.util.Properties prop = new java.util.Properties();
prop.put(OracleConnection.PROXY_USER_NAME, "jeff");
String[] roles = {"role1", "role2"};
prop.put(OracleConnection.PROXY_ROLES, roles);
conn.openProxySession(OracleConnection.PROXYTYPE_USER_NAME, prop);