-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Labels
Description
- What versions are you using?
> process.platform
'win32'
> process.version
'v18.12.1'
> process.arch
'x64'
> require('oracledb').versionString
'6.2.0'
> require('oracledb').oracleClientVersionString
undefined
Server version unrelated - error ocurs before connection.
- Describe the problem
Following example 4 from https://blogs.oracle.com/opal/post/external-and-proxy-connection-syntax-examples-for-node-oracledb.
With externalAuth true and proxy user set results in the error:
Error: NJS-136: user name and password cannot be set when using external authentication
Is there any way to use external auth and proxy user with current version of the library?
- Include a runnable Node.js script that shows the problem.
const oracledb = require('oracledb');
async function run() {
oracledb.initOracleClient();
await oracledb.getConnection({
connectString: 'db.example.com:1521/myservice',
externalAuth: true,
user: '[myproxyuser]'
});
}
run()