slack-strava icon indicating copy to clipboard operation
slack-strava copied to clipboard

There was an authorization problem when users uncheck "View data about your private activities"

Open dblock opened this issue 5 years ago • 2 comments

image

cat strava-bot/web.00.log | grep -i "Authorization Error" | grep user_name | wc -l
36

cat strava-bot/web.00.log | grep -i "Authorization Error" | grep user_name | cut -f2 -d'=' | cut -f1 -d',' | sort | uniq | wc -l
12

when connecting to Strava we are asked for "share public activities" (mandatory) and "share private activities" (optional but pre-checked)

happens with share private activities unchecked

dblock avatar Apr 16 '20 14:04 dblock

We are asking for activity:read_all scope, but the user can uncheck the box that effectively allows that, revoking reading private activities. Then we call athleve_activities and Stava gets confused and fails with an access denied. Looks like a Strava bug.

https://groups.google.com/forum/#!topic/strava-api/ePwOlVNYUfY

dblock avatar Apr 17 '20 02:04 dblock

For now asking users to make sure to leave the "View data about your private activities" box checked when reconnecting their Strava accounts.

https://github.com/dblock/slack-strava/commit/3fa9659b551fe62aed8dde700526420cc6d38534

dblock avatar Apr 17 '20 02:04 dblock