Redirect URI invalid

2,914 views
Skip to first unread message

Markus Ölhafen

unread,
Jun 20, 2016, 5:22:51 PM6/20/16
to Strava API
Hey there,

I'm currently getting this error when trying to connect with oAuth. localhost is set as my Authorization Domain Callback.

{"message":"Bad Request","errors":[{"resource":"Application","field":"redirect_uri","code":"invalid"}]}



Do I have to set something different as callback domain? Thanks, Markus

Dan Allen

unread,
Nov 5, 2016, 3:46:45 PM11/5/16
to Strava API
Hopefully you figured this out by now, but I thought I'd add something here for anyone else with a similar issue. I had the same problem.

On the https://www.strava.com/settings/api page, there is a link to your 'OAuth Authorization Page'.  After visiting that link I found you need to add the 'http://' in front of localhost. So your particular request would be:
You can specify the port in the redirect_ui with http://localhost:3333, for example. 

Also you have a issue in your scope parameter. It looks like you have a space, but it needs to be a comma %2C.

Hope this helps people in the future.
Reply all
Reply to author
Forward
0 new messages