This is a simple flask application that handles authentication to the Strava API.
It was made to be used with the front-end client(FRONTEND_APP_DOMAIN) located here.
GET /strava_authorize
GET /strava_token
Params
Name | Description |
---|---|
code | The code parameter obtained in the strava authorization redirect. |
env \
FLASK_APP=application.py \
FLASK_ENV=development \
STRAVA_CLIENT_ID=<STRAVA_CLIENT_ID> \
STRAVA_CLIENT_SECRET=<STRAVA_CLIENT_SECRET> \
REDIRECT_URI=<FRONTEND_APP_DOMAIN>/strava_redirect \
flask run
To obtain a client id and a client secret you must first create a Strava API App.