A simple Fiber application allowing for creation of Strava access tokens needed for advanced api usage.
- If you have not already, sign up for a Strava account.
- After you are logged in, create an app.
git@github.com:grahamplata/strava-oauth.git && cd strava-oauth
Create a .env file or export the following variables using the supplied crendentials in your settings
ENVIRONMENT=local
PORT=3000
STRAVA_CLIENT_ID=someclient
STRAVA_SECRET=somesecret
STRAVA_REDIRECT_URI=http://localhost:3000/strava-oauth
STRAVA_SCOPE=read_all
go build -o bin/strava-oauth -v .
bin/strava-oauth
# or
go run main.go
Update your Authorization Callback Domain: When building your app, change “Authorization Callback Domain” to localhost or any domain. When taking your app live, change “Authorization Callback Domain” to a real domain.
- Add heroku button
- Add tests
- Do Basic Cleanup and Refactor