Skip to content

Cannot specify externalAuth true and a proxy user. #1628

@APop123

Description

@APop123
  1. 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.

  1. 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?

  1. 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()

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions