Dev vs Production

60 views
Skip to first unread message

Mark McGee

unread,
Jan 18, 2022, 1:42:07 PM1/18/22
to Strava API
Hi I'm new to the strava API.

As I understand the authentication, I use the client secret and setup the domain for the response urls.

How should I handle Development vs Production?  My development will be on localhost and production on a registered domain.

Strava doesn't seem to support having both at the same time?

Is the answer to set up an account for the production application?

Thanks!

Bryant Likes

unread,
Jan 18, 2022, 2:24:42 PM1/18/22
to Mark McGee, Strava API
localhost is whitelisted so you can always redirect to that. From the docs:

redirect_uri
required string, in query
URL to which the user will be redirected after authentication. Must be within the callback domain specified by the application. localhost and 127.0.0.1 are white-listed.

--
You received this message because you are subscribed to the Google Groups "Strava API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to strava-api+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/strava-api/34ff3c68-8eab-408c-8589-61683d8fdebbn%40googlegroups.com.

Mark McGee

unread,
Jan 18, 2022, 3:14:04 PM1/18/22
to Strava API
Great, thank you.  I guess I'd better delete that account I just created!

It turns out I was having a local issue with ASP.NET core's "proxy" for SPAs - it works redirecting ajax requests from the dev server to asp.net core web api, but not browser redirects.

Reply all
Reply to author
Forward
0 new messages