TokenLocation

This property gets or sets the token location directory at the process level where the access token, or database token and private key files, are present for ODP.NET token authentication. The file names do not need to be specified.

Declaration

// C#
public static string TokenLocation { get; set; }

Property Value

A directory location.

Exceptions

None.

Description

This property is mandatory for OAuth file-based access tokens, but optional for database tokens.

In the access token case, this property can be the directory where the file “token” is, or the full-path specification of the token file.

For OCI IAM PoP tokens, a file’s full-path specification can be specified if it does not have the standard name, “token”. A file name does not need to be specified when it uses this standard, fixed name. Bearer token default token location is an empty string.

Note:

Only managed ODP.NET and ODP.NET Core can use this property.

Remarks

Applications can override the default location of signature token and private key by setting a new custom location through this property.