OracleTokenAuth Enumeration

OracleTokenAuth enumerated values are used to explicitly specify which TOKEN_AUTH mode needs to be enabled for token authentication. Possible values for this enumeration are:

Table 6-189 lists all the OracleTokenAuth enumeration values with a description of each enumerated value.

Table 6-189 OracleTokenAuth Members

Member Name Description

Disabled

Default value. Token authentication is DISABLED.

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.

OAuth

Token authentication enabled for Azure Active Directory.

Requirements

Provider ODP.NET, Unmanaged Driver ODP.NET, Managed Driver ODP.NET Core

Assembly

Oracle.DataAccess.dll

Oracle.ManagedDataAccess.dll

Oracle.ManagedDataAccess.dll

Namespace

Oracle.DataAccess.Client

Oracle.ManagedDataAccess.Client

Oracle.ManagedDataAccess.Client

.NET Framework

See System Requirements

See System Requirements

-

.NET (Core)

-

-

See System Requirements