Per-user OAuth apps
Let each end user connect Strava, Oura or WHOOP through their own OAuth app, and see what they set up at each provider.
Some providers let each of your end users connect through their own OAuth app, instead of through a shared app you manage. This is useful when your users are themselves developers: they register their own app with the provider, and they bring its credentials when they connect through Terra.
Turn on per-user apps
You enable this per-(provider, dev_id) from your dashboard: open the connection's settings and turn on Per-user OAuth apps, or choose Enable per-user apps when you first set the provider up. Once it's on, every new connection for that provider goes through a Terra-hosted page where the user enters their own client_id and client_secret. Those credentials are pinned to that one connection and aren't shared.
The sections below list what each user needs to do at the provider's developer portal. Share the relevant link with your users.
Strava
Each user registers their own Strava OAuth app and enters its credentials on the Terra-hosted connect page.
Sign in to https://www.strava.com/settings/api.
Create an application. The Application Name, Website, and Application Description can be anything.
Set the Authorization Callback Domain to:
access.tryterra.coSave the application. Copy the Client ID and Client Secret.
When prompted on the Terra-hosted connect page, paste the Client ID and Client Secret to complete the connection.
Oura
Each user registers their own Oura OAuth application and enters its credentials on the Terra-hosted connect page.
Sign in to https://cloud.ouraring.com/oauth/applications.
Create a new application. The Application Name and Application Description can be anything.
Set the Redirect URI to:
Make sure the application is allowed the scopes Terra requests:
email,personal,daily,heartrate,workout,tag,session,spo2Daily.Save the application. Copy the Client ID and Client Secret.
When prompted on the Terra-hosted connect page, paste the Client ID and Client Secret to complete the connection.
WHOOP
Each user registers their own WHOOP OAuth application and enters its credentials on the Terra-hosted connect page.
Sign in to https://developer-dashboard.whoop.com/ (a WHOOP account is required).
Create a new application.
Set the Redirect URL to:
Set the Webhook URL to:
Save the application. Copy the Client ID and Client Secret.
When prompted on the Terra-hosted connect page, paste the Client ID and Client Secret to complete the connection.
Next steps
Destinations: choose where Terra sends data.
User authentication: open the widget from your app.
Last updated
Was this helpful?