Skip to content

No access to proxy_user once connection is made #250

@thrandale

Description

@thrandale

In cx_Oracle, when you connected with a proxy user, you were able to see that user in connection.username

>>> import cx_Oracle
>>> connection = cx_Oracle.connect("sessionuser[proxyuser]/pw@db")
>>> print(connection.username)
sessionuser[proxyuser]

Though "hacky", you could parse this output to get the proxy user.

In oracledb, when you connect with a proxy user, there is no way to access the proxy user, as it is not included in connection.username

>>> import oracledb
>>> oracledb.init_oracle_client()
>>> connection = oracledb.connect(
...     user="sessionuser",
...     proxy_user="proxyuser",
...     password="pw",
...     dsn="db",
... )
>>> print(connection.username)
sessionuser

It would be great to be able to access the connected proxy user trough either the connection.username or even better a connection.proxy_user

Info

  • python -> 3.11.6
  • oracledb -> 1.4.2

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