Skip to content

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

License

Notifications You must be signed in to change notification settings

buntine/discogs-oauth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published