Skip to main content
Question

remove user from application

  • February 26, 2023
  • 9 replies
  • 290 views

Forum|alt.badge.img+4

Is there a way to remove a user from the app. I can delete all the user data from my side, but I can't remove their subscription from strava (from what I can see this isn't possible).

I am geting events for users that have been removed and I dont need to have those events.

Maybe I am missing something, I would appreciate any help/advice.

9 replies

ActivityFix
Superuser
Forum|alt.badge.img+24
  • Superuser
  • 243 replies
  • February 27, 2023

You are not missing anything. At the moment it is not possible to remove/revoke access for an athlete. The only option you have is to ignore any events which come in for users that do not exist in your database.


Forum|alt.badge.img+4
  • Author
  • Hub Rookie
  • 3 replies
  • February 27, 2023

Thank you for replying @ActivityFix.

Its a shame this isn't available. I have already written the code to ignore these incoming events, but its just unnecessary noise.


Forum|alt.badge.img+4
  • Author
  • Hub Rookie
  • 3 replies
  • February 27, 2023

I just got an email stating you can DeAuthorize an athlete. Link here

However, the challenge I have is that I have removed the Athlete data already, so I dont have the token. However whent he sub call happens I do get the AthleteID so I was hoping I could deauthorize using this? As my thought is that DeAuthorizing shouldnt be a security issue or any other issue from user/strava point of view?


Forum|alt.badge.img+2
  • Hub Starter
  • 1 reply
  • December 6, 2023

Agreed - I think it makes a lot of sense to be able to deauth users. It’s not hard to drop events but it doesn’t feel proper. 


Forum|alt.badge.img+6
  • Hub Rookie
  • 9 replies
  • December 8, 2023

Deauthorization is totally possible (you just make a POST request to https://www.strava.com/oauth/deauthorize), but you obviously need a valid access token. Otherwise anybody could deauthorize your app for any given athlete.

Since you already deleted the athlete from your database, your only choice is to have the user log into your app again so that you can re-obtain the access token. Until then, just keep ignoring the webhook events.


Forum|alt.badge.img+4
  • Author
  • Hub Rookie
  • 3 replies
  • December 8, 2023

So I managed to find out who the user was using the ID and the url to find the actual athlete. As my app is mainly cycling friends it was easy for them to remove themselves.

 

However, I agree, we as the app owners should be able to remove users if needed. This isnt a security issue, as you still need to provide your key to access strava api to carry out this removal. 


Forum|alt.badge.img+5
  • Hub Rookie
  • 5 replies
  • August 20, 2024

Strava should stop sending events if a user deauthorized!

So the question is why strava is sending webhook events if a user deauthorized???

It is strava responsibility to make sure they stop sending events in such case.

There is something off on the Strava side I belive.


Forum|alt.badge.img+2
  • Hub Rookie
  • 8 replies
  • January 30, 2025
veloek wrote:

Deauthorization is totally possible (you just make a POST request to https://www.strava.com/oauth/deauthorize), but you obviously need a valid access token. Otherwise anybody could deauthorize your app for any given athlete.

Since you already deleted the athlete from your database, your only choice is to have the user log into your app again so that you can re-obtain the access token. Until then, just keep ignoring the webhook events.

The way I’ve seen it implemented with other fitness apis is that the deauthorization endpoint requires your client secret or something that only you as the application owner would have access to. That way you can remove an athlete even if you no longer have access to their access token.

 

Ahh ok I found another thread that was made for this exact issue:

 


Forum|alt.badge.img+2
  • Hub Rookie
  • 8 replies
  • January 30, 2025
blasbike wrote:

Strava should stop sending events if a user deauthorized!

So the question is why strava is sending webhook events if a user deauthorized???

It is strava responsibility to make sure they stop sending events in such case.

There is something off on the Strava side I belive.

afaik Strava does stop sending webhook events if the user is deauthorized. The issue I face is that sometimes you can’t deauthorize a user because the access token you have for them is invalid. That means you have to try to reach out to the user to have them perform the deauthorization from their end, but they are not always responsive.


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