You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/src/user_guide/connection_handling.rst
+16-3Lines changed: 16 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4528,11 +4528,15 @@ the following table.
4528
4528
- Description
4529
4529
- Required or Optional
4530
4530
* - ``auth_type``
4531
-
- The authentication type. The value should be the string "ConfigFileAuthentication"or "SimpleAuthentication".
4531
+
- The authentication type. The value should be the string "ConfigFileAuthentication", "SimpleAuthentication", or "InstancePrincipal".
4532
4532
4533
-
In Configuration File Authentication, the location of the configuration file containing the necessary information must be provided. By default, this file is located at */home/username/.oci/config*, unless a custom location is specified during OCI IAM setup.
4533
+
With Configuration File Authentication, the location of a configuration file containing the necessary information must be provided. By default, this file is located at */home/username/.oci/config*, unless a custom location is specified during OCI IAM setup.
4534
4534
4535
-
In Simple Authentication, the individual configuration parameters can be provided at runtime.
4535
+
With Simple Authentication, the individual configuration parameters can be provided at runtime.
4536
+
4537
+
With Instance Principal Authentication, OCI compute instances can be authorized to access services on Oracle Cloud such as Oracle Autonomous Database. Python-oracledb applications running on such a compute instance are automatically authenticated, eliminating the need to provide database user credentials. This authentication method will only work on compute instances where internal network endpoints are reachable. For more information on OCI compute instances, see `OCI Compute Instances <https://docs.oracle.com/en-us/iaas/compute-cloud-at-customer/topics/compute/compute-instances.htm>`__, `Creating a Compute Instance <https://docs.oracle.com/en-us/iaas/Content/Compute/Tasks/launchinginstance.htm>`__, and `Calling Services from a Compute Instance <https://docs.oracle.com/en-us/iaas/Content/Identity/Tasks/callingservicesfrominstances.htm>`__.
4538
+
4539
+
See `OCI SDK Authentication Methods <https://docs.oracle.com/en-us/iaas/Content/API/Concepts/sdk_authentication_methods.htm>`__ for more information.
4536
4540
- Required
4537
4541
* - ``user``
4538
4542
- The Oracle Cloud Identifier (OCID) of the user invoking the API. For example, *ocid1.user.oc1..<unique_ID>*.
@@ -4571,6 +4575,15 @@ the following table.
4571
4575
4572
4576
This parameter can be specified when the value of the ``auth_type`` key is "ConfigFileAuthentication".
4573
4577
- Optional
4578
+
* - ``scope``
4579
+
- This parameter identifies all databases in the cloud tenancy of the authenticated user. The default value is *urn:oracle:db::id::**.
4580
+
4581
+
A scope that authorizes access to all databases within a compartment has the format *urn:oracle:db::id::<compartment-ocid>*, for example, urn:oracle:db::id::ocid1.compartment.oc1..xxxxxxxx.
4582
+
4583
+
A scope that authorizes access to a single database within a compartment has the format *urn:oracle:db::id::<compartment-ocid>::<database-ocid>*, for example, urn:oracle:db::id::ocid1.compartment.oc1..xxxxxx::ocid1.autonomousdatabase.oc1.phx.xxxxxx.
4584
+
4585
+
This parameter can be specified when the value of the ``auth_type`` key is "SimpleAuthentication", "ConfigFileAuthentication", or "InstancePrincipal".
4586
+
- Optional
4574
4587
4575
4588
All keys and values other than ``auth_type`` are used by the `OCI SDK
4576
4589
<https://docs.oracle.com/en-us/iaas/Content/API/Concepts/sdkconfig.htm>`__ API
0 commit comments