@@ -1656,40 +1656,44 @@ Operating System Authentication.
16561656
16571657.. _tokenauth :
16581658
1659- Token Based Authentication
1659+ Token- Based Authentication
16601660==========================
16611661
1662- Token Based Authentication allows applications to validate user access by using
1663- an encrypted authentication token. An authentication token provides users with
1664- access to the database for a limited period of time without having to enter
1665- their database username and password. The two authentication methods
1666- supported are :ref: `Open Authorization (OAuth 2.0) <oauth2 >` and :ref: `Oracle
1662+ Token-Based Authentication allows users to connect to a database by using an
1663+ encrypted authentication token without having to enter a database username and
1664+ password. The authentication token must be valid and not expired for the
1665+ connection to be successful. Users already connected will be able to continue
1666+ work after their token has expired but they will not be able to reconnect
1667+ without getting a new token.
1668+
1669+ The two authentication methods supported by python-oracledb are
1670+ :ref: `Open Authorization (OAuth 2.0) <oauth2 >` and :ref: `Oracle
16671671Cloud Infrastructure (OCI) Identity and Access Management (IAM) <iamauth>`.
16681672
16691673.. _oauth2 :
16701674
1671- Connecting Using OAuth 2.0 Token Based Authentication
1675+ Connecting Using OAuth 2.0 Token- Based Authentication
16721676-----------------------------------------------------
16731677
16741678Oracle Cloud Infrastructure (OCI) users can be centrally managed in a Microsoft
1675- Azure Active Directory (Azure AD) service. Open Authorization (OAuth 2.0) token based
1679+ Azure Active Directory (Azure AD) service. Open Authorization (OAuth 2.0) token- based
16761680authentication allows users to authenticate to Oracle Database using Azure AD OAuth2
16771681tokens. Currently, only Azure AD tokens are supported. Ensure that you have a
16781682Microsoft Azure account and your Oracle Database is registered with Azure AD. See
16791683`Configuring the Oracle Autonomous Database for Microsoft Azure AD Integration
16801684<https://www.oracle.com/pls/topic/lookup?ctx=db19&id=
16811685GUID-0A60F22D-56A3-408D-8EC8-852C38C159C0> `_ for more information.
1682- Both Thin and Thick modes of the python-oracledb driver support OAuth 2.0 token based
1686+ Both Thin and Thick modes of the python-oracledb driver support OAuth 2.0 token- based
16831687authentication.
16841688
16851689When using python-oracledb in Thick mode, Oracle Client libraries 19.15 (or later),
16861690or 21.7 (or later) are needed.
16871691
1688- OAuth 2.0 token based authentication can be used for both standalone connections
1692+ OAuth 2.0 token- based authentication can be used for both standalone connections
16891693and connection pools. Tokens can be specified using the connection parameter
16901694introduced in python-oracledb 1.1. Users of earlier python-oracledb versions
16911695can alternatively use
1692- :ref: `OAuth 2.0 Token Based Authentication Connection Strings<oauth2connstr> `.
1696+ :ref: `OAuth 2.0 Token- Based Authentication Connection Strings<oauth2connstr> `.
16931697
16941698OAuth2 Token Generation And Extraction
16951699++++++++++++++++++++++++++++++++++++++
@@ -1765,12 +1769,12 @@ See :ref:`curl` for an alternative way to generate the tokens.
17651769Standalone Connection Creation with OAuth2 Access Tokens
17661770++++++++++++++++++++++++++++++++++++++++++++++++++++++++
17671771
1768- For OAuth 2.0 Token Based Authentication, the ``access_token `` connection parameter
1772+ For OAuth 2.0 Token- Based Authentication, the ``access_token `` connection parameter
17691773must be specified. This parameter should be a string (or a callable that returns a
17701774string) specifying an Azure AD OAuth2 token.
17711775
17721776Standalone connections can be created in the python-oracledb Thick and Thin modes
1773- using OAuth 2.0 token based authentication. In the examples below, the
1777+ using OAuth 2.0 token- based authentication. In the examples below, the
17741778``access_token `` parameter is set to a callable.
17751779
17761780**In python-oracledb Thin mode **
@@ -1806,7 +1810,7 @@ TokenHandlerOAuth() used in the example, see :ref:`oauthhandler`.
18061810 Connection Pool Creation with OAuth2 Access Tokens
18071811++++++++++++++++++++++++++++++++++++++++++++++++++
18081812
1809- For OAuth 2.0 Token Based Authentication, the ``access_token `` connection
1813+ For OAuth 2.0 Token- Based Authentication, the ``access_token `` connection
18101814parameter must be specified. This parameter should be a string (or a callable
18111815that returns a string) specifying an Azure AD OAuth2 token.
18121816
@@ -1815,7 +1819,7 @@ mode. The ``homogeneous`` parameter must be set to True in both the
18151819python-oracledb Thin and Thick modes.
18161820
18171821Connection pools can be created in the python-oracledb Thick and Thin modes
1818- using OAuth 2.0 token based authentication. In the examples below, the
1822+ using OAuth 2.0 token- based authentication. In the examples below, the
18191823``access_token `` parameter is set to a callable.
18201824
18211825Note that the ``access_token `` parameter should be set to a callable. This is
@@ -1856,18 +1860,18 @@ TokenHandlerOAuth() used in the example, see :ref:`oauthhandler`.
18561860
18571861 .. _oauth2connstr :
18581862
1859- OAuth 2.0 Token Based Authentication Connection Strings
1863+ OAuth 2.0 Token- Based Authentication Connection Strings
18601864+++++++++++++++++++++++++++++++++++++++++++++++++++++++
18611865
18621866The connection string used by python-oracledb can specify the directory where
18631867the token file is located. This syntax is usable with older versions of
18641868python-oracledb. However, it is recommended to use connection parameters
18651869introduced in python-oracledb 1.1 instead. See
1866- :ref: `OAuth 2.0 Token Based Authentication<oauth2> `.
1870+ :ref: `OAuth 2.0 Token- Based Authentication<oauth2> `.
18671871
18681872.. note ::
18691873
1870- OAuth 2.0 Token Based Authentication Connection Strings is only supported in
1874+ OAuth 2.0 Token- Based Authentication Connection Strings is only supported in
18711875 the python-oracledb Thick mode. See :ref: `enablingthick `.
18721876
18731877There are different ways to retrieve Azure AD OAuth2 tokens. Some of the ways to
@@ -1950,22 +1954,22 @@ Connection pool example:
19501954
19511955 .. _iamauth :
19521956
1953- Connecting Using OCI IAM Token Based Authentication
1957+ Connecting Using OCI IAM Token- Based Authentication
19541958---------------------------------------------------
19551959
19561960Oracle Cloud Infrastructure (OCI) Identity and Access Management (IAM) provides
19571961its users with a centralized database authentication and authorization system.
19581962Using this authentication method, users can use the database access token issued
19591963by OCI IAM to authenticate to the Oracle Cloud Database. Both Thin and Thick modes
1960- of the python-oracledb driver support OCI IAM token based authentication.
1964+ of the python-oracledb driver support OCI IAM token- based authentication.
19611965
19621966When using python-oracledb in Thick mode, Oracle Client libraries 19.14 (or later),
19631967or 21.5 (or later) are needed.
19641968
1965- OCI IAM token based authentication can be used for both standalone connections and
1969+ OCI IAM token- based authentication can be used for both standalone connections and
19661970connection pools. Tokens can be specified using the connection parameter
19671971introduced in python-oracledb 1.1. Users of earlier python-oracledb versions
1968- can alternatively use :ref: `OCI IAM Token Based Authentication Connection Strings
1972+ can alternatively use :ref: `OCI IAM Token- Based Authentication Connection Strings
19691973<iamauthconnstr>`.
19701974
19711975OCI IAM Token Generation and Extraction
@@ -2037,12 +2041,12 @@ parameter set to True.
20372041Standalone Connection Creation with OCI IAM Access Tokens
20382042+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
20392043
2040- For OCI IAM Token Based Authentication, the ``access_token `` connection parameter
2044+ For OCI IAM Token- Based Authentication, the ``access_token `` connection parameter
20412045must be specified. This parameter should be a 2-tuple (or a callable that returns
20422046a 2-tuple) containing the token and private key.
20432047
20442048Standalone connections can be created in the python-oracledb Thick and Thin modes
2045- using OCI IAM token based authentication. In the examples below, the
2049+ using OCI IAM token- based authentication. In the examples below, the
20462050``access_token `` parameter is set to a callable.
20472051
20482052**In python-oracledb Thin mode **
@@ -2078,7 +2082,7 @@ TokenHandlerIAM() used in the example, see :ref:`iamhandler`.
20782082 Connection Pool Creation with OCI IAM Access Tokens
20792083+++++++++++++++++++++++++++++++++++++++++++++++++++
20802084
2081- For OCI IAM Token Based Authentication, the ``access_token `` connection
2085+ For OCI IAM Token- Based Authentication, the ``access_token `` connection
20822086parameter must be specified. This parameter should be a 2-tuple (or a callable
20832087that returns a 2-tuple) containing the token and private key.
20842088
@@ -2087,7 +2091,7 @@ mode. The ``homogeneous`` parameter must be set to True in both the
20872091python-oracledb Thin and Thick modes.
20882092
20892093Connection pools can be created in the python-oracledb Thick and Thin modes
2090- using OCI IAM token based authentication. In the examples below, the
2094+ using OCI IAM token- based authentication. In the examples below, the
20912095``access_token `` parameter is set to a callable.
20922096
20932097Note that the ``access_token `` parameter should be set to a callable. This is
@@ -2130,18 +2134,18 @@ TokenHandlerIAM() used in the example, see :ref:`iamhandler`.
21302134
21312135 .. _iamauthconnstr :
21322136
2133- OCI IAM Token Based Authentication Connection Strings
2137+ OCI IAM Token- Based Authentication Connection Strings
21342138+++++++++++++++++++++++++++++++++++++++++++++++++++++
21352139
21362140The connection string used by python-oracledb can specify the directory where
21372141the token and private key files are located. This syntax is usable with older
21382142versions of python-oracledb. However, it is recommended to use connection
21392143parameters introduced in python-oracledb 1.1 instead. See
2140- :ref: `OCI IAM Token Based Authentication<iamauth> `.
2144+ :ref: `OCI IAM Token- Based Authentication<iamauth> `.
21412145
21422146.. note ::
21432147
2144- OCI IAM Token Based Authentication Connection Strings is only supported in
2148+ OCI IAM Token- Based Authentication Connection Strings is only supported in
21452149 the python-oracledb Thick mode. See :ref: `enablingthick `.
21462150
21472151The Oracle Cloud Infrastructure command line interface (OCI-CLI) can be used
0 commit comments