buntine / discogs-oauth

An example app for authenticating with OAuth using my Discogs library.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

discogs-oauth

An example app for authenticating with OAuth using my Discogs library.

Getting Started

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

Authentication

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:

License

See the LICENSE file.

About

An example app for authenticating with OAuth using my Discogs library.

License:GNU General Public License v2.0


Languages

Language:Ruby 76.5%Language:HTML 18.1%Language:CSS 2.4%Language:JavaScript 2.2%Language:CoffeeScript 0.7%