Skip to main content
Answered

New strava policy and dev, test, prod accounts

  • June 11, 2026
  • 5 replies
  • 98 views

Forum|alt.badge.img+1

Good morning,

I'm wondering what best practice could be given regarding the usage of different Strava accounts for different environments. While searching the internet I read that Stava expects to have only one application using a client ID. Which would imply a different client ID per application, but also for the different environment in use.
Currently I do local development, but I run a test and production server. So I use three client id's. Which becomes expensive if I need to pay for each of them. Or can it be bundled into one developer having a subscription?

Thanks for your thoughts and answers.

Pieterbas

Best answer by Mark_AJ

Hi ​@Pieterbas is your app in production live with more than 10 users? If not, I’m not sure why you need separate client IDs if they’re for the same application. Even if it is more than 10 users, if it is the same application, I still don’t see a reason to separate client IDs for each environment. Separation of concern can easily be done via deployment and database separation.

5 replies

Forum|alt.badge.img+3
  • Hub Rookie
  • Answer
  • June 11, 2026

Hi ​@Pieterbas is your app in production live with more than 10 users? If not, I’m not sure why you need separate client IDs if they’re for the same application. Even if it is more than 10 users, if it is the same application, I still don’t see a reason to separate client IDs for each environment. Separation of concern can easily be done via deployment and database separation.


Forum|alt.badge.img+1
  • Author
  • Hub Rookie
  • June 11, 2026

Dear ​@Mark_AJ ,

Thank you for your reply!!

I’m not yet accepting any registrations yet, so no I’m only testing with a few people still below the limit of ten people.

On my side I’ve duplicated the infra for test and production. So I can do most of the testing on my server. However the callback domain is limited to one url. So that should be connecting to the production environment. But how can I have people connect to test with only one callback domain. Also I was thinking that the webhook registration would only allow for one per client id. So testing the interaction between the Strava API and my software is not possible without impacting the user community.

do I make mistakes in my assumptions and reasoning?

 

kind regards, pieterbas


Forum|alt.badge.img+10
  • Hub Explorer
  • June 11, 2026

Hi ​@Pieterbas, you could use a single client ID and simply have your production environment relay the webhooks to your dev/test environment(s). 

On a related note, there’s currently no way to authenticate the Strava webhooks, so I’d suggest having your prod use an IP whitelist for incoming webhooks (see https://communityhub.strava.com/developers-api-7/whitelist-ip-address-webhook-1840?postid=20447#post20447), and your dev/test whitelisting your prod IP.


Forum|alt.badge.img+3
  • Hub Rookie
  • June 12, 2026

Hi ​@Pieterbas since you're still under 10 users you're overthinking this because that 10 limit is meant to be a sandbox for testing, you can go wild. You can test directly on your prod environment for now which is what this sandbox tier is meant for, you can gate registrations with an invite code or similar so unknown users can't sign up if that’s what you’re worried about.

Another way to do this is to introduce Feature Flags. Deploy the new webhook handler behind a flag, test it with real webhook events against a subset of whitelisted ids. You can route data to another table in the db gated behind that feature flag so that means in prod you’ll have existing features and new features behind feature flags working together which also helps you do A/B testing. For example user A who is non-whitelisted may see your live production version, then User B who is whitelisted and happens to be on the same production callback will see a new feature but their data routes to both the feature flagged table and the original one in production so you can always flip back and forth.


Forum|alt.badge.img+1
  • Author
  • Hub Rookie
  • June 13, 2026

Hi ​@Mark_AJ , ​@Cyril ,

Thank you for your feedback, I’m going to simplify things and go back to one client id and find a trick to be able to test on my side.