Dynamic redirect URL problems

544 views
Skip to first unread message

Steve Stewart

unread,
Feb 24, 2014, 1:59:51 PM2/24/14
to strav...@googlegroups.com
Does anybody know why the OAUTH process would insert a "?" between my redirect URL and the auth token return strings?

Here's what I send to the API: https://www.strava.com/oauth/authorize?redirect_uri=https://www.myteamcar.net/index.php?page=tokenexchange&state=token-exchange&client_id="App ID#"&response_type=code

Here's what is returned: https://www.myteamcar.net/index.php?page=tokenexchange?state=token-exchange&code="token string"

I'm not using pretty urls and when Strava inserts that path separator the redirect url doesn't get resolved. Works fine if I used a relative path URL for the redirect URL, but all my code is in dynamic URL pages (.../index.php?page="whatever").

Really struggling with this one. Any help would be greatly appreciated.

Thanks,

Steve

Paul Mach

unread,
Feb 24, 2014, 2:47:40 PM2/24/14
to Steve Stewart, strav...@googlegroups.com
Yeah, that is a bug. The redirect uri is not expected to contain query parameters. I'll work on a fix and let you know.

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/groups/opt_out.

Paul Mach

unread,
Feb 26, 2014, 3:37:10 PM2/26/14
to Steve Stewart, strav...@googlegroups.com
This should be fixed now.

Dr. Paul Mach
STRAVA
Reply all
Reply to author
Forward
0 new messages