Skip to main content
Question

Testing Strava Application Locally

  • February 28, 2024
  • 1 reply
  • 39 views

Forum|alt.badge.img+2

I've seen that you're unable to have multiple sub-domains authorized for a callback URL on the application, but what about for testing locally?

I'd love to test version my application on localhost but unfortunately it looks like I have to have an entirely separate application for it and wondering if that is anyway by-passable for local testing. Thank you!

1 reply

ActivityFix
Superuser
Forum|alt.badge.img+24
  • Superuser
  • 232 replies
  • February 28, 2024

You can provide a redirect URI as an argument to the oauth authorize call and it will use whatever you provide. Once you have a valid token the API calls don't have any check on the domain so you can run code from localhost or your server.

The only other restriction with localhost is that you won't get any webhook calls. You will need to use cURL or some equivalent to generate webhook calls targeting your localhost environment.

Edit: It's also possible that there's a special case for the redirect_uri being localhost. Either way, I test on localhost all the time without a problem and without needing to change the registered callback URL registered with Strava.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept, you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings