Example Tools using Outbound Apps
Here are examples of how backend services can use Descope Outbound Apps to retrieve user-specific tokens for third-party platforms like Salesforce, HubSpot, and Google Calendar.
Each example assumes the user has already connected via the /outbound/oauth/connect
flow.
🔗 Salesforce Opportunities Tool
Use Descope Outbound Apps to fetch Salesforce access tokens, then query opportunities from the Salesforce API.
📅 Google Calendar Events Tool
Fetch a user's calendar events with Descope-managed tokens:
📇 HubSpot Contacts Tool
Use the Outbound App token to get CRM contact records from HubSpot:
Notes
- Each tool uses
descope.getOutboundToken()
to securely retrieve a token for the connected provider. - Make sure your app calls
/outbound/oauth/connect
first to allow the user to approve scopes. - Tokens are securely stored, auto-refreshed, and scoped by user and app.
Coming soon: More examples for platforms like Slack, Notion, Zoom, and GitHub!
Was this helpful?