Skip to main content
Solved

Requesting access via Strava app brings invalid redirect_uri


Forum|alt.badge.img+4

The auth request stopped working. I used to work fine for our app. We didn't change anything in the app config or strava config.

This is our url call to start the access request:

strava://oauth/mobile/authorize?redirect_uri=ourAppName://stravaAuth&approval_prompt=auto&client_id=the-client-id&state=ios413&scope=activity:write&response_type=code

 

It opens the Strava app but brings a white screen with the error 

• Invalid redirect URI

Is there anything new we missed on the Strava API?

Best answer by cmenschel

I can answer my own question: 

the redirect uri must be your_app_scheme://<Authorization Callback Domain>

the host must be the Authorization Callback Domain configured in Strava API settings

so something like myapp://myapp 

View original
Did this topic help you find an answer to your question?

5 replies

Forum|alt.badge.img+4
  • Author
  • Hub Rookie
  • 1 reply
  • Answer
  • June 1, 2024

I can answer my own question: 

the redirect uri must be your_app_scheme://<Authorization Callback Domain>

the host must be the Authorization Callback Domain configured in Strava API settings

so something like myapp://myapp 


Forum|alt.badge.img+2
  • Hub Rookie
  • 2 replies
  • June 11, 2024


 Thank you


Forum|alt.badge.img+2
  • Hub Rookie
  • 2 replies
  • June 11, 2024


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


Forum|alt.badge.img+2
  • Hub Starter
  • 3 replies
  • June 12, 2024

Is there a way to redirect to a specific page within the app for newly authenticated users? The above method just brings me back to the page I left off from.

Thanks


Forum|alt.badge.img
  • Hub Starter
  • 1 reply
  • December 9, 2024

Hi guys, for the domain, you can only enter the domain of your site, for example, example.com


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept, you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings