strava-oauth

command module
v0.0.0-...-54581cb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 15, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL