Multiple callback domains

597 views
Skip to first unread message

Johan Brodin

unread,
Apr 13, 2015, 7:22:28 AM4/13/15
to strav...@googlegroups.com
Hi all

We're using the Strava API for a family of sites, e.g. www.jogg.se, www.cykla.se etc. and we want all users, regardless of which site there coming from, to connect to the same application account at Strava. But, if we enter jogg.se in the callback domain all requests coming from cykla.se will receive an error because we also want the user to return to the same site he started from. Så, jogg.se is all fine but from our other four sites things fail.

So my questions is this, is there any way to add multiple authorized domains for the callback URL?

Regards
Johan

Paul Mach

unread,
Apr 13, 2015, 1:59:42 PM4/13/15
to Johan Brodin, strava-api
Hi,

You can only have one callback domain per application. A possible solution is to pass a `state` variable to identify the site. So all users get redirected to the same location where the final token exchange happens, then you redirect them to the final location based on the value of state.



Dr. Paul Mach
STRAVA

--
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.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages