OAuth Overview
OAuth Connection Overview
What is OAuth?
OAuth (Open Authorization) is an industry-standard protocol that allows GRAX to securely access your Salesforce data without storing your credentials. When you connect GRAX to Salesforce, OAuth handles the authentication and authorization process.
How GRAX Uses OAuth
GRAX uses OAuth for two purposes:
Integration User Connection: A dedicated Salesforce user that performs backup, restore, and archive operations
End User Single Sign-On (SSO): Individual users log into the GRAX Application using their Salesforce credentials. Note: End-user access is validated by the Integration User's OAuth connection, so the Integration User must include the
idscope (orprofile,email) in its OAuth token.
OAuth Connection Architecture
GRAX uses Salesforce's OAuth authorization code flow, with hq.grax.com as the OAuth client:
Your browser is redirected to your Salesforce domain, where you log in and approve access.
Salesforce redirects to
hq.grax.com, which exchanges the authorization code for tokens using GRAX's app credentials.The GRAX backend retrieves the result from
hq.grax.comover an authenticated server connection. Tokens never pass through your browser.For the integration user, GRAX keeps the encrypted credentials it needs to stay connected. For end-user SSO, the user's Salesforce token isn't stored.
Key Security Features:
All data stores are encrypted
Token exchanges originate from IP address
3.232.229.75GRAX respects Salesforce field and record-level security
For complete technical details, see the Authentication documentation.
Common OAuth Scenarios
Initial Connection
To connect GRAX to Salesforce using OAuth:
Navigate to your GRAX Application
Select Production or Sandbox based on your org type
Click "Establish OAuth Connection to Salesforce"
Complete the Salesforce login flow
Log in with your individual user via SSO
Learn more: Connecting Salesforce
After Sandbox Refresh
If GRAX loses connection after a sandbox refresh, you'll receive reset emails with a link to reconnect.
Learn more: Sandbox Refresh and Handling Loss of Salesforce Connection
After Enhanced Domain Changes
After Salesforce Enhanced Domain changes, navigate to your GRAX Application URL with /web appended and sign in with Salesforce to reestablish the connection.
Learn more: Troubleshooting documentation
OAuth Errors During Connection
If you encounter OAuth errors while connecting through the Connected App:
Verify "Approve Uninstalled Connected Apps" permission on the connecting user
Check that the GRAX Connected App is installed
Verify network connectivity and IP whitelisting
If you connect through the External Client Apps instead:
Check that the second-generation Managed Package is installed and that "GRAX Integration" and "GRAX SSO" appear under "External Client App Manager"
Verify that Permitted Users on the GRAX Integration app is "Admin approved users are pre-authorized" and that the Integration User holds the authorizing permission set
Verify network connectivity and IP whitelisting
Learn more: Connected App troubleshooting and External Client App troubleshooting
Related Documentation
Authentication - Complete OAuth flow and security details
Connected App - Installation and configuration
External Client App - Connecting through the External Client Apps instead of the Connected App
Integration User - User requirements and setup
Connecting Salesforce - Step-by-step connection guide
Network Requirements - Required network access for GRAX Deployments
Troubleshooting - Common issues and solutions
Last updated
Was this helpful?

