An example app for authenticating with OAuth using my Discogs library.
Bundle, run the database migrations, start the server and browse to http://127.0.0.1:3000/tests.
$ git clone https://github.com/buntine/discogs-oauth.git
$ cd ./discogs-oauth
$ ### Create your ./config/environment_variables.yml file (see below)
$ bundle install
$ rake db:migrate
$ rails server
Many of Discog's API endpoints require authentication through OAuth. In order to authenticate, first log into your Discogs account and create an application to generate a Consumer Key and a Consumer Secret as described in the API documentation.
To prevent your keys from being tracked by Git and potentially exposed, create a environment_variables.yml
file inside the /config
directory. This file has been added to the example app's .gitignore
file and its contents will be accessible by the tests controller when you start the server.
# ./config/environment_variables.yml
development:
DISCOGS_API_KEY:
DISCOGS_API_SECRET:
See the LICENSE file.