7.1. ODPI-C Structure dpiAccessToken
This structure is used when creating connection pools and standalone connections using token based authentication. Oracle Client libraries must be 19.14 (or later), or 21.5 (or later).
The externalAuth must be set to 1 and in addition, homogeneous must be
set to 1 when creating a pool. The password property should not be set.
The user (or username) property should only be set when specifying a proxy
user for token based authentication, in which case the proxy user must be
enclosed in square brackets, such as [proxy_user].
Both token and privateKey (and their lengths) must be set while using IAM for token based authentication.
Only token and it’s length must be set while using OAuth for token based authentication.
-
const char *dpiAccessToken.token
Specifies the database authentication token string used for token based authentication.
-
uint32_t dpiAccessToken.tokenLength
Specifies the database authentication token string length used for token based authentication.
-
const char *dpiAccessToken.privateKey
Specifies the database authentication private key string used for token based authentication.
-
uint32_t dpiAccessToken.privateKeyLength
Specifies the database authentication private key string length used for token based authentication.