Skip to content

A go Fiber application to assist with getting access tokens.

License

Notifications You must be signed in to change notification settings

grahamplata/strava-oauth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Strava Oauth

A simple Fiber application allowing for creation of Strava access tokens needed for advanced api usage.

Setup

Register with Strava

  1. If you have not already, sign up for a Strava account.
  2. After you are logged in, create an app.

Clone the repo

git@github.com:grahamplata/strava-oauth.git && cd strava-oauth

Environment

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

Build the Binary or Run the Server

go build -o bin/strava-oauth -v .
bin/strava-oauth
# or
go run main.go

Update Strava Applications settings

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.

TODO

  • Add heroku button
  • Add tests
  • Do Basic Cleanup and Refactor

About

A go Fiber application to assist with getting access tokens.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published