TokenAuthentication

This property sets the value for TOKEN_AUTH parameter at the process level. The possible values for this property include OracleTokenAuth.OciToken, OracleTokenAuth.Disabled, OracleTokenAuth.OAuth and so on.

Declaration

// C#
public static OracleTokenAuth TokenAuthentication { get; set; }

Table 6-36 OracleTokenAuth Members

Member Name Description

Disabled

Default value. Token authentication is DISABLED.

OAuth

Token authentication enabled for Azure Active Directory.

OciApiKey

Token authentication using OCI_API_KEY authentication flow.

Not available in ODP.NET, Unmanaged Driver

OciInstancePrincipal

Token authentication using OCI_INSTANCE_PRINCIPAL authentication flow.

Not available in ODP.NET, Unmanaged Driver

OciDelegationToken

Token authentication using OCI_DELEGATION_TOKEN authentication flow.

Not available in ODP.NET, Unmanaged Driver

OciInteractive

Token authentication using OCI_INTERACTIVE authentication flow.

Not available in ODP.NET, Unmanaged Driver

OciDefault

Token authentication using the most appropriate method depending on the application environment. ODP.NET first attempts to retrieve the token using the OCI API key. If that fails, then ODP.NET checks whether it is in a Cloud Shell environment to attempt to get the token using delegation token authentication flow. Lastly, it attempts to use the instance principal authentication flow.

Not available in ODP.NET, Unmanaged Driver

OciToken

Token authentication is enabled for Oracle Identity and Access Management.