API Application Settings - Invalid URL

289 views
Skip to first unread message

Garry

unread,
Aug 31, 2018, 11:55:47 AM8/31/18
to Strava API
Hi, noob question here.

I'm testing the API with postman and Ive seen a previous thread that the details should be:

Authorize callback domain: getpostman.com

But I cant get Strava application settings page to accept the Authorize callback domain to be a valid URL? I cant seem to enter anything that is a valid URL? 

Any suggestions as its driving me nuts!

Thanks
Garry

Sam Parkinson

unread,
Aug 31, 2018, 12:06:54 PM8/31/18
to Strava API
+1

I'm seeing the same thing. I can't find any value to go in the "Authorize callback domain" box that is valid.

Chris Pointon

unread,
Aug 31, 2018, 12:10:23 PM8/31/18
to Strava API
Apologies for cross-posting, but I answered this on another thread and you may have missed it:

The App Settings page domain update field seems to be raising that error for all domains. This is the HTML:
<input class="form-element" id="app-domain" type="url" value="domain.com" name="strava_o_auth_application[domain]">
I think the problem is that type="url" won't accept a domain name (at least on Chrome, which I'm using).
I used Dev Tools in Chrome to change the field to type="text" and successfully updated the domain.

Chris

Sam Parkinson

unread,
Aug 31, 2018, 12:15:16 PM8/31/18
to Chris Pointon, Strava API
Brilliant! that worked. Thanks Chris

--
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.
--
Sam Parkinson
Technical Director
Old Map Room, Somerset House, Victoria Embankment, WC2R 1LA

Garry

unread,
Aug 31, 2018, 12:35:51 PM8/31/18
to Strava API
Nice one Chris that worked a treat! Thanks

Martin Conzelmann

unread,
Sep 1, 2018, 8:08:15 AM9/1/18
to Strava API
Thanks! This worked for me, too. But it should be fixed by Strava Devs...

Brett McGregor

unread,
Sep 2, 2018, 9:49:38 PM9/2/18
to Strava API
Thanks Chris! I learned a couple of new tricks :)

Garry

unread,
Sep 4, 2018, 1:46:58 PM9/4/18
to Strava API
Thanks Chris, that worked for the domain but I'm having the same problem with the redirect uri field? It will only accept something with "www." But I just want to point it at the localhost directory to test it locally. Any ideas? I've tried the same fix but it's not working?
Thanks
Garry

Yudi Fu

unread,
Sep 4, 2018, 7:53:53 PM9/4/18
to Strava API
Hi all,

Thanks for flagging the "Authorization Callback Domain" issue. It appears to be a bug introduced by us last week. It should be fixed now, and the workaround is no longer necessary. Sorry about the inconvenience and thanks for understanding.

Best,
Yudi

Chris Pointon

unread,
Sep 5, 2018, 7:45:44 AM9/5/18
to strav...@googlegroups.com
Hi Garry,

I don't think you can test it directly on file:///some/path URIs because the domain is technically "" (between the 2nd and 3rd "/")  for those. But if you have a server running on localhost so you can get http://localhost/some/path then you should be able to test that by specifying "localhost" as the Authorization Callback Domain for your app.

If you don't want multiple Strava apps for testing in different circumstances you could set the Authorization Callback Domain to yourcompany.com. Strava treats this as *.yourcompany.com so you can use dev.yourcompany.com, staging.yourcompany.com etc on the same app. For localhost you can set up a hosts file locally to map e.g. localhost.yourcompany.com to 127.0.0.1, then pass that to the Strava auth. Your local webserver will need to be set up to serve localhost.yourcompany.com requests (either by ignoring the request domain, or with a specific configuration).

cheers
Chris

--
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.


--
Chris Pointon
Co-founder, Racefully
+44 7973 340293

Run with friends around the world in real-time - in the Apple App Store now

Reply all
Reply to author
Forward
0 new messages