CredentialsLocation
Specifies the file path where the OKTA MFA token is stored for authentication.
Data Type
string
Default Value
"EMPTYSTRING"
Remarks
When using OKTA MFA authentication, the retrieved token is short-lived and typically expires after two hours. Once expired, the connector requests a new MFA passcode, requiring a refreshed connection.
This property defines where the token is saved and read from to persist authentication across connections. By default, the token is stored at: "%APPDATA%\\CData\\Salesforce Data Provider\\CredentialsFile.txt". The %APPDATA% variable resolves to different system locations depending on your operating system:
| Platform | %APPDATA% |
| Windows | The value of the APPDATA environment variable |
| Mac | ~/.config |
| Linux | ~/.config |
Setting a custom credentials location can be useful for managing authentication across multiple environments or securing tokens in a controlled directory. However, ensure that the file is accessible to the driver and is not inadvertently deleted between sessions.