Strava Client ID hardcoded? #214

Closed
opened 2025-07-08 08:42:54 -04:00 by AtHeartEngineer · 0 comments

Originally created by @neonmaus on 8/1/2024

Hello
I have just set up Endurain and wanted to test the Strava integration but I could not connect to Strava although STRAVA_CLIENT_ID, STRAVA_CLIENT_SECRET and STRAVA_AUTH_CODE were entered correctly in the docker-compose.yml.
I kept getting this error from the Strava API:
"{"message": "Bad Request", "errors":[{"resource": "Application", "field": "redirect_uri", "code": "invalid"}]}"

Then I noticed that the request to the Strava API is not sent with my STRAVA_CLIENT_ID but with the client ID "115321" and I also found this client ID in the source code of Endurain, could it be that this is perhaps a mistake and this hardcoded ID is used for OAuth instead of the one specified in the docker-compose?
After I manually changed the client ID in the request to my client ID, I was able to set up the integration without any problems

The place in the code where I found the hardcoded client ID:
6a4fbc6313/frontend/app/src/services/stravaService.js (L11)

Greetings

*Originally created by @neonmaus on 8/1/2024* Hello I have just set up Endurain and wanted to test the Strava integration but I could not connect to Strava although STRAVA_CLIENT_ID, STRAVA_CLIENT_SECRET and STRAVA_AUTH_CODE were entered correctly in the docker-compose.yml. I kept getting this error from the Strava API: "{"message": "Bad Request", "errors":[{"resource": "Application", "field": "redirect_uri", "code": "invalid"}]}" Then I noticed that the request to the Strava API is not sent with my STRAVA_CLIENT_ID but with the client ID "115321" and I also found this client ID in the source code of Endurain, could it be that this is perhaps a mistake and this hardcoded ID is used for OAuth instead of the one specified in the docker-compose? After I manually changed the client ID in the request to my client ID, I was able to set up the integration without any problems The place in the code where I found the hardcoded client ID: https://github.com/joaovitoriasilva/endurain/blob/6a4fbc631369449494c9d9836454bd7ac82924dc/frontend/app/src/services/stravaService.js#L11 Greetings
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/endurain#214