Embedded Credentials
Embedded OAuth Credentials
Desktop Authentication with the Embedded OAuth App
You can connect without setting any connection properties for your user credentials. After setting InitiateOAuth to GETANDREFRESH you are ready to connect. You can use InitiateOAuth to avoid repeating the OAuth exchange and manually setting the OAuthAccessToken.
Additionally, you will need to set the following to connect:
- Schema - Set this to SuiteQL
- AccountId - Set this to your account id
When you connect the driver opens the OAuth endpoint in your default browser. Log in and grant permissions to the application. The driver then completes the OAuth process.
- Extracts the access token from the callback URL and authenticates requests.
- Obtains a new access token when the old one expires.
- Saves OAuth values in OAuthSettingsLocation to be persisted across connections.