Skip to main content
Answered

Use Strava app for oauth2 authorization from web

  • May 24, 2025
  • 7 replies
  • 218 views

Forum|alt.badge.img+1

I'm developing a Web site. The site offers users to connect to Strava. It works well. However, many of my users use the Strava app and don't even remember their credentials. I would like the oauth2 flow to use the Strava app, not the Strava site for approval. Is there a way to do it?

Best answer by Jan_Mantau

For IOS you could use strava://oauth/mobile/authorize to open the app but note that it’s up to the browser to know how to handle appname:// links. Safari should know what to do and ask the user if they want to open the app but alternative browsers may open an internet search instead.

7 replies

Vincenzo
Superuser
Forum|alt.badge.img+27
  • Superuser
  • May 24, 2025

Jan_Mantau
Superuser
Forum|alt.badge.img+26
  • Superuser
  • May 24, 2025

@Ilanzisser Are your users using your website on the smartphone or on a pc?


Forum|alt.badge.img+1
  • Author
  • Hub Rookie
  • May 24, 2025

 ​@Jan_Mantau : The problem is just when smartphone users are using my site. 


Jan_Mantau
Superuser
Forum|alt.badge.img+26
  • Superuser
  • May 24, 2025

The documentation states: 

Android apps can use an Implicit Intent to redirect users to the GET https://www.strava.com/oauth/mobile/authorize endpoint. The Strava app should open automatically if the user has it installed.

This URL should work the same when using it from the browser.


Forum|alt.badge.img+1
  • Author
  • Hub Rookie
  • May 25, 2025

Hi ​@Jan_Mantau ,

First: thanks. It seems to work om my Android phone. 
I tested it yesterday on a Table (Samsung) and it didn’t work as expected. I will try to review that again. Do you happen to know about a solution for iPhone?

 

Thanks again,

 

Ilan


Jan_Mantau
Superuser
Forum|alt.badge.img+26
  • Superuser
  • Answer
  • May 25, 2025

For IOS you could use strava://oauth/mobile/authorize to open the app but note that it’s up to the browser to know how to handle appname:// links. Safari should know what to do and ask the user if they want to open the app but alternative browsers may open an internet search instead.


Forum|alt.badge.img+1
  • Author
  • Hub Rookie
  • May 25, 2025

@Jan_Mantau Thanks. Highly appreciated.